1 |
commit: 9706f77761b57456105cb70475c1be4e24a349d4 |
2 |
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> |
3 |
AuthorDate: Sat Apr 2 15:45:48 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 8 12:31:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9706f777 |
7 |
|
8 |
dev-libs/imath: bump to 3.1.5 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/836653 |
11 |
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/24870 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
dev-libs/imath/Manifest | 1 + |
16 |
dev-libs/imath/imath-3.1.5.ebuild | 72 +++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 73 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/imath/Manifest b/dev-libs/imath/Manifest |
20 |
index eee626f653da..1777a34a5898 100644 |
21 |
--- a/dev-libs/imath/Manifest |
22 |
+++ b/dev-libs/imath/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST imath-3.1.4.tar.gz 572214 BLAKE2B 6d67f542256e44f9ba6f30ae7d22a37dbf3cd1e49992fb8b0e2264d51d47e9c2297940b3a484e1f59bd8b251e8ef42d81ae88282d0769c111b3cd84cd0a9354e SHA512 f9f7d8ec333e6383191543ee927dc40e870a6330225b01070bb93ad3d149c5e31bd5989d4dc52f3321490c1c5a7cab55582c6e42e34ab4ca5723170e7578e286 |
25 |
+DIST imath-3.1.5.tar.gz 570875 BLAKE2B f78c8278a3ecb40afaa291b74c50c2ce01a5cba594e690041a57cfd3a65f9fe0842a41d600906ed864df239c2753488dedca53bdfa65a90c13513111a8068ca4 SHA512 8344e42c75d8e4bb21facb837535f0c9e4a9489d9edebcc25d5d3c6063535f2bf54e4517d8fca3fedada248457aa07c9bd77d6e843a9d115278fc154de2cdc9d |
26 |
|
27 |
diff --git a/dev-libs/imath/imath-3.1.5.ebuild b/dev-libs/imath/imath-3.1.5.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..9b40568f036e |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/imath/imath-3.1.5.ebuild |
32 |
@@ -0,0 +1,72 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+ |
40 |
+inherit cmake python-single-r1 |
41 |
+ |
42 |
+MY_PN="${PN^}" |
43 |
+ |
44 |
+DESCRIPTION="Imath basic math package" |
45 |
+HOMEPAGE="https://imath.readthedocs.io" |
46 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+# re-keywording needed for (according to ilmbase keywords): ~x64-macos ~x86-solaris |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" |
49 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="3/29" |
53 |
+IUSE="doc large-stack python test" |
54 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
55 |
+RESTRICT="!test? ( test )" |
56 |
+ |
57 |
+# blocker due to file collision #803347 |
58 |
+RDEPEND=" |
59 |
+ !dev-libs/imath:0 |
60 |
+ !media-libs/ilmbase |
61 |
+ sys-libs/zlib |
62 |
+ python? ( |
63 |
+ !dev-python/pyilmbase |
64 |
+ ${PYTHON_DEPS} |
65 |
+ $(python_gen_cond_dep ' |
66 |
+ dev-libs/boost:=[python,${PYTHON_USEDEP}] |
67 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
68 |
+ ') |
69 |
+ ) |
70 |
+" |
71 |
+DEPEND="${RDEPEND}" |
72 |
+BDEPEND=" |
73 |
+ virtual/pkgconfig |
74 |
+ doc? ( $(python_gen_cond_dep 'dev-python/breathe[${PYTHON_USEDEP}]') ) |
75 |
+ python? ( ${PYTHON_DEPS} ) |
76 |
+" |
77 |
+ |
78 |
+DOCS=( CHANGES.md CONTRIBUTORS.md README.md SECURITY.md docs/PortingGuide2-3.md ) |
79 |
+ |
80 |
+pkg_setup() { |
81 |
+ use python && python-single-r1_pkg_setup |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ local mycmakeargs=( |
86 |
+ -DDOCS=$(usex doc) |
87 |
+ -DIMATH_ENABLE_LARGE_STACK=$(usex large-stack) |
88 |
+ -DIMATH_HALF_USE_LOOKUP_TABLE=ON |
89 |
+ -DIMATH_INSTALL_PKG_CONFIG=ON |
90 |
+ -DIMATH_USE_CLANG_TIDY=OFF |
91 |
+ -DIMATH_USE_NOEXCEPT=ON |
92 |
+ ) |
93 |
+ if use python; then |
94 |
+ mycmakeargs+=( |
95 |
+ -DBoost_NO_BOOST_CMAKE=OFF |
96 |
+ -DPYTHON=ON |
97 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
98 |
+ -DPython3_INCLUDE_DIR=$(python_get_includedir) |
99 |
+ -DPython3_LIBRARY=$(python_get_library_path) |
100 |
+ ) |
101 |
+ fi |
102 |
+ |
103 |
+ cmake_src_configure |
104 |
+} |