blob: 0e33854ab29491c39fec8552b31d6dd0025666fc (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit autotools-multilib
DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries"
HOMEPAGE="http://openexr.com/"
SRC_URI="http://download.savannah.gnu.org/releases/openexr/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/22" # based on SONAME
KEYWORDS="~amd64 -arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
IUSE="examples static-libs"
RDEPEND=">=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]
>=media-libs/ilmbase-${PV}:=[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DOCS=( AUTHORS ChangeLog NEWS README )
src_prepare() {
# Fix path for testsuite
sed -i -e "s:/var/tmp/:${T}:" IlmImfTest/tmpDir.h || die
autotools-multilib_src_prepare
}
src_configure() {
local myeconfargs=(
$(use_enable static-libs static)
$(use_enable examples imfexamples)
)
autotools-multilib_src_configure
}
src_install() {
autotools-multilib_src_install \
docdir="${EPREFIX}"/usr/share/doc/${PF}/pdf \
examplesdir="${EPREFIX}"/usr/share/doc/${PF}/examples
docompress -x /usr/share/doc/${PF}/examples
use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples
}
|