commit:     153a1a00d7d0339347ec91a431ae50817f565f2f
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Apr  7 16:21:03 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr  9 12:36:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=153a1a00

media-libs/opentimelineio: add 0.17.0, new package

Closes: https://bugs.gentoo.org/951465
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/41491
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/opentimelineio/Manifest                 |  2 +
 media-libs/opentimelineio/metadata.xml             | 15 ++++
 .../opentimelineio/opentimelineio-0.17.0.ebuild    | 83 ++++++++++++++++++++++
 3 files changed, 100 insertions(+)

diff --git a/media-libs/opentimelineio/Manifest 
b/media-libs/opentimelineio/Manifest
new file mode 100644
index 000000000000..5b1cfc0a33d2
--- /dev/null
+++ b/media-libs/opentimelineio/Manifest
@@ -0,0 +1,2 @@
+DIST OpenTimelineIO-0.17.0.tar.gz 2340862 BLAKE2B 
01775d1e272bbed5cbc2328842ce16c57d90b1fc4630a34e5473c440def28c0c5abd92bc48fb48f779f8f65aefcbed4b62dbd50f4380879e67143a65a4e419b2
 SHA512 
305d63730446c3b4c368cadd9d7a66de96dafee2168d589ae88a0320319f40cde4a739c9939eb088b635185cb1aabd051360ed432fde3ce11ef145e18c25dd21
+DIST rapidjson-24b5e7a8b27f42fa16b96fc70aade9106cf7102f.tar.gz 1116703 BLAKE2B 
b4657b1a09437d947fea754f3de492993ae1335228b17d7fd7d4542e47009d7af64d0f8fa39923865accd6e7af86165e2545372bdeb425aef5480dcc96fb111e
 SHA512 
50f8723414a6e63eadd45f97be5c44e9fff2d06216c8cc4df802f5bfc2a9416a039f2c69e9bb1882f7e756cd38a7097eea05cab76c739f45805dc41617140799

diff --git a/media-libs/opentimelineio/metadata.xml 
b/media-libs/opentimelineio/metadata.xml
new file mode 100644
index 000000000000..2ae575cc19a8
--- /dev/null
+++ b/media-libs/opentimelineio/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person" proxied="yes">
+               <email>[email protected]</email>
+               <name>Paul Zander</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <upstream>
+               <remote-id 
type="github">AcademySoftwareFoundation/OpenTimelineIO</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/media-libs/opentimelineio/opentimelineio-0.17.0.ebuild 
b/media-libs/opentimelineio/opentimelineio-0.17.0.ebuild
new file mode 100644
index 000000000000..ee47531332bb
--- /dev/null
+++ b/media-libs/opentimelineio/opentimelineio-0.17.0.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+MY_PN="OpenTimelineIO"
+
+DESCRIPTION="Open Source API and interchange format for editorial timeline 
information"
+HOMEPAGE="https://github.com/AcademySoftwareFoundation/OpenTimelineIO";
+
+if [[ "${PV}" == *9999* ]]; then
+       inherit git-r3
+       
EGIT_REPO_URI="https://github.com/AcademySoftwareFoundation/OpenTimelineIO.git";
+       EGIT_SUBMODULES=( 'src/deps/rapidjson' )
+else
+       # Rapidjson hasn't had a release since 2016. OpenTimelineIO builds 
against rapidjson HEAD.
+       RAPIDJSON_COMMIT="24b5e7a8b27f42fa16b96fc70aade9106cf7102f"
+
+       SRC_URI="
+               
https://github.com/AcademySoftwareFoundation/OpenTimelineIO/archive/refs/tags/v${PV}.tar.gz
+                       -> ${MY_PN}-${PV}.tar.gz
+               
https://github.com/Tencent/rapidjson/archive/${RAPIDJSON_COMMIT}.tar.gz
+                       -> rapidjson-${RAPIDJSON_COMMIT}.tar.gz
+       "
+       S="${WORKDIR}/${MY_PN}-${PV}"
+       KEYWORDS="~amd64 ~arm64"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0/$(ver_cut 1-2)"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# Check on update
+# https://github.com/AcademySoftwareFoundation/OpenTimelineIO/pull/1852
+RDEPEND="
+       dev-libs/imath:3=
+"
+DEPEND="${RDEPEND}"
+
+DOCS=(
+       README.md
+)
+
+src_prepare() {
+       if [[ "${PV}" != *9999* ]]; then
+               mv -T "${WORKDIR}/rapidjson-${RAPIDJSON_COMMIT}" 
"src/deps/rapidjson" || die
+       fi
+
+       sed \
+               -e "s/\(find_package(Imath \)QUIET/\1REQUIRED/" \
+               -e "s/\(find_package(IlmBase \)QUIET/\1REQUIRED/" \
+               -e "s|\(set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR 
\"\${CMAKE_INSTALL_PREFIX}/\)lib\")|\1$(get_libdir)\")|" \
+               -i CMakeLists.txt || die
+
+       sed \
+               "s|share/opentime|$(get_libdir)/cmake/opentime|g" \
+               -i src/opentime{,lineio}/CMakeLists.txt || die
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_TESTING="$(usex test)"
+               -DOTIO_AUTOMATIC_SUBMODULES="no"
+
+               -DOTIO_FIND_IMATH="yes"
+               -DOTIO_IMATH_LIBS=""
+               -DOTIO_SHARED_LIBS="yes"
+
+               -DOTIO_CXX_COVERAGE="no"
+               -DOTIO_CXX_EXAMPLES="no"
+               -DOTIO_CXX_INSTALL="yes"
+               -DOTIO_DEPENDENCIES_INSTALL="no"
+
+               -DOTIO_PYTHON_INSTALL="no"
+       )
+
+       cmake_src_configure
+}

Reply via email to