commit:     a4919dfe9ab7e197378872598b3944103a7de001
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Tue Dec 17 12:58:18 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan  5 20:33:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4919dfe

media-libs/opencolorio: drop 2.2.1 2.1.3

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/opencolorio/Manifest                    |   2 -
 .../files/opencolorio-2.1.1-gcc12.patch            |  14 --
 .../files/opencolorio-2.1.2-musl-strtol.patch      |  27 ---
 .../opencolorio-2.2.1-support-doxygen-1.9.7.patch  | 184 ---------------------
 .../opencolorio-2.2.1-support-minizip-ng-4.patch   |  92 -----------
 media-libs/opencolorio/opencolorio-2.1.3.ebuild    | 102 ------------
 media-libs/opencolorio/opencolorio-2.2.1.ebuild    | 141 ----------------
 7 files changed, 562 deletions(-)

diff --git a/media-libs/opencolorio/Manifest b/media-libs/opencolorio/Manifest
index 4e1dd1eaab14..fb8577191f3a 100644
--- a/media-libs/opencolorio/Manifest
+++ b/media-libs/opencolorio/Manifest
@@ -1,4 +1,2 @@
-DIST opencolorio-2.1.3.tar.gz 11024701 BLAKE2B 
bcd1eb6a74260f451e49ef40e729bfc4c354ab255d96c261fbf865c586f285fe876ed54b05276f3b6b25ece4fd261672fe1dd519041ffad77d7c78efc8cf161d
 SHA512 
b26fcfa3ea12ab6e4b019a13ce79ebcfd215c674acb348f2d9f85f749b2a5beccd395ed1cc9954e4b3cb83a160b24a8d7d81994ac1d9ea8cfe074b81d6b8a061
-DIST opencolorio-2.2.1.tar.gz 11336775 BLAKE2B 
b463d6a0a7e7fec0a890fa8a0cd06ed269f925c5986dfb82eb53728a09d884c89e6c4dfe112706ce27351d4440909ff9680387028d1dc887e7d866b30c39c54f
 SHA512 
d5f3a4b5bd661af7336c015d07e0feccb286464a08239a3c259a97217001161e7571f5137475fc2f4d1b9af6381bbfa03c0b60f41de282f114307961b8d84fc9
 DIST opencolorio-2.3.2.tar.gz 11443450 BLAKE2B 
2573d2f229ba0349574d83883cd6534853164dc6a5866b203b65d4c0acbc54fc0aaf6ff4ecbec5506c6adafe48d57fb80a8b47c45b7b16e0c4ac94f5fbaffea3
 SHA512 
4c7547960623b058398a86d9c8335d31f2354a1ee7ba58fbc2d1ace698132b99e8f823c9b443a77545721da076569228f502f1f3f4deba44659571c6d12db133
 DIST opencolorio-2.4.1.tar.gz 11386201 BLAKE2B 
b56df7d708dbd8e0b46e9e56ea779614b99412d052372d29b9e2b4c8188bc303f19f3f04ba3e40249fff08e1aa1d5924003757b2944cad3cc7c8b18ba33f8f98
 SHA512 
dfa616e79da13016d7c0f007a4ad77f793241a7eac18baf65272b5edf8c61f49423a8e0f9f29be170b396014f6b9f4f2789330a5a7608c7c78e858eab622fd4c

diff --git a/media-libs/opencolorio/files/opencolorio-2.1.1-gcc12.patch 
b/media-libs/opencolorio/files/opencolorio-2.1.1-gcc12.patch
deleted file mode 100644
index 0bf00862e51b..000000000000
--- a/media-libs/opencolorio/files/opencolorio-2.1.1-gcc12.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-https://src.fedoraproject.org/rpms/OpenColorIO/raw/rawhide/f/OCIO-strlen.patch
-https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/4fa94918c2cf572dcaf61ca07016f3b5c231c14c
-https://bugs.gentoo.org/841479
---- a/src/OpenColorIO/FileRules.cpp
-+++ b/src/OpenColorIO/FileRules.cpp
-@@ -3,6 +3,7 @@
- 
- #include <algorithm>
- #include <cctype>
-+#include <cstring>
- #include <map>
- #include <regex>
- #include <sstream>
-

