1 |
commit: 10c70fd96bbcaa35bacc8d00bb30ef04c3cdf93d |
2 |
Author: Sebastian Parborg <darkdefende <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Apr 27 23:18:55 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 00:19:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10c70fd9 |
7 |
|
8 |
media-gfx/openvdb: bump to 8.0.1 |
9 |
|
10 |
Signed-off-by: Sebastian Parborg <darkdefende <AT> gmail.com> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-gfx/openvdb/Manifest | 1 + |
14 |
media-gfx/openvdb/metadata.xml | 3 + |
15 |
media-gfx/openvdb/openvdb-8.0.1.ebuild | 122 +++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 126 insertions(+) |
17 |
|
18 |
diff --git a/media-gfx/openvdb/Manifest b/media-gfx/openvdb/Manifest |
19 |
index b3d4fe59418..6dea8aee2b9 100644 |
20 |
--- a/media-gfx/openvdb/Manifest |
21 |
+++ b/media-gfx/openvdb/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST openvdb-7.0.0.tar.gz 1872744 BLAKE2B e3a8c8d51f77e115d3d397abde0860a6322d56eb6c4795c1ba39539a23aab6cf37602ce7122965fbc3098b15b118b25010263f567e8003363b78c9b7d9d5dfd8 SHA512 f5321b22b10e192012d544cc02921d3d52f621778ec5aa21ba6d450f3e29f2fdbd76486ad390a0c008394dbc6ee4aeecc04527ef30e73adf71c1a08a021746b7 |
24 |
DIST openvdb-7.1.0.tar.gz 1956052 BLAKE2B 7778d67bcc65ecb17b86f6e67a9e5f2d6574de5869a0a9c675ad7bc8540154c0f249a91c68a9da9068a3951b3e919e5676450fcaf13921c6263e7c87012a2f29 SHA512 49806375f7e6d7b12eaba24e672a068531d2f8a05f12eba29069710d2682f9983f9e6ad26047eed4b28e337f8d0e738b90130582863c710e8dd1e720bf0addad |
25 |
+DIST openvdb-8.0.1.tar.gz 2299276 BLAKE2B e65bd4710ff65e20570013399d1e71a32e8f80c5e3b5527fc17d23c7f86ead7e04483cf7ba5266f26343604677d3a0dcafc01474baf7ef09b98f1f41a66119a2 SHA512 6a5a8b637429295efa72494aef82ff92dd83092591b713f56930ccf4aab3a33806d1263bfd090c27239eab97b4fdc053288dc545e631f8a7d4ca180a32331be2 |
26 |
|
27 |
diff --git a/media-gfx/openvdb/metadata.xml b/media-gfx/openvdb/metadata.xml |
28 |
index 4690483cd9c..b1f9b292a3e 100644 |
29 |
--- a/media-gfx/openvdb/metadata.xml |
30 |
+++ b/media-gfx/openvdb/metadata.xml |
31 |
@@ -27,6 +27,9 @@ |
32 |
<flag restrict=">=media-gfx/openvdb-7.0.0" name="abi7-compat"> |
33 |
Disables newer features to maintain compatibility with ABI7. |
34 |
</flag> |
35 |
+ <flag restrict=">=media-gfx/openvdb-8.0.0" name="abi8-compat"> |
36 |
+ Disables newer features to maintain compatibility with ABI8. |
37 |
+ </flag> |
38 |
<flag restrict=">=media-gfx/openvdb-7.0.0" name="utils"> |
39 |
Build utility binaries |
40 |
</flag> |
41 |
|
42 |
diff --git a/media-gfx/openvdb/openvdb-8.0.1.ebuild b/media-gfx/openvdb/openvdb-8.0.1.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..11350d22c91 |
45 |
--- /dev/null |
46 |
+++ b/media-gfx/openvdb/openvdb-8.0.1.ebuild |
47 |
@@ -0,0 +1,122 @@ |
48 |
+# Copyright 1999-2021 Gentoo Authors |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=7 |
52 |
+ |
53 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
54 |
+ |
55 |
+inherit cmake flag-o-matic python-single-r1 |
56 |
+ |
57 |
+DESCRIPTION="Library for the efficient manipulation of volumetric data" |
58 |
+HOMEPAGE="https://www.openvdb.org" |
59 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
60 |
+ |
61 |
+LICENSE="MPL-2.0" |
62 |
+SLOT="0" |
63 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
64 |
+IUSE="cpu_flags_x86_avx cpu_flags_x86_sse4_2 doc numpy python static-libs test utils abi6-compat abi7-compat +abi8-compat" |
65 |
+RESTRICT="!test? ( test )" |
66 |
+ |
67 |
+REQUIRED_USE=" |
68 |
+ numpy? ( python ) |
69 |
+ ^^ ( abi6-compat abi7-compat abi8-compat ) |
70 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
71 |
+" |
72 |
+ |
73 |
+RDEPEND=" |
74 |
+ dev-cpp/tbb |
75 |
+ dev-libs/boost:= |
76 |
+ dev-libs/c-blosc:= |
77 |
+ dev-libs/jemalloc:= |
78 |
+ dev-libs/log4cplus:= |
79 |
+ media-libs/glfw |
80 |
+ media-libs/glu |
81 |
+ media-libs/ilmbase:= |
82 |
+ media-libs/openexr:= |
83 |
+ sys-libs/zlib:= |
84 |
+ x11-libs/libXcursor |
85 |
+ x11-libs/libXi |
86 |
+ x11-libs/libXinerama |
87 |
+ x11-libs/libXrandr |
88 |
+ python? ( |
89 |
+ ${PYTHON_DEPS} |
90 |
+ $(python_gen_cond_dep ' |
91 |
+ dev-libs/boost:=[numpy?,python?,${PYTHON_USEDEP}] |
92 |
+ numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) |
93 |
+ ') |
94 |
+ ) |
95 |
+" |
96 |
+ |
97 |
+DEPEND="${RDEPEND}" |
98 |
+ |
99 |
+BDEPEND=" |
100 |
+ >=dev-util/cmake-3.16.2-r1 |
101 |
+ virtual/pkgconfig |
102 |
+ doc? ( |
103 |
+ app-doc/doxygen |
104 |
+ dev-texlive/texlive-bibtexextra |
105 |
+ dev-texlive/texlive-fontsextra |
106 |
+ dev-texlive/texlive-fontutils |
107 |
+ dev-texlive/texlive-latex |
108 |
+ dev-texlive/texlive-latexextra |
109 |
+ ) |
110 |
+ test? ( dev-util/cppunit dev-cpp/gtest ) |
111 |
+" |
112 |
+ |
113 |
+PATCHES=( |
114 |
+ "${FILESDIR}/${PN}-7.1.0-0001-Fix-multilib-header-source.patch" |
115 |
+) |
116 |
+ |
117 |
+pkg_setup() { |
118 |
+ use python && python-single-r1_pkg_setup |
119 |
+} |
120 |
+ |
121 |
+src_configure() { |
122 |
+ local myprefix="${EPREFIX}/usr/" |
123 |
+ |
124 |
+ local version |
125 |
+ if use abi6-compat; then |
126 |
+ version=6 |
127 |
+ elif use abi7-compat; then |
128 |
+ version=7 |
129 |
+ elif use abi8-compat; then |
130 |
+ version=8 |
131 |
+ else |
132 |
+ die "Openvdb abi version is not compatible" |
133 |
+ fi |
134 |
+ |
135 |
+ local mycmakeargs=( |
136 |
+ -DCHOST="${CHOST}" |
137 |
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}/" |
138 |
+ -DOPENVDB_ABI_VERSION_NUMBER="${version}" |
139 |
+ -DOPENVDB_BUILD_DOCS=$(usex doc) |
140 |
+ -DOPENVDB_BUILD_UNITTESTS=$(usex test) |
141 |
+ -DOPENVDB_BUILD_VDB_LOD=$(usex !utils) |
142 |
+ -DOPENVDB_BUILD_VDB_RENDER=$(usex !utils) |
143 |
+ -DOPENVDB_BUILD_VDB_VIEW=$(usex !utils) |
144 |
+ -DOPENVDB_CORE_SHARED=ON |
145 |
+ -DOPENVDB_CORE_STATIC=$(usex static-libs) |
146 |
+ -DOPENVDB_ENABLE_RPATH=OFF |
147 |
+ -DUSE_CCACHE=OFF |
148 |
+ -DUSE_COLORED_OUTPUT=ON |
149 |
+ -DUSE_EXR=ON |
150 |
+ -DUSE_LOG4CPLUS=ON |
151 |
+ ) |
152 |
+ |
153 |
+ if use python; then |
154 |
+ mycmakeargs+=( |
155 |
+ -DOPENVDB_BUILD_PYTHON_MODULE=ON |
156 |
+ -DUSE_NUMPY=$(usex numpy) |
157 |
+ -DPYOPENVDB_INSTALL_DIRECTORY="$(python_get_sitedir)" |
158 |
+ -DPython_EXECUTABLE="${PYTHON}" |
159 |
+ ) |
160 |
+ fi |
161 |
+ |
162 |
+ if use cpu_flags_x86_avx; then |
163 |
+ mycmakeargs+=( -DOPENVDB_SIMD=AVX ) |
164 |
+ elif use cpu_flags_x86_sse4_2; then |
165 |
+ mycmakeargs+=( -DOPENVDB_SIMD=SSE42 ) |
166 |
+ fi |
167 |
+ |
168 |
+ cmake_src_configure |
169 |
+} |