1 |
commit: 7f3af1970acbb476b6f2e24ff2302f4793c8305f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 10 04:33:58 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 04:33:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f3af197 |
7 |
|
8 |
media-libs/openimageio: bump to 2.2.7.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/687834 |
11 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
media-libs/openimageio/Manifest | 1 + |
15 |
media-libs/openimageio/openimageio-2.2.7.0.ebuild | 141 ++++++++++++++++++++++ |
16 |
2 files changed, 142 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/openimageio/Manifest b/media-libs/openimageio/Manifest |
19 |
index 641925b4be0..6dd921aee74 100644 |
20 |
--- a/media-libs/openimageio/Manifest |
21 |
+++ b/media-libs/openimageio/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST openimageio-1.8.17.tar.gz 27835527 BLAKE2B e524d171bb918a46aed3c5f329bc8d10853d8b170c1e9b4a6edad72db66b3a03ea32eba4338577a667254e884daebf6b5b33a70090b953a5b5e269d874c91852 SHA512 e58cad9458d71a845c3214675a41e0cffe0509fd52a95ef5a44af0015ef25a1145f9ebb50ff1f5e7200ae0a46efb40e851855f53c55d058c0bc5654a072bdbf7 |
24 |
DIST openimageio-2.2.6.1.tar.gz 29187970 BLAKE2B 857659892009e1638b923e7f28d29d7a1416641284ead714373875a74b7607205c6bc6810179d63bb066034a32452e0f4c2b78a0578b006e87602c43f8a34783 SHA512 a23fa75d5de589ce6f73ff17870cd1df764bb92a0dbc32b36d0e799b30705e1f174e0763150d27611c0efa07a21cb7636508e3135942ee7c56d0d59940d3a053 |
25 |
+DIST openimageio-2.2.7.0.tar.gz 29189796 BLAKE2B 33974c8dc60e7619e139e6f73c48535e90208282b8d1e8e4ab10c36ec75c50bfe7ca7df0d6a80b49ebc4d61e3c6ceb7f87760854c13cc133f4dd031eeeaa5a65 SHA512 a36ffcf150cb1134aea33ec3e7ee2113c9df48c6860812a9e5ca519400211ba0fa5732153226f7e80cc20c2553834bd425adb93cdebbd5354612752f46ebc8e0 |
26 |
|
27 |
diff --git a/media-libs/openimageio/openimageio-2.2.7.0.ebuild b/media-libs/openimageio/openimageio-2.2.7.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..0dc559efa6f |
30 |
--- /dev/null |
31 |
+++ b/media-libs/openimageio/openimageio-2.2.7.0.ebuild |
32 |
@@ -0,0 +1,141 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{6..9} ) |
39 |
+inherit cmake python-single-r1 |
40 |
+ |
41 |
+DESCRIPTION="A library for reading and writing images" |
42 |
+HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO" |
43 |
+SRC_URI="https://github.com/OpenImageIO/oiio/archive/Release-${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+S="${WORKDIR}/oiio-Release-${PV}" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0/2.2" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+ |
50 |
+X86_CPU_FEATURES=( |
51 |
+ aes:aes sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4.1 sse4_2:sse4.2 |
52 |
+ avx:avx avx2:avx2 avx512f:avx512f f16c:f16c |
53 |
+) |
54 |
+CPU_FEATURES=( ${X86_CPU_FEATURES[@]/#/cpu_flags_x86_} ) |
55 |
+ |
56 |
+IUSE="doc ffmpeg field3d gif jpeg2k opencv opengl openvdb ptex python qt5 raw +truetype ${CPU_FEATURES[@]%:*}" |
57 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
58 |
+ |
59 |
+# test data in separate repo |
60 |
+# second repo has no structure whatsoever |
61 |
+RESTRICT="test" |
62 |
+ |
63 |
+BDEPEND=" |
64 |
+ doc? ( |
65 |
+ app-doc/doxygen |
66 |
+ dev-texlive/texlive-bibtexextra |
67 |
+ dev-texlive/texlive-fontsextra |
68 |
+ dev-texlive/texlive-fontutils |
69 |
+ dev-texlive/texlive-latex |
70 |
+ dev-texlive/texlive-latexextra |
71 |
+ ) |
72 |
+" |
73 |
+RDEPEND=" |
74 |
+ >=dev-libs/boost-1.62:= |
75 |
+ dev-cpp/robin-map |
76 |
+ dev-libs/libfmt:= |
77 |
+ dev-libs/pugixml:= |
78 |
+ >=media-libs/ilmbase-2.2.0-r1:= |
79 |
+ >=media-libs/libheif-1.7.0:= |
80 |
+ media-libs/libpng:0= |
81 |
+ >=media-libs/libwebp-0.2.1:= |
82 |
+ media-libs/opencolorio:= |
83 |
+ >=media-libs/openexr-2.2.0-r2:= |
84 |
+ media-libs/tiff:0= |
85 |
+ sci-libs/dcmtk |
86 |
+ sys-libs/zlib:= |
87 |
+ virtual/jpeg:0 |
88 |
+ ffmpeg? ( media-video/ffmpeg:= ) |
89 |
+ field3d? ( media-libs/Field3D:= ) |
90 |
+ gif? ( media-libs/giflib:0= ) |
91 |
+ jpeg2k? ( >=media-libs/openjpeg-2.0:2= ) |
92 |
+ opencv? ( media-libs/opencv:= ) |
93 |
+ opengl? ( |
94 |
+ media-libs/glew:= |
95 |
+ virtual/glu |
96 |
+ virtual/opengl |
97 |
+ ) |
98 |
+ openvdb? ( |
99 |
+ dev-cpp/tbb:= |
100 |
+ media-gfx/openvdb:= |
101 |
+ ) |
102 |
+ ptex? ( media-libs/ptex:= ) |
103 |
+ python? ( |
104 |
+ ${PYTHON_DEPS} |
105 |
+ $(python_gen_cond_dep ' |
106 |
+ dev-libs/boost:=[python,${PYTHON_USEDEP}] |
107 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
108 |
+ dev-python/pybind11[${PYTHON_USEDEP}] |
109 |
+ ') |
110 |
+ ) |
111 |
+ qt5? ( |
112 |
+ dev-qt/qtcore:5 |
113 |
+ dev-qt/qtgui:5 |
114 |
+ dev-qt/qtwidgets:5 |
115 |
+ opengl? ( dev-qt/qtopengl:5 ) |
116 |
+ ) |
117 |
+ raw? ( media-libs/libraw:= ) |
118 |
+ truetype? ( media-libs/freetype:2= ) |
119 |
+" |
120 |
+DEPEND="${RDEPEND}" |
121 |
+ |
122 |
+DOCS=( CHANGES.md CREDITS.md README.md ) |
123 |
+ |
124 |
+PATCHES=( |
125 |
+ "${FILESDIR}"/${PN}-2.2.6.1-pugixml.patch |
126 |
+) |
127 |
+ |
128 |
+pkg_setup() { |
129 |
+ use python && python-single-r1_pkg_setup |
130 |
+} |
131 |
+ |
132 |
+src_prepare() { |
133 |
+ cmake_src_prepare |
134 |
+ cmake_comment_add_subdirectory src/fonts |
135 |
+} |
136 |
+ |
137 |
+src_configure() { |
138 |
+ # Build with SIMD support |
139 |
+ local cpufeature |
140 |
+ local mysimd=() |
141 |
+ for cpufeature in "${CPU_FEATURES[@]}"; do |
142 |
+ use "${cpufeature%:*}" && mysimd+=("${cpufeature#*:}") |
143 |
+ done |
144 |
+ |
145 |
+ # If no CPU SIMDs were used, completely disable them |
146 |
+ [[ -z ${mysimd} ]] && mysimd=("0") |
147 |
+ |
148 |
+ local mycmakeargs=( |
149 |
+ -DVERBOSE=ON |
150 |
+ -DOIIO_BUILD_TESTS=OFF |
151 |
+ -DBUILD_DOCS=$(usex doc) |
152 |
+ -DINSTALL_DOCS=$(usex doc) |
153 |
+ -DSTOP_ON_WARNING=OFF |
154 |
+ -DUSE_EXTERNAL_PUGIXML=ON |
155 |
+ -DUSE_JPEGTURBO=ON |
156 |
+ -DUSE_NUKE=OFF # not in Gentoo |
157 |
+ -DUSE_FFMPEG=$(usex ffmpeg) |
158 |
+ -DUSE_FIELD3D=$(usex field3d) |
159 |
+ -DUSE_GIF=$(usex gif) |
160 |
+ -DUSE_OPENJPEG=$(usex jpeg2k) |
161 |
+ -DUSE_OPENCV=$(usex opencv) |
162 |
+ -DUSE_OPENGL=$(usex opengl) |
163 |
+ -DUSE_OPENVDB=$(usex openvdb) |
164 |
+ -DUSE_PTEX=$(usex ptex) |
165 |
+ -DUSE_PYTHON=$(usex python) |
166 |
+ -DUSE_QT=$(usex qt5) |
167 |
+ -DUSE_LIBRAW=$(usex raw) |
168 |
+ -DUSE_FREETYPE=$(usex truetype) |
169 |
+ -DUSE_SIMD=$(local IFS=','; echo "${mysimd[*]}") |
170 |
+ ) |
171 |
+ |
172 |
+ cmake_src_configure |
173 |
+} |