Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyilmbase/
Date: Tue, 01 Jun 2021 00:28:34
Message-Id: 1622507271.2d3a625196457179f1ad5bb4fc808a9cd42b8805.sam@gentoo
1 commit: 2d3a625196457179f1ad5bb4fc808a9cd42b8805
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Thu May 20 19:59:52 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 1 00:27:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d3a6251
7
8 dev-python/pyilmbase: bump to 2.5.6
9
10 Closes: https://bugs.gentoo.org/791136
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
13 Closes: https://github.com/gentoo/gentoo/pull/20899
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 dev-python/pyilmbase/Manifest | 1 +
17 dev-python/pyilmbase/pyilmbase-2.5.6.ebuild | 61 +++++++++++++++++++++++++++++
18 2 files changed, 62 insertions(+)
19
20 diff --git a/dev-python/pyilmbase/Manifest b/dev-python/pyilmbase/Manifest
21 index 7e8d99f7190..9ddce510273 100644
22 --- a/dev-python/pyilmbase/Manifest
23 +++ b/dev-python/pyilmbase/Manifest
24 @@ -1 +1,2 @@
25 DIST pyilmbase-2.5.5.tar.gz 27536865 BLAKE2B d0c0b2fd39b2cfafb60b6d0de3960063ff62341cf22be519f874c0c83f05cb604c5d503bb8b88514c71c5a54a79afa80a7fd00c2df15ec2193f6b3cffdc117c6 SHA512 e511af26a8fe2175a641fd25d2dcc6ef807e00bee2aff06a4784125f916ffd47fe376fe0621d385b604180a239bbfee063f8ceee3f7b731fde3c38558e9fdcdf
26 +DIST pyilmbase-2.5.6.tar.gz 27540385 BLAKE2B eea64c6ae4500de31673f3127da6ac98272e85a2c93e2aed96494cc24c397edbce508f0721387be5bbabc4dde596dccf61212709173b7cebd4212dbfbd1e4b65 SHA512 8d4582a5f2adcd5eb1486cabe033f9ecaa0292000bf7fa484a94e1d9ec908678a5a903fc6a1beba22bcd9c7f06ac51236834f448ea8aaf4462a338de886f0412
27
28 diff --git a/dev-python/pyilmbase/pyilmbase-2.5.6.ebuild b/dev-python/pyilmbase/pyilmbase-2.5.6.ebuild
29 new file mode 100644
30 index 00000000000..2668dd6e9d0
31 --- /dev/null
32 +++ b/dev-python/pyilmbase/pyilmbase-2.5.6.ebuild
33 @@ -0,0 +1,61 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python3_{7..9} )
40 +inherit cmake python-single-r1
41 +
42 +DESCRIPTION="IlmBase Python bindings"
43 +HOMEPAGE="https://www.openexr.com"
44 +SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +S="${WORKDIR}/openexr-${PV}/PyIlmBase"
46 +
47 +LICENSE="BSD"
48 +SLOT="0/25"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="exceptions +numpy test"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + ${PYTHON_DEPS}
56 + ~media-libs/ilmbase-${PV}:=
57 + sys-libs/zlib
58 + $(python_gen_cond_dep '
59 + >=dev-libs/boost-1.62.0-r1:=[python,${PYTHON_MULTI_USEDEP}]
60 + numpy? ( >=dev-python/numpy-1.10.4[${PYTHON_MULTI_USEDEP}] )
61 + ')
62 +"
63 +DEPEND="${RDEPEND}"
64 +BDEPEND="
65 + app-admin/chrpath
66 + virtual/pkgconfig
67 +"
68 +
69 +#PATCHES=(
70 +# "${FILESDIR}"/${PN}-2.5.2-0001-Fix-pkgconfig-file-for-PyIlmBase-to-include-prefixes.patch
71 +#)
72 +
73 +DOCS=( README.md )
74 +
75 +src_configure() {
76 + local mycmakeargs=(
77 + -DCMAKE_DISABLE_FIND_PACKAGE_Python2=ON
78 + -DPYILMBASE_INSTALL_PKG_CONFIG=ON
79 + -DPYIMATH_ENABLE_EXCEPTIONS=$(usex exceptions)
80 + -DPython3_EXECUTABLE="${PYTHON}"
81 + -DPython3_INCLUDE_DIR=$(python_get_includedir)
82 + -DPython3_LIBRARY=$(python_get_library_path)
83 + )
84 + cmake_src_configure
85 +}
86 +
87 +src_install() {
88 + cmake_src_install
89 + if use numpy; then
90 + python_domodule "${BUILD_DIR}/${EPYTHON/./_}/imathnumpy.so"
91 + chmod +x "${D}/$(python_get_sitedir)/imathnumpy.so" || die
92 + chrpath -d "${D}/$(python_get_sitedir)/imathnumpy.so" || die
93 + fi
94 +}