Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/opencolorio/
Date: Sat, 10 Oct 2020 04:34:16
Message-Id: 1602300453.279e0179049fc08d5f304e23f1729a2c231a2f07.sam@gentoo
1 commit: 279e0179049fc08d5f304e23f1729a2c231a2f07
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 03:27:22 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 03:27:33 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=279e0179
7
8 media-libs/opencolorio: bump to 1.1.1
9
10 Closes: https://bugs.gentoo.org/747409
11 Closes: https://bugs.gentoo.org/667986
12 Closes: https://bugs.gentoo.org/677642
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 media-libs/opencolorio/Manifest | 1 +
17 media-libs/opencolorio/opencolorio-1.1.1.ebuild | 92 +++++++++++++++++++++++++
18 2 files changed, 93 insertions(+)
19
20 diff --git a/media-libs/opencolorio/Manifest b/media-libs/opencolorio/Manifest
21 index 43489473eb6..251465032f2 100644
22 --- a/media-libs/opencolorio/Manifest
23 +++ b/media-libs/opencolorio/Manifest
24 @@ -1 +1,2 @@
25 DIST opencolorio-1.1.0.tar.gz 13826812 BLAKE2B 555a5ac393170503c944c3471ea482b1a22be7c98ee7b81af37f52db185c8b61c5318102c139a8711f4828d306b6c4322f5d839c4df08ce41ebbb9dcb2bda152 SHA512 909874a9f91a8d229622810fc70233680c6e75203bd8555179322de2873da00bf302432e19f189b787ffcda3157ddec1e4601c97f75a36e16f644fe7d42f6998
26 +DIST opencolorio-1.1.1.tar.gz 13828483 BLAKE2B f5642f08db84f2b8da44d0dbf58313c78263496fc6f1f209b93fd303bbf9477033317b44eb8bb2b13a70afa19422f4fa312d52a3fa6598031a2aa50b33bbfccf SHA512 bed722f9ddce1887d28aacef2882debccd7c3f3c0c708d2723fea58a097de9f02721af9e85453e089ffda5406aef593ab6536c6886307823c132aa787e492e33
27
28 diff --git a/media-libs/opencolorio/opencolorio-1.1.1.ebuild b/media-libs/opencolorio/opencolorio-1.1.1.ebuild
29 new file mode 100644
30 index 00000000000..9b3802a51da
31 --- /dev/null
32 +++ b/media-libs/opencolorio/opencolorio-1.1.1.ebuild
33 @@ -0,0 +1,92 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python3_{6,7,8} )
40 +
41 +inherit cmake flag-o-matic python-single-r1
42 +
43 +DESCRIPTION="A color management framework for visual effects and animation"
44 +HOMEPAGE="https://opencolorio.org/"
45 +SRC_URI="https://github.com/imageworks/OpenColorIO/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +S="${WORKDIR}/OpenColorIO-${PV}"
47 +
48 +LICENSE="BSD"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~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 +RDEPEND="
57 + >=dev-cpp/yaml-cpp-0.5
58 + dev-libs/tinyxml
59 + opengl? (
60 + media-libs/lcms:2
61 + media-libs/openimageio
62 + media-libs/glew:=
63 + media-libs/freeglut
64 + virtual/opengl
65 + )
66 + python? ( ${PYTHON_DEPS} )
67 +"
68 +
69 +DEPEND="${RDEPEND}"
70 +BDEPEND="
71 + virtual/pkgconfig
72 + doc? (
73 + $(python_gen_cond_dep '
74 + dev-python/sphinx[${PYTHON_USEDEP}]
75 + ')
76 + )
77 +"
78 +
79 +# Restricting tests, bugs #439790 and #447908
80 +RESTRICT="test"
81 +
82 +PATCHES=(
83 + "${FILESDIR}/${PN}-1.1.0-use-GNUInstallDirs-and-fix-cmake-install-location.patch"
84 + "${FILESDIR}/${PN}-1.1.0-remove-building-of-bundled-programs.patch"
85 + "${FILESDIR}/${PN}-1.1.0-yaml-cpp-0.6.patch"
86 + "${FILESDIR}/${PN}-1.1.0-remove-Werror.patch"
87 +)
88 +
89 +pkg_setup() {
90 + use python && python-single-r1_pkg_setup
91 +}
92 +
93 +src_prepare() {
94 + cmake_src_prepare
95 +
96 + use python && python_fix_shebang .
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 + -DOCIO_BUILD_JNIGLUE=OFF
108 + -DOCIO_BUILD_NUKE=OFF
109 + -DOCIO_BUILD_SHARED=ON
110 + -DOCIO_BUILD_STATIC=$(usex static-libs)
111 + -DOCIO_STATIC_JNIGLUE=OFF
112 + -DOCIO_BUILD_TRUELIGHT=OFF
113 + -DUSE_EXTERNAL_LCMS=ON
114 + -DUSE_EXTERNAL_TINYXML=ON
115 + -DUSE_EXTERNAL_YAML=ON
116 + -DOCIO_BUILD_DOCS=$(usex doc)
117 + -DOCIO_BUILD_APPS=$(usex opengl)
118 + -DOCIO_BUILD_PYGLUE=$(usex python)
119 + -DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2)
120 + -DOCIO_BUILD_TESTS=$(usex test)
121 + )
122 +
123 + use doc && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=ON ) # broken
124 + cmake_src_configure
125 +}