mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/pyilmbase: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST pyilmbase-2.5.6.tar.gz 27540385 BLAKE2B eea64c6ae4500de31673f3127da6ac98272e85a2c93e2aed96494cc24c397edbce508f0721387be5bbabc4dde596dccf61212709173b7cebd4212dbfbd1e4b65 SHA512 8d4582a5f2adcd5eb1486cabe033f9ecaa0292000bf7fa484a94e1d9ec908678a5a903fc6a1beba22bcd9c7f06ac51236834f448ea8aaf4462a338de886f0412
|
||||
DIST pyilmbase-2.5.7.tar.gz 27539574 BLAKE2B 58fd81be52e13d2815b6aa8cea6793359379f5ebf866fd45b31ce30cf5f72aa4699625e7cec51189d62fe76f53418c3e0938f9b827d54ad18342e7aa67c8a3d2 SHA512 e44edfa2dcfff2fe372ed2ba07b39a472e549025978de178eff26be641767d22d1a3b543fb7672d9b7b2e9f4c308667f785829ed6d9032a2b42f2ffa0163de40
|
||||
|
||||
@@ -13,9 +13,6 @@
|
||||
<flag name="exceptions">
|
||||
Enable runtime floating point exceptions in PyIMath.
|
||||
</flag>
|
||||
<flag name="numpy">
|
||||
Add bindings for <pkg>dev-python/numpy</pkg> use.
|
||||
</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">AcademySoftwareFoundation/openexr</remote-id>
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..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_USEDEP}]
|
||||
numpy? ( >=dev-python/numpy-1.10.4[${PYTHON_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
|
||||
}
|
||||
Reference in New Issue
Block a user