blob: fda4c62db801b693daf5200a87e04001923b4b09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit autotools python-single-r1
DESCRIPTION="ilmbase Python bindings"
HOMEPAGE="http://www.openexr.com"
SRC_URI="https://github.com/openexr/openexr/releases/download/v${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+numpy"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEP}
>=dev-libs/boost-1.62.0-r1[python(+),${PYTHON_USEDEP}]
~media-libs/ilmbase-${PV}:=
numpy? ( >=dev-python/numpy-1.10.4 )"
DEPEND="${RDEPEND}
${PYTHON_DEP}
>=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() {
local myeconfargs=(
--with-boost-include-dir="${EPREFIX}/usr/include/boost"
--with-boost-lib-dir="${EPREFIX}/usr/$(get_libdir)"
--with-boost-python-libname="boost_python-${EPYTHON:6}"
$(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
}
|