diff options
author | Bernd Waibel <waebbl-gentoo@posteo.net> | 2021-05-20 21:59:52 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-06-01 00:27:51 +0000 |
commit | 2d3a625196457179f1ad5bb4fc808a9cd42b8805 (patch) | |
tree | 73856783109cb233841951824f06eb9b7256f8de /dev-python/pyilmbase/pyilmbase-2.5.6.ebuild | |
parent | media-libs/openexr: bump to 2.5.6 (diff) | |
download | gentoo-2d3a625196457179f1ad5bb4fc808a9cd42b8805.tar.gz gentoo-2d3a625196457179f1ad5bb4fc808a9cd42b8805.tar.bz2 gentoo-2d3a625196457179f1ad5bb4fc808a9cd42b8805.zip |
dev-python/pyilmbase: bump to 2.5.6
Closes: https://bugs.gentoo.org/791136
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/20899
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/pyilmbase/pyilmbase-2.5.6.ebuild')
-rw-r--r-- | dev-python/pyilmbase/pyilmbase-2.5.6.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/pyilmbase/pyilmbase-2.5.6.ebuild b/dev-python/pyilmbase/pyilmbase-2.5.6.ebuild new file mode 100644 index 000000000000..2668dd6e9d0e --- /dev/null +++ b/dev-python/pyilmbase/pyilmbase-2.5.6.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +inherit cmake python-single-r1 + +DESCRIPTION="IlmBase Python bindings" +HOMEPAGE="https://www.openexr.com" +SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/openexr-${PV}/PyIlmBase" + +LICENSE="BSD" +SLOT="0/25" +KEYWORDS="~amd64 ~x86" +IUSE="exceptions +numpy test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + ~media-libs/ilmbase-${PV}:= + sys-libs/zlib + $(python_gen_cond_dep ' + >=dev-libs/boost-1.62.0-r1:=[python,${PYTHON_MULTI_USEDEP}] + numpy? ( >=dev-python/numpy-1.10.4[${PYTHON_MULTI_USEDEP}] ) + ') +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-admin/chrpath + virtual/pkgconfig +" + +#PATCHES=( +# "${FILESDIR}"/${PN}-2.5.2-0001-Fix-pkgconfig-file-for-PyIlmBase-to-include-prefixes.patch +#) + +DOCS=( README.md ) + +src_configure() { + local mycmakeargs=( + -DCMAKE_DISABLE_FIND_PACKAGE_Python2=ON + -DPYILMBASE_INSTALL_PKG_CONFIG=ON + -DPYIMATH_ENABLE_EXCEPTIONS=$(usex exceptions) + -DPython3_EXECUTABLE="${PYTHON}" + -DPython3_INCLUDE_DIR=$(python_get_includedir) + -DPython3_LIBRARY=$(python_get_library_path) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + if use numpy; then + python_domodule "${BUILD_DIR}/${EPYTHON/./_}/imathnumpy.so" + chmod +x "${D}/$(python_get_sitedir)/imathnumpy.so" || die + chrpath -d "${D}/$(python_get_sitedir)/imathnumpy.so" || die + fi +} |