1 |
commit: 1bbe14fe858980251f702b71491303041623014b |
2 |
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> |
3 |
AuthorDate: Tue Mar 30 05:29:31 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 22:02:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bbe14fe |
7 |
|
8 |
media-libs/openexr: bump to 3.0.1 |
9 |
|
10 |
Security fixes |
11 |
|
12 |
Bug: https://bugs.gentoo.org/776808 |
13 |
Closes: https://bugs.gentoo.org/776805 |
14 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
15 |
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/19964 |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
media-libs/openexr/Manifest | 1 + |
20 |
media-libs/openexr/metadata.xml | 5 ++- |
21 |
media-libs/openexr/openexr-3.0.1.ebuild | 65 +++++++++++++++++++++++++++++++++ |
22 |
3 files changed, 70 insertions(+), 1 deletion(-) |
23 |
|
24 |
diff --git a/media-libs/openexr/Manifest b/media-libs/openexr/Manifest |
25 |
index bdbd8277f8a..385bf371a3c 100644 |
26 |
--- a/media-libs/openexr/Manifest |
27 |
+++ b/media-libs/openexr/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
DIST openexr-2.5.5.tar.gz 27536865 BLAKE2B d0c0b2fd39b2cfafb60b6d0de3960063ff62341cf22be519f874c0c83f05cb604c5d503bb8b88514c71c5a54a79afa80a7fd00c2df15ec2193f6b3cffdc117c6 SHA512 e511af26a8fe2175a641fd25d2dcc6ef807e00bee2aff06a4784125f916ffd47fe376fe0621d385b604180a239bbfee063f8ceee3f7b731fde3c38558e9fdcdf |
30 |
+DIST openexr-3.0.1.tar.gz 25059445 BLAKE2B 76bce1ff830b5e32362bfaf91d39945add171c5c1f453968b2fa8ba41e0996064d3a104eb7759cea87477e96e8a52d548743c7d83f5c6131dd38aecdd47bd6dd SHA512 e450c55d150e4c0a8a9147f78fe1c73ea9134976444f8c77c832d0671d4c3796f96fee74d23f26cdb9383e658a33d6d57c989e9207d1edfc8556ad688ff25a5b |
31 |
|
32 |
diff --git a/media-libs/openexr/metadata.xml b/media-libs/openexr/metadata.xml |
33 |
index 470947824a2..37c6bc8c811 100644 |
34 |
--- a/media-libs/openexr/metadata.xml |
35 |
+++ b/media-libs/openexr/metadata.xml |
36 |
@@ -13,8 +13,11 @@ |
37 |
<email>media-video@g.o</email> |
38 |
</maintainer> |
39 |
<use> |
40 |
+ <flag name="large-stack"> |
41 |
+ Enables code to take advantage of large stack support. |
42 |
+ </flag> |
43 |
<flag name="utils"> |
44 |
- Build several utility binaries for verifying and manipulating EXR files. |
45 |
+ Build several binary tools for verifying and manipulating EXR files. |
46 |
</flag> |
47 |
</use> |
48 |
<upstream> |
49 |
|
50 |
diff --git a/media-libs/openexr/openexr-3.0.1.ebuild b/media-libs/openexr/openexr-3.0.1.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..90b1ee500f0 |
53 |
--- /dev/null |
54 |
+++ b/media-libs/openexr/openexr-3.0.1.ebuild |
55 |
@@ -0,0 +1,65 @@ |
56 |
+# Copyright 1999-2021 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=7 |
60 |
+ |
61 |
+CMAKE_ECLASS=cmake |
62 |
+inherit cmake-multilib flag-o-matic toolchain-funcs |
63 |
+ |
64 |
+DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" |
65 |
+HOMEPAGE="https://www.openexr.com/" |
66 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
67 |
+#S="${WORKDIR}/${PN}-${MY_PV}" |
68 |
+ |
69 |
+LICENSE="BSD" |
70 |
+SLOT="0/27" # based on SONAME |
71 |
+# imath needs keywording: arm{,64}, hppa, ia64, ppc{,64}, sparc, x64-macos, x86-solaris |
72 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris" |
73 |
+IUSE="cpu_flags_x86_avx doc examples large-stack static-libs utils test threads" |
74 |
+RESTRICT="!test? ( test )" |
75 |
+ |
76 |
+RDEPEND=" |
77 |
+ !media-libs/ilmbase |
78 |
+ dev-libs/imath:= |
79 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
80 |
+" |
81 |
+DEPEND="${RDEPEND}" |
82 |
+BDEPEND="virtual/pkgconfig" |
83 |
+ |
84 |
+DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md docs/SymbolVisibility.md ) |
85 |
+ |
86 |
+#src_prepare() { |
87 |
+ # Fix path for testsuite |
88 |
+# sed -i -e "s:/var/tmp/:${T}:" "${S}"/IlmImfTest/tmpDir.h || die "failed to set temp path for tests" |
89 |
+ |
90 |
+# if use abi_x86_32 && use test; then |
91 |
+# eapply "${FILESDIR}/${PN}-2.5.2-0001-IlmImfTest-main.cpp-disable-tests.patch" |
92 |
+# fi |
93 |
+ |
94 |
+# multilib_foreach_abi cmake_src_prepare |
95 |
+#} |
96 |
+ |
97 |
+multilib_src_configure() { |
98 |
+ local mycmakeargs=( |
99 |
+ -DBUILD_SHARED_LIBS=$(usex !static-libs) |
100 |
+ -DBUILD_TESTING=$(usex test) |
101 |
+ -DOPENEXR_BUILD_UTILS=$(usex utils) |
102 |
+ -DOPENEXR_ENABLE_LARGE_STACK=$(usex large-stack) |
103 |
+ -DOPENEXR_ENABLE_THREADING=$(usex threads) |
104 |
+ -DOPENEXR_INSTALL_EXAMPLES=$(usex examples) |
105 |
+ -DOPENEXR_INSTALL_PKG_CONFIG=ON |
106 |
+ -DOPENEXR_INSTALL_TOOLS=$(usex utils) |
107 |
+ -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy |
108 |
+ ) |
109 |
+ |
110 |
+ cmake_src_configure |
111 |
+} |
112 |
+ |
113 |
+multilib_src_install_all() { |
114 |
+ if use doc; then |
115 |
+ DOCS+=( docs/*.pdf ) |
116 |
+ fi |
117 |
+ einstalldocs |
118 |
+ |
119 |
+ use examples && docompress -x /usr/share/doc/${PF}/examples |
120 |
+} |