Compare commits

...

2 Commits

Author SHA1 Message Date
Alfred Wingate
2f4450ac49
media-video/olive: add dependency on opentimelineio
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2022-12-19 20:10:07 +02:00
Alfred Wingate
9171d84a5e
media-libs/opentimelineio: new package, add 0.15
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2022-12-19 20:10:03 +02:00
4 changed files with 104 additions and 8 deletions

View File

@ -0,0 +1,4 @@
DIST any-bfc77f2e4be6e9a093dd645ef3f1aa30620c9205.tar.gz 9130 BLAKE2B 7d9066defc0a28811158b447c9b9accf1c3f33c178cca509145b9d958f42b190c3fc8fb246941bef7362b651b1c22c22a9962622f65ad5687dafed49440f0c3a SHA512 89bcfeb77e3708d2c81472d9bfbcb789ebc03a1e34642d95a8baa88d7f06e84ea598541e4d340f03cc001cd5008fc62d65b56d901b85af89d1db2a47e5e0fa4b
DIST opentimelineio-0.15.tar.gz 4781447 BLAKE2B 8f7a60a9c45412ed2d17c1d91bf29fd3e887620683e7f9db109f2b583a31195d6ae28e1ff8a58b6f0e80089b2819d3ec1f651c24726567b94e14f6007b7db024 SHA512 4389029f277dc75cc9b59e14758f8350860f8cc828c60081621bc9d4a656cff63fa85d2cc98651c6e2c1d9ef049fad614196b9d6adc9951f90d101b54f67b448
DIST optional-lite-be720ebfd7add22abe60e49602735de9231105d0.tar.gz 52452 BLAKE2B 49efbafe40fdb2cf7642b0170e087495f862219ca812239776a7f4aa3453f433572ea0c6e21762cfc488a30ade92736a5d6a78159ba333cc8f08e0df17b148dd SHA512 59669746c92552510980c81bb49c133f4e5da51c86489ccba3ea83ff48c4ce0b6ed3efd32beb3a8d2501eceb70b6420d33afcf858c2d9a0c2fbe5c8027f2ba39
DIST rapidjson-.tar.gz 1107982 BLAKE2B f846bf482dd8102dede32e15b46fa8cc306291b1a4e8435ec8c5754663c28cceac1d7cdba9534e9a6a94866f4130b41b89eed13e0c1a3fcea202ea33b636f54f SHA512 f0a7df46234e5b3244a801ddf1daefd26aac7ae5b2c470b8c3898f65c65591f6c9cabac0421800588826da9d3bcccba1f98e1c0c8c15184b3843cf6f3ffbdcad

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>parona@protonmail.com</email>
<name>Alfred Wingate</name>
</maintainer>
<upstream>
<remote-id type="github">AcademySoftwareFoundation/OpenTimelineIO</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,82 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Open Source API and interchange format for editorial timeline information."
HOMEPAGE="https://opentimeline.io"
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/AcademySoftwareFoundation/OpenTimelineIO.git"
EGIT_SUBMODULES="src/deps/{any,optional-lite,rapidjson}"
else
MY_PN="OpenTimelineIO"
ANY_COMMIT="bfc77f2e4be6e9a093dd645ef3f1aa30620c9205"
OPTIONAL_LITE_COMMIT="be720ebfd7add22abe60e49602735de9231105d0"
RAPIDJSON_COMMIT="06d58b9e848c650114556a23294d0b6440078c61"
SRC_URI="
https://github.com/AcademySoftwareFoundation/${MY_PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz
https://github.com/thelink2012/any/archive/${ANY_COMMIT}.tar.gz
-> any-${ANY_COMMIT}.tar.gz
https://github.com/martinmoene/optional-lite/archive/${OPTIONAL_LITE_COMMIT}.tar.gz
-> optional-lite-${OPTIONAL_LITE_COMMIT}.tar.gz
https://github.com/Tencent/rapidjson/archive/${RAPIDJSON_COMMIT}.tar.gz
-> rapidjson-${RAPDIJSON_COMMIT}.tar.gz
"
S="${WORKDIR}/${MY_PN}-${PV}"
KEYWORDS="~amd64"
fi
LICENSE="Apache-2.0"
SLOT="0"
DEPEND="
|| (
dev-libs/imath
media-libs/ilmbase
)
"
RDEPEND="${DEPEND}"
BDEPEND=""
#TODO: python
src_prepare() {
if [[ "${PV}" != "9999" ]]; then
rmdir "${S}/src/deps/"{any,optional-lite,rapidjson} || die
mv "${WORKDIR}/any-${ANY_COMMIT}" "${S}/src/deps/any" || die
mv "${WORKDIR}/optional-lite-${OPTIONAL_LITE_COMMIT}" "${S}/src/deps/optional-lite" || die
mv "${WORKDIR}/rapidjson-${RAPIDJSON_COMMIT}" "${S}/src/deps/rapidjson" || die
fi
eapply_user
sed -i \
"s|\(set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR \"\${CMAKE_INSTALL_PREFIX}/\)lib\")|\1$(get_libdir)\")|" \
CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DOTIO_CXX_INSTALL=ON
-DOTIO_PYTHON_INSTALL=OFF
-DOTIO_DEPENDENCIES_INSTALL=ON
-DOTIO_INSTALL_PURE_MODULES=OFF
-DOTIO_INSTALL_COMMANDLINE_TOOLS=ON
-DOTIO_INSTALL_CONTRIB=OFF
-DOTIO_SHARED_LIBS=ON
-DOTIO_CXX_COVERAGE=OFF
-DOTIO_CXX_EXAMPLES=OFF
-DOTIO_AUTOMATIC_SUBMODULES=OFF
-DOTIO_FIND_IMATH=ON
)
cmake_src_configure
}

View File

@ -22,7 +22,7 @@ LICENSE="GPL-3"
SLOT="0"
IUSE="doc test"
#media-video/opentimelineio : The CMakeFile tries to find it, but doesnt do anything yet.
# TODO: qt6
DEPEND="
>=dev-qt/qtconcurrent-5.6.0
>=dev-qt/qtcore-5.6.0
@ -30,19 +30,18 @@ DEPEND="
>=dev-qt/qtopengl-5.6.0
>=dev-qt/qtsvg-5.6.0
>=dev-qt/qtwidgets-5.6.0
>=media-libs/opencolorio-2.0.0
media-libs/openexr:*
>=media-libs/openimageio-2.1.12
>=media-libs/opencolorio-2.0.0:=
media-libs/openexr:=
>=media-libs/openimageio-2.1.12:=
media-libs/opentimelineio:=
media-libs/portaudio
>=media-video/ffmpeg-3.0.0
virtual/opengl
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-qt/linguist-tools
doc? (
app-doc/doxygen[dot]
)
dev-qt/linguist-tools:5
doc? ( app-doc/doxygen[dot] )
"
src_configure() {