You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.5 KiB
72 lines
1.5 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
PYTHON_COMPAT=( python2_7 )
|
||
|
|
||
|
inherit autotools python-single-r1
|
||
|
|
||
5 years ago
|
DESCRIPTION="IlmBase Python bindings"
|
||
|
HOMEPAGE="https://www.openexr.com"
|
||
6 years ago
|
SRC_URI="https://github.com/openexr/openexr/releases/download/v${PV}/${P}.tar.gz"
|
||
|
LICENSE="BSD"
|
||
|
|
||
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="amd64 x86"
|
||
6 years ago
|
IUSE="+numpy"
|
||
|
|
||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
|
|
||
5 years ago
|
RDEPEND="${PYTHON_DEPS}
|
||
6 years ago
|
>=dev-libs/boost-1.62.0-r1[python(+),${PYTHON_USEDEP}]
|
||
|
~media-libs/ilmbase-${PV}:=
|
||
4 years ago
|
numpy? (
|
||
|
|| (
|
||
|
dev-python/numpy-python2[${PYTHON_USEDEP}]
|
||
|
>=dev-python/numpy-1.10.4[${PYTHON_USEDEP}]
|
||
|
)
|
||
|
)"
|
||
6 years ago
|
DEPEND="${RDEPEND}
|
||
5 years ago
|
${PYTHON_DEPS}
|
||
6 years ago
|
>=virtual/pkgconfig-0-r1"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/${P}-link-pyimath.patch"
|
||
|
"${FILESDIR}/${P}-fix-build-system.patch"
|
||
|
)
|
||
|
|
||
|
DOCS=( README.md )
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
5 years ago
|
local boostpython_ver="${EPYTHON:6}"
|
||
|
if has_version ">=dev-libs/boost-1.70.0"; then
|
||
|
boostpython_ver="${boostpython_ver/./}"
|
||
|
else
|
||
|
boostpython_ver="-${boostpython_ver}"
|
||
|
fi
|
||
|
|
||
6 years ago
|
local myeconfargs=(
|
||
|
--with-boost-include-dir="${EPREFIX}/usr/include/boost"
|
||
|
--with-boost-lib-dir="${EPREFIX}/usr/$(get_libdir)"
|
||
5 years ago
|
--with-boost-python-libname="boost_python${boostpython_ver}"
|
||
6 years ago
|
$(use_with numpy)
|
||
|
)
|
||
|
|
||
|
econf "${myeconfargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
# Fails to install with multiple jobs
|
||
|
emake DESTDIR="${D}" -j1 install
|
||
|
|
||
|
einstalldocs
|
||
|
|
||
|
# package provides pkg-config files
|
||
|
find "${D}" -name '*.la' -delete || die
|
||
|
}
|