diff --git a/media-libs/opencolorio/files/opencolorio-2.1.2-musl-strtol.patch 
b/media-libs/opencolorio/files/opencolorio-2.1.2-musl-strtol.patch
deleted file mode 100644
index 87059614ff03..000000000000
--- a/media-libs/opencolorio/files/opencolorio-2.1.2-musl-strtol.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-# Fix strtol_l missing on musl. On musl libc use strtol
-# Taken from Alpine Linux, please refer:
-# 
https://git.alpinelinux.org/aports/tree/community/opencolorio/0002-fix-strtol.patch?id=dd7ba461824ab0618f0493cbb450b221fdc2513c
-# Please refer: 
https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1624
---- a/src/utils/NumberUtils.h
-+++ b/src/utils/NumberUtils.h
-@@ -68,7 +68,7 @@ really_inline from_chars_result from_chars(const char 
*first, const char *last,
-     tempval = ::strtod_l(first, &endptr, loc.local);
- #endif
-
--    if (errno != 0)
-+    if (errno != 0 && errno != EINVAL)
-     {
-         return {first + (endptr - first), std::errc::result_out_of_range};
-     }
-@@ -139,8 +139,10 @@ really_inline from_chars_result from_chars(const char 
*first, const char *last,
-     long int
- #ifdef _WIN32
-     tempval = _strtol_l(first, &endptr, 0, loc.local);
--#else
-+#elif defined(__GLIBC__)
-     tempval = ::strtol_l(first, &endptr, 0, loc.local);
-+#else
-+    tempval = ::strtol(first, &endptr, 0);
- #endif
-
-     if (errno != 0)

diff --git 
a/media-libs/opencolorio/files/opencolorio-2.2.1-support-doxygen-1.9.7.patch 
b/media-libs/opencolorio/files/opencolorio-2.2.1-support-doxygen-1.9.7.patch
deleted file mode 100644
index b3b4db802e96..000000000000
--- a/media-libs/opencolorio/files/opencolorio-2.2.1-support-doxygen-1.9.7.patch
+++ /dev/null
@@ -1,184 +0,0 @@
-https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/94da59daeb4647faa9b134665ad156f37cfa021d
-
-From 94da59daeb4647faa9b134665ad156f37cfa021d Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?R=C3=A9mi=20Achard?= <[email protected]>
-Date: Tue, 30 May 2023 19:33:25 +0100
-Subject: [PATCH] Fix documentation build on Doxygen 1.9.7
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: RĂ©mi Achard <[email protected]>
----
- include/OpenColorIO/OpenColorIO.h    | 29 ++++++----------------------
- include/OpenColorIO/OpenColorTypes.h | 25 +++++-------------------
- 2 files changed, 11 insertions(+), 43 deletions(-)
-
-diff --git a/include/OpenColorIO/OpenColorIO.h 
b/include/OpenColorIO/OpenColorIO.h
-index 313b9c631..1352771ff 100644
---- a/include/OpenColorIO/OpenColorIO.h
-+++ b/include/OpenColorIO/OpenColorIO.h
-@@ -733,11 +733,8 @@ class OCIOEXPORT Config
-     const char * getRoleColorSpace(const char * roleName) const noexcept;
- 
-     /**
--     * \defgroup Methods related to displays and views.
--     * @{
--     */
--
--    /**
-+     * Methods related to displays and views.
-+     *
-      * The following methods only manipulate active displays and views. Active
-      * displays and views are defined from an env. variable or from the 
config file.
-      *
-@@ -854,11 +851,8 @@ class OCIOEXPORT Config
-     /// Clear all the displays.
-     void clearDisplays();
- 
--    /** @} */
--
-     /**
--     * \defgroup Methods related to the Virtual Display.
--     * @{
-+     * Methods related to the Virtual Display.
-      *
-      *  ...  (See descriptions for the non-virtual methods above.)
-      *
-@@ -938,8 +932,6 @@ class OCIOEXPORT Config
-      */
-     int instantiateDisplayFromICCProfile(const char * ICCProfileFilepath);
- 
--    /** @} */
--
-     /**
-      * \brief
-      * 
-@@ -1087,8 +1079,7 @@ class OCIOEXPORT Config
-     void clearViewTransforms();
- 
-     /**
--     * \defgroup Methods related to named transforms.
--     * @{
-+     * Methods related to named transforms.
-      */
- 
-     /**
-@@ -1131,8 +1122,6 @@ class OCIOEXPORT Config
-     /// Clear all named transforms.
-     void clearNamedTransforms();
- 
--    /** @} */
--
-     // 
-     // File Rules
-     //
-@@ -2051,8 +2040,7 @@ class OCIOEXPORT ColorSpaceSet
-     const Impl * getImpl() const { return m_impl; }
- };
- 
--/** \defgroup ColorSpaceSetOperators
-- *  @{
-+/** ColorSpaceSetOperators
-  */
- 
- /**
-@@ -2092,8 +2080,6 @@ extern OCIOEXPORT ConstColorSpaceSetRcPtr 
operator&&(const ConstColorSpaceSetRcP
- extern OCIOEXPORT ConstColorSpaceSetRcPtr operator-(const 
ConstColorSpaceSetRcPtr & lcss,
-                                                     const 
ConstColorSpaceSetRcPtr & rcss);
- 
--/** @}*/
--
- 
- //
- // Look
-@@ -3669,8 +3655,7 @@ class OCIOEXPORT SystemMonitors
-     virtual bool isSupported() const noexcept = 0;
- 
-     /**
--     * \defgroup Methods to access some information of the attached and 
active monitors.
--     * @{
-+     * Methods to access some information of the attached and active monitors.
-      */
- 
-     /// Get the number of active monitors reported by the operating system.
-@@ -3687,8 +3672,6 @@ class OCIOEXPORT SystemMonitors
-     /// Get the ICC profile path associated to the monitor.
-     virtual const char * getProfileFilepath(size_t idx) const = 0;
- 
--    /** @} */
--
- protected:
-     SystemMonitors() = default;
-     virtual ~SystemMonitors() = default;
-diff --git a/include/OpenColorIO/OpenColorTypes.h 
b/include/OpenColorIO/OpenColorTypes.h
-index c400568ea..0df8310e9 100644
---- a/include/OpenColorIO/OpenColorTypes.h
-+++ b/include/OpenColorIO/OpenColorTypes.h
-@@ -726,8 +726,7 @@ extern OCIOEXPORT ExposureContrastStyle 
ExposureContrastStyleFromString(const ch
- extern OCIOEXPORT const char * NegativeStyleToString(NegativeStyle style);
- extern OCIOEXPORT NegativeStyle NegativeStyleFromString(const char * style);
- 
--/** \defgroup Env. variables.
-- *  @{
-+/** Env. variables.
-  *
-  * These environmental variables are used by the OpenColorIO library.
-  * For variables that allow specifying more than one token, they should be 
separated by commas.
-@@ -776,10 +775,7 @@ extern OCIOEXPORT const char * 
OCIO_OPTIMIZATION_FLAGS_ENVVAR;
-  */
- extern OCIOEXPORT const char * OCIO_USER_CATEGORIES_ENVVAR;
- 
--/** @}*/
--
--/** \defgroup VarsRoles
-- *  @{
-+/** VarsRoles
-  */
- 
- // TODO: Move to .rst
-@@ -852,10 +848,7 @@ extern OCIOEXPORT const char * ROLE_INTERCHANGE_SCENE;
-  */
- extern OCIOEXPORT const char * ROLE_INTERCHANGE_DISPLAY;
- 
--/** @}*/
--
--/** \defgroup VarsSharedView
-- *  @{
-+/** VarsSharedView
-  */
- 
- /*!rst::
-@@ -870,10 +863,7 @@ Shared View
-  */
- extern OCIOEXPORT const char * OCIO_VIEW_USE_DISPLAY_NAME;
- 
--/** @}*/
--
--/** \defgroup VarsFormatMetadata
-- *  @{
-+/** VarsFormatMetadata
-  */
- 
- // TODO: Move to .rst
-@@ -929,10 +919,7 @@ extern OCIOEXPORT const char * METADATA_NAME;
-  */
- extern OCIOEXPORT const char * METADATA_ID;
- 
--/** @}*/
--
--/** \defgroup VarsCaches
-- *  @{
-+/** VarsCaches
-  */
- 
- /*!rst::
-@@ -963,8 +950,6 @@ extern OCIOEXPORT const char * 
OCIO_DISABLE_PROCESSOR_CACHES;
- // variable to disable the fallback.
- extern OCIOEXPORT const char * OCIO_DISABLE_CACHE_FALLBACK;
- 
--/** @}*/
--
- 
- // Archive config feature
- // Default filename (with extension) of an config.

diff --git 
a/media-libs/opencolorio/files/opencolorio-2.2.1-support-minizip-ng-4.patch 
b/media-libs/opencolorio/files/opencolorio-2.2.1-support-minizip-ng-4.patch
deleted file mode 100644
index 8ee4ceaf9970..000000000000
--- a/media-libs/opencolorio/files/opencolorio-2.2.1-support-minizip-ng-4.patch
+++ /dev/null
@@ -1,92 +0,0 @@
-# From https://github.com/AcademySoftwareFoundation/OpenColorIO/pull/1806
-From d15ccddd4d20d66749577d7444de861112f6864c Mon Sep 17 00:00:00 2001
-From: Brad Smith <[email protected]>
-Date: Thu, 29 Jun 2023 09:57:28 -0400
-Subject: [PATCH] Add support for minizip-ng 4 API
-
-Signed-off-by: Brad Smith <[email protected]>
----
- src/OpenColorIO/OCIOZArchive.cpp | 22 +++++++++++++++++++++-
- src/apps/ocioarchive/main.cpp    |  4 ++++
- 2 files changed, 25 insertions(+), 1 deletion(-)
-
-diff --git a/src/OpenColorIO/OCIOZArchive.cpp 
b/src/OpenColorIO/OCIOZArchive.cpp
-index 85fc7bb76..24d836e95 100644
---- a/src/OpenColorIO/OCIOZArchive.cpp
-+++ b/src/OpenColorIO/OCIOZArchive.cpp
-@@ -225,7 +225,11 @@ void archiveConfig(std::ostream & ostream, const Config & 
config, const char * c
-     std::string configStr = ss.str();
- 
-     // Write zip to memory stream.
-+#if MZ_VERSION_BUILD >= 040000
-+    write_mem_stream = mz_stream_mem_create();
-+#else
-     mz_stream_mem_create(&write_mem_stream);
-+#endif
-     mz_stream_mem_set_grow_size(write_mem_stream, 128 * 1024);
-     mz_stream_open(write_mem_stream, NULL, MZ_OPEN_MODE_CREATE);
- 
-@@ -237,7 +241,11 @@ void archiveConfig(std::ostream & ostream, const Config & 
config, const char * c
-     options.compress_level  = ArchiveCompressionLevels::BEST;
- 
-     // Create the writer handle.
-+#if MZ_VERSION_BUILD >= 040000
-+    archiver = mz_zip_writer_create();
-+#else
-     mz_zip_writer_create(&archiver);
-+#endif
- 
-     // Archive options.
-     // Compression method
-@@ -332,7 +340,11 @@ void ExtractOCIOZArchive(const char * archivePath, const 
char * destination)
-     std::string outputDestination = pystring::os::path::normpath(destination);
- 
-     // Create zip reader.
-+#if MZ_VERSION_BUILD >= 040000
-+    extracter = mz_zip_reader_create();
-+#else
-     mz_zip_reader_create(&extracter);
-+#endif
- 
-     MinizipNgHandlerGuard extracterGuard(extracter, false, false);
- 
-@@ -450,7 +462,11 @@ std::vector<uint8_t> getFileStringFromArchiveFile(const 
std::string & filepath,
-     std::vector<uint8_t> buffer;
- 
-     // Create the reader object.
-+#if MZ_VERSION_BUILD >= 040000
-+    reader = mz_zip_reader_create();
-+#else
-     mz_zip_reader_create(&reader);
-+#endif
- 
-     MinizipNgHandlerGuard extracterGuard(reader, false, true);
- 
-@@ -510,7 +526,11 @@ void getEntriesMappingFromArchiveFile(const std::string & 
archivePath,
-     void *reader = NULL;
- 
-     // Create the reader object.
-+#if MZ_VERSION_BUILD >= 040000
-+    reader = mz_zip_reader_create();
-+#else
-     mz_zip_reader_create(&reader);
-+#endif
- 
-     MinizipNgHandlerGuard extracterGuard(reader, false, false);
- 
-diff --git a/src/apps/ocioarchive/main.cpp b/src/apps/ocioarchive/main.cpp
-index 190cadee5..68054a6da 100644
---- a/src/apps/ocioarchive/main.cpp
-+++ b/src/apps/ocioarchive/main.cpp
-@@ -235,7 +235,11 @@ int main(int argc, const char **argv)
-         }
- 
-         std::string path = args[0];
-+#if MZ_VERSION_BUILD >= 040000
-+        reader = mz_zip_reader_create();
-+#else
-         mz_zip_reader_create(&reader);
-+#endif
-         struct tm tmu_date;
-         
-         err = mz_zip_reader_open_file(reader, path.c_str());

diff --git a/media-libs/opencolorio/opencolorio-2.1.3.ebuild 
b/media-libs/opencolorio/opencolorio-2.1.3.ebuild
deleted file mode 100644
index 93f7922f06b6..000000000000
--- a/media-libs/opencolorio/opencolorio-2.1.3.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit cmake flag-o-matic python-single-r1
-
-DESCRIPTION="Color management framework for visual effects and animation"
-HOMEPAGE="https://opencolorio.org 
https://github.com/AcademySoftwareFoundation/OpenColorIO";
-SRC_URI="https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
-S="${WORKDIR}/OpenColorIO-${PV}"
-
-LICENSE="BSD"
-# TODO: drop .1 on next SONAME bump (2.1 -> 2.2?) as we needed to nudge it
-# to force rebuild of consumers due to changing to openexr 3 changing API.
-SLOT="0/$(ver_cut 1-2).1"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv"
-IUSE="cpu_flags_x86_sse2 doc opengl python test"
-REQUIRED_USE="
-       doc? ( python )
-       python? ( ${PYTHON_REQUIRED_USE} )
-"
-
-# Restricting tests, bugs #439790 and #447908
-RESTRICT="test"
-
-# Works with older OIIO but need to force a version w/ OpenEXR 3
-RDEPEND="
-       dev-cpp/pystring
-       dev-python/pybind11
-       <dev-cpp/yaml-cpp-0.8.0:=
-       >=dev-libs/imath-3.1.4-r2:=
-       dev-libs/tinyxml
-       opengl? (
-               media-libs/lcms:2
-               >=media-libs/openimageio-2.3.12.0-r3:=
-               media-libs/glew:=
-               media-libs/freeglut
-               virtual/opengl
-       )
-       python? ( ${PYTHON_DEPS} )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-       virtual/pkgconfig
-       doc? (
-               $(python_gen_cond_dep '
-                       dev-python/sphinx[${PYTHON_USEDEP}]
-                       dev-python/testresources[${PYTHON_USEDEP}]
-               ')
-       )
-"
-
-PATCHES=(
-       "${FILESDIR}"/${PN}-2.1.1-gcc12.patch
-       "${FILESDIR}"/${PN}-2.1.2-musl-strtol.patch
-)
-
-pkg_setup() {
-       use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-       cmake_src_prepare
-
-       sed -i -e "s|LIBRARY DESTINATION lib|LIBRARY DESTINATION 
$(get_libdir)|g" 
{,src/bindings/python/,src/OpenColorIO/,src/libutils/oiiohelpers/,src/libutils/oglapphelpers/}CMakeLists.txt
 || die
-       sed -i -e "s|ARCHIVE DESTINATION lib|ARCHIVE DESTINATION 
$(get_libdir)|g" 
{,src/bindings/python/,src/OpenColorIO/,src/libutils/oiiohelpers/,src/libutils/oglapphelpers/}CMakeLists.txt
 || die
-
-       # Avoid automagic test dependency on OSL, bug #833933
-       # Can cause problems during e.g. OpenEXR unsplitting migration
-       cmake_run_in tests cmake_comment_add_subdirectory osl
-}
-
-src_configure() {
-       # Missing features:
-       # - Truelight and Nuke are not in portage for now, so their support are 
disabled
-       # - Java bindings was not tested, so disabled
-       # Notes:
-       # - OpenImageIO is required for building ociodisplay and ocioconvert 
(USE opengl)
-       # - OpenGL, GLUT and GLEW is required for building ociodisplay (USE 
opengl)
-       local mycmakeargs=(
-               -DOCIO_USE_OPENEXR_HALF=OFF
-               -DOCIO_BUILD_DOCS=$(usex doc)
-               -DOCIO_BUILD_APPS=$(usex opengl)
-               -DOCIO_BUILD_PYTHON=$(usex python)
-               -DOCIO_PYTHON_VERSION="${EPYTHON/python/}"
-               -DOCIO_BUILD_JAVA=OFF
-               -DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2)
-               -DOCIO_BUILD_TESTS=$(usex test)
-               -DOCIO_BUILD_GPU_TESTS=$(usex test)
-               -DOCIO_BUILD_FROZEN_DOCS=$(usex doc)
-               -DOCIO_INSTALL_EXT_PACKAGES=NONE
-       )
-
-       # We need this to work around asserts that can trigger even in proper 
use cases.
-       # See 
https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1235
-       append-flags -DNDEBUG
-
-       cmake_src_configure
-}

diff --git a/media-libs/opencolorio/opencolorio-2.2.1.ebuild 
b/media-libs/opencolorio/opencolorio-2.2.1.ebuild
deleted file mode 100644
index df00e5138051..000000000000
--- a/media-libs/opencolorio/opencolorio-2.2.1.ebuild
+++ /dev/null
@@ -1,141 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit cmake python-single-r1 virtualx
-
-DESCRIPTION="Color management framework for visual effects and animation"
-HOMEPAGE="https://opencolorio.org 
https://github.com/AcademySoftwareFoundation/OpenColorIO";
-SRC_URI="https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
-S="${WORKDIR}/OpenColorIO-${PV}"
-
-LICENSE="BSD"
-SLOT="0/$(ver_cut 1-2)"
-# minizip-ng: ~arm ~arm64 ~ppc64 ~riscv
-# osl: ~riscv
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
-IUSE="apps cpu_flags_x86_sse2 doc opengl python test"
-# TODO: drop opengl? It does nothing without building either the apps or the 
testsuite
-REQUIRED_USE="
-       apps? ( opengl )
-       doc? ( python )
-       python? ( ${PYTHON_REQUIRED_USE} )
-       test? ( opengl )
-"
-
-RDEPEND="
-       dev-cpp/pystring
-       <dev-cpp/yaml-cpp-0.8.0:=
-       dev-libs/expat
-       >=dev-libs/imath-3.1.5:=
-       sys-libs/minizip-ng
-       sys-libs/zlib
-       apps? (
-               media-libs/lcms:2
-               >=media-libs/openexr-3.1.5:=
-       )
-       opengl? (
-               media-libs/freeglut
-               media-libs/glew:=
-               media-libs/libglvnd
-       )
-       python? (
-               ${PYTHON_DEPS}
-               $(python_gen_cond_dep 'dev-python/pybind11[${PYTHON_USEDEP}]')
-       )
-"
-DEPEND="${RDEPEND}"
-# TODO: OSL tests would need OIIO, leading to a circular dependency. If OIIO
-# isn't found this test will be skipped (automagic if found?)
-BDEPEND="
-       virtual/pkgconfig
-       doc? (
-               app-text/doxygen
-               $(python_gen_cond_dep '
-                       dev-python/breathe[${PYTHON_USEDEP}]
-                       dev-python/recommonmark[${PYTHON_USEDEP}]
-                       dev-python/six[${PYTHON_USEDEP}]
-                       dev-python/sphinx[${PYTHON_USEDEP}]
-                       dev-python/sphinx-press-theme[${PYTHON_USEDEP}]
-                       dev-python/sphinx-tabs[${PYTHON_USEDEP}]
-                       dev-python/testresources[${PYTHON_USEDEP}]
-               ')
-       )
-       opengl? (
-               media-libs/freeglut
-               media-libs/glew:=
-               media-libs/libglvnd
-       )
-"
-#      test? (
-#              >=media-libs/openimageio-2.2.14
-#              >=media-libs/osl-1.11
-#      )
-# "
-
-# Restricting tests, bugs #439790 and #447908
-RESTRICT="!test? ( test )"
-
-PATCHES=(
-       "${FILESDIR}/${PN}-2.2.1-adjust-python-installation.patch"
-       "${FILESDIR}/${PN}-2.2.1-support-minizip-ng-4.patch"
-       "${FILESDIR}/${PN}-${PV}-support-doxygen-1.9.7.patch"
-)
-
-pkg_setup() {
-       use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-       cmake_src_prepare
-
-       # Avoid automagic test dependency on OSL, bug #833933
-       # Can cause problems during e.g. OpenEXR unsplitting migration
-       cmake_run_in tests cmake_comment_add_subdirectory osl
-}
-
-src_configure() {
-       # Missing features:
-       # - Truelight and Nuke are not in portage for now, so their support are 
disabled
-       # - Java bindings was not tested, so disabled
-       # Notes:
-       # - OpenImageIO or OpenEXR (default) is required for building 
ociodisplay and
-       #       ocioconvert (USE opengl)
-       # - OpenGL, GLUT and GLEW is required for building ociodisplay (USE 
opengl)
-       local mycmakeargs=(
-               -DOCIO_BUILD_APPS=$(usex apps)
-               -DOCIO_BUILD_DOCS=$(usex doc)
-               -DOCIO_BUILD_FROZEN_DOCS=$(usex doc)
-               -DOCIO_BUILD_GPU_TESTS=$(usex test)
-               -DOCIO_BUILD_JAVA=OFF
-               -DOCIO_BUILD_PYTHON=$(usex python)
-               -DOCIO_BUILD_TESTS=$(usex test)
-               -DOCIO_INSTALL_EXT_PACKAGES=NONE
-               -DOCIO_USE_OIIO_CMAKE_CONFIG=ON
-               -DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2)
-       )
-       use python && mycmakeargs+=(
-               -DOCIO_PYTHON_VERSION="${EPYTHON/python/}"
-               -DPython_EXECUTABLE="${PYTHON}"
-               -DPYTHON_VARIANT_PATH=$(python_get_sitedir)
-       )
-
-       cmake_src_configure
-}
-
-src_install() {
-       cmake_src_install
-
-       if use doc; then
-               # there are already files in ${ED}/usr/share/doc/${PF}
-               mv "${ED}/usr/share/doc/OpenColorIO/"* 
"${ED}/usr/share/doc/${PF}" || die
-               rmdir "${ED}/usr/share/doc/OpenColorIO" || die
-       fi
-}
-
-src_test() {
-       virtx cmake_src_test
-}

Reply via email to