1 |
commit: d2da0328cf5f3819d72d617577a2122af02fbf6c |
2 |
Author: Sebastian Parborg <darkdefende <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 28 00:33:14 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 00:19:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2da0328 |
7 |
|
8 |
media-libs/opencolorio: bump to 2.0.0 |
9 |
|
10 |
Signed-off-by: Sebastian Parborg <darkdefende <AT> gmail.com> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-libs/opencolorio/Manifest | 1 + |
14 |
media-libs/opencolorio/opencolorio-2.0.0.ebuild | 99 +++++++++++++++++++++++++ |
15 |
2 files changed, 100 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/opencolorio/Manifest b/media-libs/opencolorio/Manifest |
18 |
index c7ac45d7ec9..c961e5e5010 100644 |
19 |
--- a/media-libs/opencolorio/Manifest |
20 |
+++ b/media-libs/opencolorio/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST opencolorio-1.1.1.tar.gz 13828483 BLAKE2B f5642f08db84f2b8da44d0dbf58313c78263496fc6f1f209b93fd303bbf9477033317b44eb8bb2b13a70afa19422f4fa312d52a3fa6598031a2aa50b33bbfccf SHA512 bed722f9ddce1887d28aacef2882debccd7c3f3c0c708d2723fea58a097de9f02721af9e85453e089ffda5406aef593ab6536c6886307823c132aa787e492e33 |
23 |
+DIST opencolorio-2.0.0.tar.gz 9892414 BLAKE2B fdff2e144eadb444624f059f7582ea99d4e2dbd53cad5b89f92d19c7ca9dda2ff9ec4f8c8d00e6ac083da21134f9bc783b297c553a8e7d11936c936e5c41a2f3 SHA512 7110a1a30a5fa64b81d7fc5e33234673aaddbad5e19ce7f21436c590edd7d2ce767650c9a934011a96e53132c030bd0b654fcf93ad79c1bfc8c050762c57f6d0 |
24 |
|
25 |
diff --git a/media-libs/opencolorio/opencolorio-2.0.0.ebuild b/media-libs/opencolorio/opencolorio-2.0.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..8ae78845721 |
28 |
--- /dev/null |
29 |
+++ b/media-libs/opencolorio/opencolorio-2.0.0.ebuild |
30 |
@@ -0,0 +1,99 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..9} ) |
37 |
+ |
38 |
+inherit cmake flag-o-matic python-single-r1 |
39 |
+ |
40 |
+DESCRIPTION="A color management framework for visual effects and animation" |
41 |
+HOMEPAGE="https://opencolorio.org/" |
42 |
+ |
43 |
+if [[ ${PV} = *9999 ]]; then |
44 |
+ inherit git-r3 |
45 |
+ EGIT_REPO_URI="https://github.com/AcademySoftwareFoundation/OpenColorIO.git" |
46 |
+else |
47 |
+ SRC_URI="https://github.com/imageworks/OpenColorIO/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ S="${WORKDIR}/OpenColorIO-${PV}" |
49 |
+ KEYWORDS="~amd64" |
50 |
+fi |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+SLOT="0" |
54 |
+IUSE="cpu_flags_x86_sse2 doc opengl python static-libs test" |
55 |
+REQUIRED_USE=" |
56 |
+ doc? ( python ) |
57 |
+ python? ( ${PYTHON_REQUIRED_USE} )" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ dev-cpp/pystring |
61 |
+ dev-python/pybind11 |
62 |
+ media-libs/ilmbase |
63 |
+ >=dev-cpp/yaml-cpp-0.5 |
64 |
+ dev-libs/tinyxml |
65 |
+ opengl? ( |
66 |
+ media-libs/lcms:2 |
67 |
+ >=media-libs/openimageio-2.2.13.0 |
68 |
+ media-libs/glew:= |
69 |
+ media-libs/freeglut |
70 |
+ virtual/opengl |
71 |
+ ) |
72 |
+ python? ( ${PYTHON_DEPS} ) |
73 |
+" |
74 |
+ |
75 |
+DEPEND="${RDEPEND}" |
76 |
+BDEPEND=" |
77 |
+ >=dev-util/cmake-3.16.2-r1 |
78 |
+ virtual/pkgconfig |
79 |
+ doc? ( |
80 |
+ $(python_gen_cond_dep ' |
81 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
82 |
+ ') |
83 |
+ ) |
84 |
+" |
85 |
+ |
86 |
+# Restricting tests, bugs #439790 and #447908 |
87 |
+RESTRICT="mirror test" |
88 |
+ |
89 |
+CMAKE_BUILD_TYPE=RelWithDebInfo |
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 |
+ |
102 |
+src_configure() { |
103 |
+ # Missing features: |
104 |
+ # - Truelight and Nuke are not in portage for now, so their support are disabled |
105 |
+ # - Java bindings was not tested, so disabled |
106 |
+ # Notes: |
107 |
+ # - OpenImageIO is required for building ociodisplay and ocioconvert (USE opengl) |
108 |
+ # - OpenGL, GLUT and GLEW is required for building ociodisplay (USE opengl) |
109 |
+ local mycmakeargs=( |
110 |
+ -DOCIO_BUILD_NUKE=OFF |
111 |
+ -DBUILD_SHARED_LIBS=ON |
112 |
+ -DOCIO_BUILD_STATIC=$(usex static-libs) |
113 |
+ -DOCIO_BUILD_DOCS=$(usex doc) |
114 |
+ -DOCIO_BUILD_APPS=$(usex opengl) |
115 |
+ -DOCIO_BUILD_PYTHON=$(usex python) |
116 |
+ -DOCIO_BUILD_JAVA=OFF |
117 |
+ -DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2) |
118 |
+ -DOCIO_BUILD_TESTS=$(usex test) |
119 |
+ -DOCIO_BUILD_GPU_TESTS=$(usex test) |
120 |
+ -DOCIO_BUILD_FROZEN_DOCS=$(usex doc) |
121 |
+ -DOCIO_INSTALL_EXT_PACKAGES=NONE |
122 |
+ ) |
123 |
+ |
124 |
+ # We need this to work around asserts that can trigger even in proper use cases. |
125 |
+ # See https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1235 |
126 |
+ append-flags -DNDEBUG |
127 |
+ |
128 |
+ cmake_src_configure |
129 |
+} |