blob: a6eebf37327a44cf1f8b0e99f407860879d62d89 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit cmake-utils python-single-r1
DESCRIPTION="Open framework for storing and sharing scene data"
HOMEPAGE="https://www.alembic.io/"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="arnold +boost doc examples hdf5 maya prman python test zlib"
# pyalembic python bindings need boost
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
hdf5? ( zlib )
python? ( boost )
"
RDEPEND="
${PYTHON_DEPS}
>=media-libs/openexr-2.2.0-r2:=
boost? ( >=dev-libs/boost-1.65.0:=[python,${PYTHON_USEDEP}] )
hdf5? ( >=sci-libs/hdf5-1.8.18[zlib(+)] )
python? ( >=dev-python/pyilmbase-2.2.0[${PYTHON_USEDEP}] )
zlib? ( >=sys-libs/zlib-1.2.11-r1 )
"
DEPEND="
${RDEPEND}
>=dev-util/cmake-3.9.6
doc? ( >=app-doc/doxygen-1.8.13-r1 )
"
DOCS=( "ACKNOWLEDGEMENTS.txt" "FEEDBACK.txt" "NEWS.txt" "README.txt" )
PATCHES=(
"${FILESDIR}/${PN}-FindIlmBase-pkgconfig.patch"
"${FILESDIR}/${P}-CMakeLists-fix_lib.patch"
"${FILESDIR}/${P}-prman.patch"
"${FILESDIR}/${P}-fix-python-import.patch"
"${FILESDIR}/${P}-find-pyilmbase-python-module.patch"
"${FILESDIR}/${P}-find-boost-python-for-cmake-ge-3.11.patch"
"${FILESDIR}/${P}-fix-boost-python-naming.patch"
)
src_configure() {
local mycmakeargs=(
-DALEMBIC_SHARED_LIBS=ON
# The CMakeLists.txt file needs C++11 or C++-0x if none of them
# is defined
-DALEMBIC_LIB_USES_BOOST=$(usex boost)
-DALEMBIC_LIB_USES_TR1=$(usex !boost)
-DUSE_ARNOLD=$(usex arnold)
-DUSE_BINARIES=ON
-DUSE_EXAMPLES=$(usex examples)
-DUSE_HDF5=$(usex hdf5)
-DUSE_MAYA=$(usex maya)
-DUSE_PRMAN=$(usex prman)
-DUSE_PYALEMBIC=$(usex python)
-DUSE_TESTS=$(usex test)
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
if use doc; then
doxygen -u Doxyfile || die
doxygen Doxyfile || die
fi
}
src_install() {
use doc && local HTML_DOCS=( doc/html/. )
cmake-utils_src_install
}
pkg_postinst() {
if use arnold; then
einfo "NOTE: The arnold plugin is highly experimental and hasn't been"
einfo "tested, due to missing license. If you have trouble compiling"
einfo "or running it, please file a bug report for the package at"
einfo "Gentoo's bugzilla."
fi
if use maya; then
einfo "NOTE: The maya plugin is highly experimental and hasn't been"
einfo "tested, due to missing license. If you have trouble compiling"
einfo "or running it, please file a bug report for the package at"
einfo "Gentoo's bugzilla."
fi
if use prman; then
einfo "NOTE: The renderman plugin is still experimental and has not"
einfo "been tested much. If you have trouble running it, please file"
einfo "a bug report for the package at Gentoo's bugzilla."
einfo "If you're looking for an ebuild for renderman, you may want to"
einfo "try the waebbl overlay: 'eselect repository enable waebbl'"
einfo "followed by 'emerge renderman'"
fi
}
|