1 |
commit: b8c3d3f5109a6ea1084b79d6f61d9d3273ee891b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 6 01:05:56 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 6 01:05:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8c3d3f5 |
7 |
|
8 |
media-libs/opencolorio: add 2.1.2 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
media-libs/opencolorio/Manifest | 1 + |
13 |
media-libs/opencolorio/opencolorio-2.1.2.ebuild | 104 ++++++++++++++++++++++++ |
14 |
2 files changed, 105 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/opencolorio/Manifest b/media-libs/opencolorio/Manifest |
17 |
index 119839b0bbb2..1cfa23094bad 100644 |
18 |
--- a/media-libs/opencolorio/Manifest |
19 |
+++ b/media-libs/opencolorio/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST opencolorio-1.1.1.tar.gz 13828483 BLAKE2B f5642f08db84f2b8da44d0dbf58313c78 |
21 |
DIST opencolorio-2.0.1.tar.gz 9945107 BLAKE2B cb4b152205642abd847b7263db838dbb922004017b9f19f7b2bd81d97f64e6f7d008c5a3f734475f510180ae9cc3a84688631e69c0587e0c77599b75b07d9159 SHA512 5787cc4cadb0a1832c925712ca0dfef6e843082b9461460e1798326c6fceaa97bee78e5298651e6a8a3662b348eab5ab9791e94c3efcac337da07229fb559338 |
22 |
DIST opencolorio-2.0.3.tar.gz 10813503 BLAKE2B a853f2a39b4c3c0005056f0278355f01a8d62ec90054d3f1ce29501ce8fc96628d68eb3d942bb0cc33c71dcaa1a7421684bdd79b190a5eda5c5b5c6b9190017c SHA512 cb8d6d4e2481bfe9449f665ff888ad6ffb2d2e82f1a132b7cd3a74c88b2084f469c362511e57b964d3aee7c1badd41422640ab3a857402fa6a90c8bdf4cc60bb |
23 |
DIST opencolorio-2.1.1.tar.gz 11013141 BLAKE2B ffece30b9f37acd10665a716d519c9807f6398e5e59baedd194376a1424a6d875781c027d998567b2a241da6388a780c94d95237b0b4d64b836cc5ccccd4383c SHA512 86585ec860d460b158f24efb82f202deced7ce96a6bfefd42f39cad9c112add68cca6935f383f5d718c07fe1c121d8ed8b0d2069321f1dafb8ce68b49bc75194 |
24 |
+DIST opencolorio-2.1.2.tar.gz 11021014 BLAKE2B 2612c31c88a86255b3b0389241649aaaf3754f065eec57e8438d3b594d9f8fcac81c71fe06cf0acf0680e40d0fbe019ad16a34a1371a7a3a57a21017f5efb463 SHA512 594e808fb1c175d5b14eb540be0dfb6f41cd37b5bf7df8c2d24d44dfe4986643ea68e52d0282eb3b25283489789001a57a201de1eecc1560fc9461780c7da353 |
25 |
|
26 |
diff --git a/media-libs/opencolorio/opencolorio-2.1.2.ebuild b/media-libs/opencolorio/opencolorio-2.1.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..17b4b7fb8e1f |
29 |
--- /dev/null |
30 |
+++ b/media-libs/opencolorio/opencolorio-2.1.2.ebuild |
31 |
@@ -0,0 +1,104 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit cmake flag-o-matic python-single-r1 |
40 |
+ |
41 |
+DESCRIPTION="A color management framework for visual effects and animation" |
42 |
+HOMEPAGE="https://opencolorio.org https://github.com/AcademySoftwareFoundation/OpenColorIO" |
43 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+S="${WORKDIR}/OpenColorIO-${PV}" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+# TODO: drop .1 on next SONAME bump (2.1 -> 2.2?) as we needed to nudge it |
48 |
+# to force rebuild of consumers due to changing to openexr 3 changing API. |
49 |
+SLOT="0/$(ver_cut 1-2).1" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
51 |
+IUSE="cpu_flags_x86_sse2 doc opengl python static-libs test" |
52 |
+REQUIRED_USE=" |
53 |
+ doc? ( python ) |
54 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
55 |
+" |
56 |
+ |
57 |
+# Works with older OIIO but need to force a version w/ OpenEXR 3 |
58 |
+RDEPEND=" |
59 |
+ dev-cpp/pystring |
60 |
+ dev-python/pybind11 |
61 |
+ >=dev-cpp/yaml-cpp-0.7.0:= |
62 |
+ >=dev-libs/imath-3.1.4-r2:= |
63 |
+ dev-libs/tinyxml |
64 |
+ opengl? ( |
65 |
+ media-libs/lcms:2 |
66 |
+ >=media-libs/openimageio-2.3.12.0-r3:= |
67 |
+ media-libs/glew:= |
68 |
+ media-libs/freeglut |
69 |
+ virtual/opengl |
70 |
+ ) |
71 |
+ python? ( ${PYTHON_DEPS} ) |
72 |
+" |
73 |
+DEPEND="${RDEPEND}" |
74 |
+BDEPEND=" |
75 |
+ virtual/pkgconfig |
76 |
+ doc? ( |
77 |
+ $(python_gen_cond_dep ' |
78 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
79 |
+ dev-python/testresources[${PYTHON_USEDEP}] |
80 |
+ ') |
81 |
+ ) |
82 |
+" |
83 |
+ |
84 |
+# Restricting tests, bugs #439790 and #447908 |
85 |
+RESTRICT="test" |
86 |
+ |
87 |
+PATCHES=( |
88 |
+ "${FILESDIR}"/${PN}-2.1.1-gcc12.patch |
89 |
+) |
90 |
+ |
91 |
+pkg_setup() { |
92 |
+ use python && python-single-r1_pkg_setup |
93 |
+} |
94 |
+ |
95 |
+src_prepare() { |
96 |
+ cmake_src_prepare |
97 |
+ |
98 |
+ 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 |
99 |
+ 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 |
100 |
+ |
101 |
+ # Avoid automagic test dependency on OSL, bug #833933 |
102 |
+ # Can cause problems during e.g. OpenEXR unsplitting migration |
103 |
+ cmake_run_in tests cmake_comment_add_subdirectory osl |
104 |
+} |
105 |
+ |
106 |
+src_configure() { |
107 |
+ # Missing features: |
108 |
+ # - Truelight and Nuke are not in portage for now, so their support are disabled |
109 |
+ # - Java bindings was not tested, so disabled |
110 |
+ # Notes: |
111 |
+ # - OpenImageIO is required for building ociodisplay and ocioconvert (USE opengl) |
112 |
+ # - OpenGL, GLUT and GLEW is required for building ociodisplay (USE opengl) |
113 |
+ local mycmakeargs=( |
114 |
+ -DOCIO_USE_OPENEXR_HALF=OFF |
115 |
+ |
116 |
+ -DBUILD_SHARED_LIBS=ON |
117 |
+ -DOCIO_BUILD_STATIC=$(usex static-libs) |
118 |
+ -DOCIO_BUILD_DOCS=$(usex doc) |
119 |
+ -DOCIO_BUILD_APPS=$(usex opengl) |
120 |
+ -DOCIO_BUILD_PYTHON=$(usex python) |
121 |
+ -DOCIO_PYTHON_VERSION="${EPYTHON/python/}" |
122 |
+ -DOCIO_BUILD_JAVA=OFF |
123 |
+ -DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2) |
124 |
+ -DOCIO_BUILD_TESTS=$(usex test) |
125 |
+ -DOCIO_BUILD_GPU_TESTS=$(usex test) |
126 |
+ -DOCIO_BUILD_FROZEN_DOCS=$(usex doc) |
127 |
+ -DOCIO_INSTALL_EXT_PACKAGES=NONE |
128 |
+ ) |
129 |
+ |
130 |
+ # We need this to work around asserts that can trigger even in proper use cases. |
131 |
+ # See https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1235 |
132 |
+ append-flags -DNDEBUG |
133 |
+ |
134 |
+ cmake_src_configure |
135 |
+} |