1 |
commit: 720e33b1be10795720db98a44cf14de9b40425d4 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 31 05:49:37 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 31 05:49:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=720e33b1 |
7 |
|
8 |
media-libs/opencolorio: add 2.1.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/802363 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-libs/opencolorio/Manifest | 1 + |
14 |
media-libs/opencolorio/opencolorio-2.1.0.ebuild | 96 +++++++++++++++++++++++++ |
15 |
2 files changed, 97 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/opencolorio/Manifest b/media-libs/opencolorio/Manifest |
18 |
index 6c79cbbec3a..921e7a73a12 100644 |
19 |
--- a/media-libs/opencolorio/Manifest |
20 |
+++ b/media-libs/opencolorio/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST opencolorio-1.1.1.tar.gz 13828483 BLAKE2B f5642f08db84f2b8da44d0dbf58313c78 |
22 |
DIST opencolorio-2.0.0.tar.gz 9892414 BLAKE2B fdff2e144eadb444624f059f7582ea99d4e2dbd53cad5b89f92d19c7ca9dda2ff9ec4f8c8d00e6ac083da21134f9bc783b297c553a8e7d11936c936e5c41a2f3 SHA512 7110a1a30a5fa64b81d7fc5e33234673aaddbad5e19ce7f21436c590edd7d2ce767650c9a934011a96e53132c030bd0b654fcf93ad79c1bfc8c050762c57f6d0 |
23 |
DIST opencolorio-2.0.1.tar.gz 9945107 BLAKE2B cb4b152205642abd847b7263db838dbb922004017b9f19f7b2bd81d97f64e6f7d008c5a3f734475f510180ae9cc3a84688631e69c0587e0c77599b75b07d9159 SHA512 5787cc4cadb0a1832c925712ca0dfef6e843082b9461460e1798326c6fceaa97bee78e5298651e6a8a3662b348eab5ab9791e94c3efcac337da07229fb559338 |
24 |
DIST opencolorio-2.0.2.tar.gz 10812416 BLAKE2B 36f008035c36bef9473f9f79e9362eec20abb8e217a2131d3a2be5766de60cdab36e137547d414bf18e97ad368e30fb89a0ad4d8095b24bd184704d88ef192ae SHA512 ebc6b4b4251f69cb69f7203bc9ae962010f7f60ed5d53eb3ff14b64d5ef8cac2b98d0482485f1adaaf6b8c065cd4edd01c4e0577324a86ed4ebfe8e33e9fa667 |
25 |
+DIST opencolorio-2.1.0.tar.gz 10970849 BLAKE2B 3703ab90c7dfa853583e3018eee9a28c9f471207b3c6743095cf681a4659da708893be508b521195bf84f59ac2c058f844a8f70f83666beaed208812cf845420 SHA512 a0f4fb62c768b392ca1129e2046df96d670d785fc057d4103768440b7adb65d8faf5b7d39729060791794e83e6cd4e67821aed9b30f3f04b410c60809cd72267 |
26 |
|
27 |
diff --git a/media-libs/opencolorio/opencolorio-2.1.0.ebuild b/media-libs/opencolorio/opencolorio-2.1.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..1f785feb1ab |
30 |
--- /dev/null |
31 |
+++ b/media-libs/opencolorio/opencolorio-2.1.0.ebuild |
32 |
@@ -0,0 +1,96 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+ |
40 |
+inherit cmake flag-o-matic python-single-r1 |
41 |
+ |
42 |
+DESCRIPTION="A color management framework for visual effects and animation" |
43 |
+HOMEPAGE="https://opencolorio.org https://github.com/AcademySoftwareFoundation/OpenColorIO" |
44 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+S="${WORKDIR}/OpenColorIO-${PV}" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
50 |
+IUSE="cpu_flags_x86_sse2 doc opengl python static-libs test" |
51 |
+REQUIRED_USE=" |
52 |
+ doc? ( python ) |
53 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
54 |
+" |
55 |
+# See bug #802363 for yaml-cpp < dep |
56 |
+RDEPEND=" |
57 |
+ dev-cpp/pystring |
58 |
+ dev-python/pybind11 |
59 |
+ <dev-cpp/yaml-cpp-0.7.0:= |
60 |
+ dev-libs/tinyxml |
61 |
+ media-libs/ilmbase:= |
62 |
+ opengl? ( |
63 |
+ media-libs/lcms:2 |
64 |
+ >=media-libs/openimageio-2.2.13.0 |
65 |
+ media-libs/glew:= |
66 |
+ media-libs/freeglut |
67 |
+ virtual/opengl |
68 |
+ ) |
69 |
+ python? ( ${PYTHON_DEPS} ) |
70 |
+" |
71 |
+DEPEND="${RDEPEND}" |
72 |
+BDEPEND=" |
73 |
+ >=dev-util/cmake-3.16.2-r1 |
74 |
+ virtual/pkgconfig |
75 |
+ doc? ( |
76 |
+ $(python_gen_cond_dep ' |
77 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
78 |
+ dev-python/testresources[${PYTHON_USEDEP}] |
79 |
+ ') |
80 |
+ ) |
81 |
+" |
82 |
+ |
83 |
+# Restricting tests, bugs #439790 and #447908 |
84 |
+RESTRICT="test" |
85 |
+ |
86 |
+CMAKE_BUILD_TYPE=RelWithDebInfo |
87 |
+ |
88 |
+pkg_setup() { |
89 |
+ use python && python-single-r1_pkg_setup |
90 |
+} |
91 |
+ |
92 |
+src_prepare() { |
93 |
+ cmake_src_prepare |
94 |
+ |
95 |
+ 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 |
96 |
+ 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 |
97 |
+} |
98 |
+ |
99 |
+src_configure() { |
100 |
+ # Missing features: |
101 |
+ # - Truelight and Nuke are not in portage for now, so their support are disabled |
102 |
+ # - Java bindings was not tested, so disabled |
103 |
+ # Notes: |
104 |
+ # - OpenImageIO is required for building ociodisplay and ocioconvert (USE opengl) |
105 |
+ # - OpenGL, GLUT and GLEW is required for building ociodisplay (USE opengl) |
106 |
+ local mycmakeargs=( |
107 |
+ # Don't use imath yet, needs some poking to find the right headers |
108 |
+ -DOCIO_USE_OPENEXR_HALF=ON |
109 |
+ -DBUILD_SHARED_LIBS=ON |
110 |
+ -DOCIO_BUILD_STATIC=$(usex static-libs) |
111 |
+ -DOCIO_BUILD_DOCS=$(usex doc) |
112 |
+ -DOCIO_BUILD_APPS=$(usex opengl) |
113 |
+ -DOCIO_BUILD_PYTHON=$(usex python) |
114 |
+ -DOCIO_PYTHON_VERSION="${EPYTHON/python/}" |
115 |
+ -DOCIO_BUILD_JAVA=OFF |
116 |
+ -DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2) |
117 |
+ -DOCIO_BUILD_TESTS=$(usex test) |
118 |
+ -DOCIO_BUILD_GPU_TESTS=$(usex test) |
119 |
+ -DOCIO_BUILD_FROZEN_DOCS=$(usex doc) |
120 |
+ -DOCIO_INSTALL_EXT_PACKAGES=NONE |
121 |
+ ) |
122 |
+ |
123 |
+ # We need this to work around asserts that can trigger even in proper use cases. |
124 |
+ # See https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1235 |
125 |
+ append-flags -DNDEBUG |
126 |
+ |
127 |
+ cmake_src_configure |
128 |
+} |