Gentoo Archives: gentoo-commits

From: Jonathan Scruggs <dracwyrm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/openvdb/files/, media-gfx/openvdb/
Date: Sat, 04 Aug 2018 18:22:05
Message-Id: 1533406898.f4ceb32d7edcd0b37899d7fbd48ab197ceda9b79.dracwyrm@gentoo
1 commit: f4ceb32d7edcd0b37899d7fbd48ab197ceda9b79
2 Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com>
3 AuthorDate: Sat Aug 4 17:18:32 2018 +0000
4 Commit: Jonathan Scruggs <dracwyrm <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 4 18:21:38 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4ceb32d
7
8 media-gfx/openvdb: remove old versions
9
10 media-gfx/openvdb/Manifest | 2 -
11 .../files/openvdb-3.2.0-fix-build-system.patch | 262 ---------------------
12 .../openvdb/files/openvdb-3.2.0-numpy-fix.patch | 17 --
13 .../files/openvdb-4.0.0-build-docs-once.patch | 32 ---
14 .../files/openvdb-4.0.0-make-docs-optional.patch | 71 ------
15 .../files/openvdb-4.0.0-namespace-fixes.patch | 65 -----
16 ...envdb-4.0.0-python-module-install-dir-fix.patch | 16 --
17 media-gfx/openvdb/metadata.xml | 5 -
18 media-gfx/openvdb/openvdb-3.2.0.ebuild | 161 -------------
19 media-gfx/openvdb/openvdb-4.0.0.ebuild | 77 ------
20 10 files changed, 708 deletions(-)
21
22 diff --git a/media-gfx/openvdb/Manifest b/media-gfx/openvdb/Manifest
23 index 9959ca2ec65..058405560b7 100644
24 --- a/media-gfx/openvdb/Manifest
25 +++ b/media-gfx/openvdb/Manifest
26 @@ -1,4 +1,2 @@
27 -DIST openvdb-3.2.0.tar.gz 1368870 BLAKE2B 062afa0c3209e30c73310accd84daa6747defc583d003e65e9fbcbc0c2381e78132874b8bdd6f2602d526071761b5fd9d19760d557bdbbe5a39f81b19b3f2c6a SHA512 df9a4895b219aae3b5a9616c34eb846d565877ff76648405691f0c903507f6faba94e8eba9173423b50cb5cef80f3ec500a9f70977cb7161701d39fd105abc91
28 -DIST openvdb-4.0.0.tar.gz 1545221 BLAKE2B b418c5a1b51b6deb73867fe0a352d3afb4466dde31734cd1da9a83231f0589880ca3cbf2577389cfa08d419216166504abc8e58848b9fd01dbaea46a3d5470f4 SHA512 138e23408d725f153f5545c8083cd16f6b3e5cf80308e080d5e463f74f947759cdf5f9d818137ebffaf8b2de77bffa8f38ef0d20758a1418aea1c71702c0001d
29 DIST openvdb-4.0.2-patchset-01.tar.xz 16420 BLAKE2B 2f825532d83d3a6756454f164a0608cfa776c1d4472cb4b25e4dad20d3c9648a952deef87ed0e24ce5f7c927c02da8cca76c829eafe1e2bb47fca061541668b3 SHA512 e9399d245d5e2b4130576d688691ac965f031b957df7803b8859f863634b27987c33aabadc5fb463b9d3eec333be84b89cb619dce5bc81c0390d8fb19da830c3
30 DIST openvdb-4.0.2.tar.gz 1689119 BLAKE2B dbc8d4ab44990440e201327d76bbf9bfe3e8f597505b1d008dedb95dc540277513f465d455079c59820acc5056c9a2edf56235e1097b6c73a1f7dd8c59609c15 SHA512 8e3e12583b81f9b9303b309e839c8321c67b67ff8a0e61bb56c87276bf25c0deff22f5a73c7c5b661b8e5df345bfdabfa6b0aea9bf16fce57d9c53a76751c75d
31
32 diff --git a/media-gfx/openvdb/files/openvdb-3.2.0-fix-build-system.patch b/media-gfx/openvdb/files/openvdb-3.2.0-fix-build-system.patch
33 deleted file mode 100644
34 index 66112af75da..00000000000
35 --- a/media-gfx/openvdb/files/openvdb-3.2.0-fix-build-system.patch
36 +++ /dev/null
37 @@ -1,262 +0,0 @@
38 -* Make build system honour the proper ABI library directory.
39 -* Replace -isystem arguments with -I, as the former causes issues with GCC 6.
40 - See also:
41 - https://bugs.gentoo.org/show_bug.cgi?id=597866
42 - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
43 -
44 ---- a/doxygen-config
45 -+++ b/doxygen-config
46 -@@ -2257,7 +2257,7 @@
47 - # The default value is: png.
48 - # This tag requires that the tag HAVE_DOT is set to YES.
49 -
50 --DOT_IMAGE_FORMAT = png
51 -+DOT_IMAGE_FORMAT = svg
52 -
53 - # If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
54 - # enable generation of interactive SVG images that allow zooming and panning.
55 ---- a/Makefile
56 -+++ b/Makefile
57 -@@ -82,6 +82,7 @@
58 -
59 - # The directory into which to install libraries, executables and header files
60 - DESTDIR := /tmp/OpenVDB
61 -+libdir = lib
62 -
63 - # The parent directory of the boost/ header directory
64 - BOOST_INCL_DIR := $(HT)/include
65 -@@ -158,6 +159,9 @@
66 - # The directory containing libpython
67 - PYTHON_LIB_DIR := $(HFS)/python/lib
68 - PYTHON_LIB := -lpython$(PYTHON_VERSION)
69 -+# The Directory to install the python module and includes to.
70 -+PYTHON_INSTALL_INCL_DIR := $(DESTDIR)/python/include/python$(PYTHON_VERSION)
71 -+PYTHON_INSTALL_LIB_DIR := $(DESTDIR)/python/lib/python$(PYTHON_VERSION)
72 - # The directory containing libboost_python
73 - BOOST_PYTHON_LIB_DIR := /rel/depot/third_party_build/boost/rhel6-1.46.1-0/lib
74 - BOOST_PYTHON_LIB := -lboost_python-gcc41-mt-python26-1_46_1
75 -@@ -179,7 +183,6 @@
76 - # (leave blank if Doxygen is unavailable)
77 - DOXYGEN := doxygen
78 -
79 --
80 - #
81 - # Ideally, users shouldn't need to change anything below this line.
82 - #
83 -@@ -207,11 +210,7 @@
84 - endif
85 - endif
86 -
87 --ifeq (yes,$(strip $(debug)))
88 -- OPTIMIZE := -g
89 --else
90 -- OPTIMIZE := -O3 -DNDEBUG
91 --endif
92 -+OPTIMIZE := -DNDEBUG
93 -
94 - ifeq (yes,$(strip $(verbose)))
95 - QUIET :=
96 -@@ -242,12 +241,12 @@
97 - has_python := yes
98 - endif
99 -
100 --INCLDIRS := -I . -I .. -isystem $(BOOST_INCL_DIR) -isystem $(ILMBASE_INCL_DIR) -isystem $(TBB_INCL_DIR)
101 -+INCLDIRS := -I. -I.. -I$(BOOST_INCL_DIR) -I$(ILMBASE_INCL_DIR) -I$(TBB_INCL_DIR)
102 - ifeq (yes,$(has_blosc))
103 -- INCLDIRS += -isystem $(BLOSC_INCL_DIR)
104 -+ INCLDIRS += -I$(BLOSC_INCL_DIR)
105 - endif
106 - ifeq (yes,$(has_log4cplus))
107 -- INCLDIRS += -isystem $(LOG4CPLUS_INCL_DIR)
108 -+ INCLDIRS += -I$(LOG4CPLUS_INCL_DIR)
109 - endif
110 -
111 - CXXFLAGS += -std=c++0x
112 -@@ -565,9 +564,9 @@
113 - python/pyTransform.cc \
114 - python/pyVec3Grid.cc \
115 - #
116 --PYCXXFLAGS := -fPIC -isystem python -isystem $(PYTHON_INCL_DIR) -isystem $(PYCONFIG_INCL_DIR)
117 -+PYCXXFLAGS := -fPIC -Ipython -I$(PYTHON_INCL_DIR) -I$(PYCONFIG_INCL_DIR)
118 - ifneq (,$(strip $(NUMPY_INCL_DIR)))
119 --PYCXXFLAGS += -isystem $(NUMPY_INCL_DIR) -DPY_OPENVDB_USE_NUMPY
120 -+PYCXXFLAGS += -I$(NUMPY_INCL_DIR) -DPY_OPENVDB_USE_NUMPY
121 - endif
122 - ifneq (no,$(strip $(PYTHON_WRAP_ALL_GRID_TYPES)))
123 - PYCXXFLAGS += -DPY_OPENVDB_WRAP_ALL_GRID_TYPES
124 -@@ -678,7 +677,7 @@
125 - @echo "Building $@ because of $(call list_deps)"
126 - $(CXX) -c $(CXXFLAGS) -fPIC -o $@ $<
127 -
128 --all: lib python vdb_print vdb_render vdb_test depend
129 -+all: lib python vdb_print vdb_render vdb_view vdb_test depend
130 -
131 - $(OBJ_NAMES): %.o: %.cc
132 - @echo "Building $@ because of $(call list_deps)"
133 -@@ -719,8 +718,13 @@
134 - @echo "Generating documentation because of $(list_deps)"
135 - echo -e 'OUTPUT_DIRECTORY=./doc\nGENERATE_LATEX=YES\nGENERATE_HTML=NO' \
136 - | cat doxygen-config - | $(DOXYGEN) - $(QUIET) \
137 -- && cd ./doc/latex && make refman.pdf $(QUIET) \
138 -+ && cd ./doc/latex && $(MAKE) refman.pdf $(QUIET) \
139 - && echo 'Created doc/latex/refman.pdf'
140 -+ @#
141 -+ mkdir -p $(DESTDIR)/share/doc/openvdb/pdf; \
142 -+ echo "Created $(DESTDIR)/share/doc/openvdb/pdf"; \
143 -+ cp -r -f doc/latex/refman.pdf $(DESTDIR)/share/doc/openvdb/pdf/; \
144 -+ echo "Copied documentation to $(DESTDIR)/share/doc/openvdb/pdf/"; \
145 -
146 - ifneq (,$(strip $(DOXYGEN)))
147 - doc: $(DOC_INDEX)
148 -@@ -734,14 +738,14 @@
149 -
150 - vdb_print: $(LIBOPENVDB) cmd/openvdb_print/main.cc
151 - @echo "Building $@ because of $(list_deps)"
152 -- $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_print/main.cc -I . \
153 -+ $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_print/main.cc -I. \
154 - $(LIBOPENVDB_RPATH) -L$(CURDIR) $(LIBOPENVDB) \
155 - $(LIBS_RPATH) $(CONCURRENT_MALLOC_LIB)
156 -
157 - vdb_render: $(LIBOPENVDB) cmd/openvdb_render/main.cc
158 - @echo "Building $@ because of $(list_deps)"
159 -- $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_render/main.cc -I . \
160 -- -isystem $(EXR_INCL_DIR) -isystem $(ILMBASE_INCL_DIR) \
161 -+ $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_render/main.cc -I. \
162 -+ -I$(EXR_INCL_DIR) -I$(ILMBASE_INCL_DIR) \
163 - -Wl,-rpath,$(EXR_LIB_DIR) -L$(EXR_LIB_DIR) $(EXR_LIB) \
164 - -Wl,-rpath,$(ILMBASE_LIB_DIR) -L$(ILMBASE_LIB_DIR) $(ILMBASE_LIB) \
165 - $(LIBOPENVDB_RPATH) -L$(CURDIR) $(LIBOPENVDB) \
166 -@@ -761,12 +765,12 @@
167 - $(LIBVIEWER_OBJ_NAMES): $(LIBVIEWER_INCLUDE_NAMES)
168 - $(LIBVIEWER_OBJ_NAMES): %.o: %.cc
169 - @echo "Building $@ because of $(list_deps)"
170 -- $(CXX) -c $(CXXFLAGS) -I . -isystem $(GLFW_INCL_DIR) -DGL_GLEXT_PROTOTYPES=1 -fPIC -o $@ $<
171 -+ $(CXX) -c $(CXXFLAGS) -I. -I$(GLFW_INCL_DIR) -DGL_GLEXT_PROTOTYPES=1 -fPIC -o $@ $<
172 -
173 - vdb_view: $(LIBOPENVDB) $(LIBVIEWER_OBJ_NAMES) cmd/openvdb_view/main.cc
174 - @echo "Building $@ because of $(list_deps)"
175 - $(CXX) $(CXXFLAGS) -o $@ cmd/openvdb_view/main.cc $(LIBVIEWER_OBJ_NAMES) \
176 -- -I . -Wl,-rpath,$(GLFW_LIB_DIR) -L$(GLFW_LIB_DIR) $(GLFW_LIB) \
177 -+ -I. -Wl,-rpath,$(GLFW_LIB_DIR) -L$(GLFW_LIB_DIR) $(GLFW_LIB) \
178 - $(LIBOPENVDB_RPATH) -L$(CURDIR) $(LIBOPENVDB) \
179 - $(LIBVIEWER_FLAGS) $(LIBS_RPATH) $(BOOST_THREAD_LIB) $(CONCURRENT_MALLOC_LIB)
180 - endif
181 -@@ -776,7 +780,7 @@
182 - $(PYTHON_OBJ_NAMES): $(PYTHON_INCLUDE_NAMES)
183 - $(PYTHON_OBJ_NAMES): %.o: %.cc
184 - @echo "Building $@ because of $(list_deps)"
185 -- $(CXX) -c $(CXXFLAGS) -I . $(PYCXXFLAGS) -o $@ $<
186 -+ $(CXX) -c $(CXXFLAGS) -I. $(PYCXXFLAGS) -o $@ $<
187 - $(PYTHON_MODULE): $(LIBOPENVDB) $(PYTHON_OBJ_NAMES)
188 - @echo "Building $@ because of $(list_deps)"
189 - $(CXX) $(CXXFLAGS) $(PYCXXFLAGS) -shared $(PYTHON_SONAME_FLAGS) -o $@ $(PYTHON_OBJ_NAMES) \
190 -@@ -784,6 +788,22 @@
191 - -Wl,-rpath,$(BOOST_PYTHON_LIB_DIR) -L$(BOOST_PYTHON_LIB_DIR) $(BOOST_PYTHON_LIB) \
192 - $(LIBOPENVDB_RPATH) -L$(CURDIR) $(LIBOPENVDB) \
193 - $(LIBS_RPATH) $(CONCURRENT_MALLOC_LIB)
194 -+ @echo "Installing the python module and includes"
195 -+ @#
196 -+ mkdir -p $(PYTHON_INSTALL_INCL_DIR); \
197 -+ echo "Created $(PYTHON_INSTALL_INCL_DIR)"; \
198 -+ cp -f $(PYTHON_PUBLIC_INCLUDE_NAMES) $(PYTHON_INSTALL_INCL_DIR)/; \
199 -+ echo "Copied Python header files to $(PYTHON_INSTALL_INCL_DIR)"; \
200 -+ mkdir -p $(PYTHON_INSTALL_LIB_DIR); \
201 -+ echo "Created $(PYTHON_INSTALL_LIB_DIR)"; \
202 -+ cp -f $(PYTHON_MODULE) $(PYTHON_INSTALL_LIB_DIR)/; \
203 -+ pushd $(PYTHON_INSTALL_LIB_DIR) > /dev/null; \
204 -+ ln -f -s $(PYTHON_MODULE) $(PYTHON_SONAME); \
205 -+ popd > /dev/null; \
206 -+ echo "Copied Python module to $(PYTHON_INSTALL_LIB_DIR)"
207 -+ @echo "Clean the Python modules so the next one will compile"
208 -+ @#
209 -+ $(RM) $(PYTHON_OBJ_NAMES)
210 -
211 - ifeq (yes,$(has_python))
212 - ifneq (,$(strip $(EPYDOC)))
213 -@@ -794,7 +814,7 @@
214 - echo "Created $${pydocdir}"; \
215 - export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(CURDIR); \
216 - export PYTHONPATH=${PYTHONPATH}:$(CURDIR); \
217 -- $(EPYDOC) --html -o $${pydocdir} $(PYTHON_MODULE_NAME) $(QUIET)
218 -+ $(EPYDOC) --html --html-dir $${pydocdir} $(PYTHON_MODULE_NAME) $(QUIET)
219 - else
220 - pydoc:
221 - @echo "$@"': $$EPYDOC is undefined'
222 -@@ -815,7 +835,7 @@
223 -
224 - $(UNITTEST_OBJ_NAMES): %.o: %.cc
225 - @echo "Building $@ because of $(list_deps)"
226 -- $(CXX) -c $(CXXFLAGS) -isystem $(CPPUNIT_INCL_DIR) -fPIC -o $@ $<
227 -+ $(CXX) -c $(CXXFLAGS) -I$(CPPUNIT_INCL_DIR) -fPIC -o $@ $<
228 -
229 - ifneq (,$(strip $(CPPUNIT_INCL_DIR)))
230 - vdb_test: $(LIBOPENVDB) $(UNITTEST_OBJ_NAMES)
231 -@@ -835,7 +855,7 @@
232 - @echo "$@"': $$(CPPUNIT_INCL_DIR) is undefined'
233 - endif
234 -
235 --install: lib python vdb_print vdb_render vdb_view doc pydoc
236 -+install: lib vdb_print vdb_render vdb_view doc pydoc
237 - mkdir -p $(DESTDIR)/include/openvdb
238 - @echo "Created $(DESTDIR)/include/openvdb"
239 - pushd $(DESTDIR)/include/openvdb > /dev/null; \
240 -@@ -851,42 +871,25 @@
241 - fi
242 - @echo "Copied header files to $(DESTDIR)/include"
243 - @#
244 -- mkdir -p $(DESTDIR)/lib
245 -- @echo "Created $(DESTDIR)/lib/"
246 -- cp -f $(LIBOPENVDB) $(DESTDIR)/lib
247 -- pushd $(DESTDIR)/lib > /dev/null; \
248 -+ mkdir -p $(DESTDIR)/$(libdir)
249 -+ @echo "Created $(DESTDIR)/$(libdir)/"
250 -+ cp -f $(LIBOPENVDB) $(DESTDIR)/$(libdir)
251 -+ pushd $(DESTDIR)/$(libdir) > /dev/null; \
252 - if [ -f $(LIBOPENVDB_SHARED) ]; then \
253 - ln -f -s $(LIBOPENVDB_SHARED) $(LIBOPENVDB_SHARED_NAME); \
254 - ln -f -s $(LIBOPENVDB_SHARED) $(LIBOPENVDB_SONAME); \
255 - fi; \
256 - popd > /dev/null
257 -- @echo "Copied libopenvdb to $(DESTDIR)/lib/"
258 -+ @echo "Copied libopenvdb to $(DESTDIR)/$(libdir)/"
259 - @#
260 - if [ -f $(LIBVIEWER) ]; \
261 - then \
262 -- cp -f $(LIBVIEWER) $(DESTDIR)/lib; \
263 -- pushd $(DESTDIR)/lib > /dev/null; \
264 -+ cp -f $(LIBVIEWER) $(DESTDIR)/$(libdir); \
265 -+ pushd $(DESTDIR)/$(libdir) > /dev/null; \
266 - if [ -f $(LIBVIEWER_SHARED) ]; then \
267 - ln -f -s $(LIBVIEWER_SHARED) $(LIBVIEWER_SHARED_NAME); fi; \
268 - popd > /dev/null; \
269 -- echo "Copied libopenvdb_viewer to $(DESTDIR)/lib/"; \
270 -- fi
271 -- @#
272 -- if [ -f $(PYTHON_MODULE) ]; \
273 -- then \
274 -- installdir=$(DESTDIR)/python/include/python$(PYTHON_VERSION); \
275 -- mkdir -p $${installdir}; \
276 -- echo "Created $${installdir}"; \
277 -- cp -f $(PYTHON_PUBLIC_INCLUDE_NAMES) $${installdir}/; \
278 -- echo "Copied Python header files to $${installdir}"; \
279 -- installdir=$(DESTDIR)/python/lib/python$(PYTHON_VERSION); \
280 -- mkdir -p $${installdir}; \
281 -- echo "Created $${installdir}"; \
282 -- cp -f $(PYTHON_MODULE) $${installdir}/; \
283 -- pushd $${installdir} > /dev/null; \
284 -- ln -f -s $(PYTHON_MODULE) $(PYTHON_SONAME); \
285 -- popd > /dev/null; \
286 -- echo "Copied Python module to $${installdir}"; \
287 -+ echo "Copied libopenvdb_viewer to $(DESTDIR)/$(libdir)/"; \
288 - fi
289 - @#
290 - mkdir -p $(DESTDIR)/bin
291 -@@ -924,7 +927,7 @@
292 - for f in $(UNITTEST_SRC_NAMES); \
293 - do $(CXX) $(CXXFLAGS) -O0 \
294 - -MM $$f -MT `echo $$f | sed 's%\.[^.]*%.o%'` \
295 -- -isystem $(CPPUNIT_INCL_DIR) >> $(DEPEND); \
296 -+ -I$(CPPUNIT_INCL_DIR) >> $(DEPEND); \
297 - done; \
298 - fi
299 -
300
301 diff --git a/media-gfx/openvdb/files/openvdb-3.2.0-numpy-fix.patch b/media-gfx/openvdb/files/openvdb-3.2.0-numpy-fix.patch
302 deleted file mode 100644
303 index bef10240477..00000000000
304 --- a/media-gfx/openvdb/files/openvdb-3.2.0-numpy-fix.patch
305 +++ /dev/null
306 @@ -1,17 +0,0 @@
307 -diff --git a/python/pyOpenVDBModule.cc b/openvdb/python/pyOpenVDBModule.cc
308 -index 508c787..dd069e0 100644
309 ---- a/python/pyOpenVDBModule.cc
310 -+++ b/python/pyOpenVDBModule.cc
311 -@@ -592,8 +592,12 @@ BOOST_PYTHON_MODULE(PY_OPENVDB_MODULE_NAME)
312 -
313 - #ifdef PY_OPENVDB_USE_NUMPY
314 - // Initialize NumPy.
315 -+#if PY_MAJOR_VERSION >= 3
316 -+ if (_import_array()) { };
317 -+#else
318 - import_array();
319 - #endif
320 -+#endif
321 -
322 - using namespace openvdb::OPENVDB_VERSION_NAME;
323 -
324
325 diff --git a/media-gfx/openvdb/files/openvdb-4.0.0-build-docs-once.patch b/media-gfx/openvdb/files/openvdb-4.0.0-build-docs-once.patch
326 deleted file mode 100644
327 index 5a8baee0f26..00000000000
328 --- a/media-gfx/openvdb/files/openvdb-4.0.0-build-docs-once.patch
329 +++ /dev/null
330 @@ -1,32 +0,0 @@
331 -From 5bb7bc424b09f93417a1d447f2d4f3081394f964 Mon Sep 17 00:00:00 2001
332 -From: Nicholas Yue <yue.nicholas@×××××.com>
333 -Date: Thu, 17 Nov 2016 16:59:47 -0800
334 -Subject: [PATCH] Refine Doxygen run so that it is done only once and only
335 - during the installation phase
336 -
337 ----
338 - openvdb/CMakeLists.txt | 6 ++++--
339 - 1 file changed, 4 insertions(+), 2 deletions(-)
340 -
341 -diff --git a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
342 -index aa1a080..88e46ca 100644
343 ---- a/openvdb/CMakeLists.txt
344 -+++ b/openvdb/CMakeLists.txt
345 -@@ -443,13 +443,15 @@ IF (OPENVDB_BUILD_DOCS)
346 - FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config ${DOXYGEN_CONFIG_CONTENT} )
347 - FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config "OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR}/doc\n" )
348 -
349 -- ADD_CUSTOM_TARGET ( doc ALL
350 -+ ADD_CUSTOM_TARGET ( doc
351 - ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config
352 - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
353 - COMMENT "Generating API documentation with Doxygen" VERBATIM
354 - )
355 -
356 -- INSTALL ( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html/ DESTINATION doc)
357 -+ INSTALL ( CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build \"${PROJECT_BINARY_DIR}\" --target doc)")
358 -+ INSTALL ( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION docs)
359 -+
360 - ENDIF ()
361 -
362 - # Installation
363
364 diff --git a/media-gfx/openvdb/files/openvdb-4.0.0-make-docs-optional.patch b/media-gfx/openvdb/files/openvdb-4.0.0-make-docs-optional.patch
365 deleted file mode 100644
366 index 92c4fa32059..00000000000
367 --- a/media-gfx/openvdb/files/openvdb-4.0.0-make-docs-optional.patch
368 +++ /dev/null
369 @@ -1,71 +0,0 @@
370 -From 3c7f3247e443620658a5cb7b4e9cdea488c450d9 Mon Sep 17 00:00:00 2001
371 -From: Nicholas Yue <yue.nicholas@×××××.com>
372 -Date: Thu, 17 Nov 2016 03:58:58 -0800
373 -Subject: [PATCH] Fix the Doxygen generation problem but current solution is
374 - not very elegant as there was a regeneration run of Doxygen. Committing this
375 - for now so that at least it will work for the initial 4.0.0 release.
376 - Introduce a CMake option variable to toggle the generation and installation
377 - of doxygen
378 -
379 ----
380 - CMakeLists.txt | 1 +
381 - openvdb/CMakeLists.txt | 27 +++++++++++++++------------
382 - 2 files changed, 16 insertions(+), 12 deletions(-)
383 -
384 -diff --git a/CMakeLists.txt b/CMakeLists.txt
385 -index 739d57f..32f82d2 100644
386 ---- a/CMakeLists.txt
387 -+++ b/CMakeLists.txt
388 -@@ -33,6 +33,7 @@ PROJECT ( OpenVDB )
389 - ENABLE_TESTING()
390 -
391 - OPTION ( OPENVDB_BUILD_UNITTESTS "Build the OpenVDB unit tests" ON )
392 -+OPTION ( OPENVDB_BUILD_DOCS "Build the OpenVDB documentation" OFF )
393 - OPTION ( OPENVDB_BUILD_PYTHON_MODULE "Build the pyopenvdb Python module" ON )
394 - OPTION ( OPENVDB_BUILD_HOUDINI_SOPS "Build the Houdini SOPs" OFF )
395 - OPTION ( OPENVDB_BUILD_MAYA_PLUGIN "Build the Maya plugin" OFF )
396 -diff --git a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
397 -index f86b306..aa1a080 100644
398 ---- a/openvdb/CMakeLists.txt
399 -+++ b/openvdb/CMakeLists.txt
400 -@@ -97,7 +97,9 @@ FIND_PACKAGE ( ZLIB REQUIRED )
401 - FIND_PACKAGE ( ILMBase REQUIRED )
402 - FIND_PACKAGE ( OpenEXR REQUIRED )
403 - FIND_PACKAGE ( OpenGL REQUIRED )
404 --FIND_PACKAGE ( Doxygen REQUIRED )
405 -+IF (OPENVDB_BUILD_DOCS)
406 -+ FIND_PACKAGE ( Doxygen REQUIRED )
407 -+ENDIF ()
408 - IF (OPENVDB_BUILD_UNITTESTS)
409 - FIND_PACKAGE ( CPPUnit REQUIRED )
410 - ENDIF ()
411 -@@ -435,17 +437,18 @@ IF ( OPENVDB_BUILD_PYTHON_MODULE )
412 - ENDIF ( OPENVDB_BUILD_PYTHON_MODULE )
413 -
414 - # Doxygen docmentation
415 --FILE ( READ ${CMAKE_CURRENT_SOURCE_DIR}/doxygen-config DOXYGEN_CONFIG_CONTENT )
416 --FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config ${DOXYGEN_CONFIG_CONTENT} )
417 --FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config "OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR}/doc\n" )
418 --
419 --ADD_CUSTOM_TARGET ( doc
420 -- ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config
421 -- WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
422 -- COMMENT "Generating API documentation with Doxygen" VERBATIM
423 --)
424 --
425 --IF ( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/doc/html )
426 -+IF (OPENVDB_BUILD_DOCS)
427 -+
428 -+ FILE ( READ ${CMAKE_CURRENT_SOURCE_DIR}/doxygen-config DOXYGEN_CONFIG_CONTENT )
429 -+ FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config ${DOXYGEN_CONFIG_CONTENT} )
430 -+ FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config "OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR}/doc\n" )
431 -+
432 -+ ADD_CUSTOM_TARGET ( doc ALL
433 -+ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/cmake-doxygen-config
434 -+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
435 -+ COMMENT "Generating API documentation with Doxygen" VERBATIM
436 -+ )
437 -+
438 - INSTALL ( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html/ DESTINATION doc)
439 - ENDIF ()
440 -
441
442 diff --git a/media-gfx/openvdb/files/openvdb-4.0.0-namespace-fixes.patch b/media-gfx/openvdb/files/openvdb-4.0.0-namespace-fixes.patch
443 deleted file mode 100644
444 index 913c6079a08..00000000000
445 --- a/media-gfx/openvdb/files/openvdb-4.0.0-namespace-fixes.patch
446 +++ /dev/null
447 @@ -1,65 +0,0 @@
448 -diff -purN a/cmake/FindILMBase.cmake b/cmake/FindILMBase.cmake
449 ---- a/cmake/FindILMBase.cmake 2016-11-16 20:24:17.000000000 +0000
450 -+++ b/cmake/FindILMBase.cmake 2017-01-05 09:28:43.941910625 +0000
451 -@@ -57,15 +57,15 @@ OPTION ( ILMBASE_NAMESPACE_VERSIONING "N
452 -
453 - IF ( ILMBASE_FOUND )
454 -
455 -- FILE ( STRINGS "${ILMBASE_LOCATION}/include/OpenEXR/IlmBaseConfig.h" _ilmbase_version_major_string REGEX "#define ILMBASE_VERSION_MAJOR ")
456 -- STRING ( REGEX REPLACE "#define ILMBASE_VERSION_MAJOR" "" _ilmbase_version_major_unstrip "${_ilmbase_version_major_string}")
457 -- STRING ( STRIP ${_ilmbase_version_major_unstrip} ILMBASE_VERSION_MAJOR )
458 -+ IF ( ILMBASE_NAMESPACE_VERSIONING )
459 -+ FILE ( STRINGS "${ILMBASE_LOCATION}/include/OpenEXR/IlmBaseConfig.h" _ilmbase_version_major_string REGEX "#define ILMBASE_VERSION_MAJOR ")
460 -+ STRING ( REGEX REPLACE "#define ILMBASE_VERSION_MAJOR" "" _ilmbase_version_major_unstrip "${_ilmbase_version_major_string}")
461 -+ STRING ( STRIP ${_ilmbase_version_major_unstrip} ILMBASE_VERSION_MAJOR )
462 -
463 -- FILE ( STRINGS "${ILMBASE_LOCATION}/include/OpenEXR/IlmBaseConfig.h" _ilmbase_version_minor_string REGEX "#define ILMBASE_VERSION_MINOR ")
464 -- STRING ( REGEX REPLACE "#define ILMBASE_VERSION_MINOR" "" _ilmbase_version_minor_unstrip "${_ilmbase_version_minor_string}")
465 -- STRING ( STRIP ${_ilmbase_version_minor_unstrip} ILMBASE_VERSION_MINOR )
466 -+ FILE ( STRINGS "${ILMBASE_LOCATION}/include/OpenEXR/IlmBaseConfig.h" _ilmbase_version_minor_string REGEX "#define ILMBASE_VERSION_MINOR ")
467 -+ STRING ( REGEX REPLACE "#define ILMBASE_VERSION_MINOR" "" _ilmbase_version_minor_unstrip "${_ilmbase_version_minor_string}")
468 -+ STRING ( STRIP ${_ilmbase_version_minor_unstrip} ILMBASE_VERSION_MINOR )
469 -
470 -- IF ( ILMBASE_NAMESPACE_VERSIONING )
471 - SET ( IEX_LIBRARY_NAME Iex-${ILMBASE_VERSION_MAJOR}_${ILMBASE_VERSION_MINOR} )
472 - SET ( IEXMATH_LIBRARY_NAME IexMath-${ILMBASE_VERSION_MAJOR}_${ILMBASE_VERSION_MINOR} )
473 - SET ( ILMTHREAD_LIBRARY_NAME IlmThread-${ILMBASE_VERSION_MAJOR}_${ILMBASE_VERSION_MINOR} )
474 -diff -purN a/cmake/FindOpenEXR.cmake b/cmake/FindOpenEXR.cmake
475 ---- a/cmake/FindOpenEXR.cmake 2016-11-16 20:24:17.000000000 +0000
476 -+++ b/cmake/FindOpenEXR.cmake 2017-01-05 09:34:51.167736304 +0000
477 -@@ -52,22 +52,24 @@ OPTION ( OPENEXR_NAMESPACE_VERSIONING "N
478 -
479 - IF ( OPENEXR_FOUND )
480 -
481 -- FILE ( STRINGS "${OPENEXR_LOCATION}/include/OpenEXR/OpenEXRConfig.h" _openexr_version_major_string REGEX "#define OPENEXR_VERSION_MAJOR ")
482 -- STRING ( REGEX REPLACE "#define OPENEXR_VERSION_MAJOR" "" _openexr_version_major_unstrip "${_openexr_version_major_string}")
483 -- STRING ( STRIP ${_openexr_version_major_unstrip} OPENEXR_VERSION_MAJOR )
484 --
485 -- FILE ( STRINGS "${OPENEXR_LOCATION}/include/OpenEXR/OpenEXRConfig.h" _openexr_version_minor_string REGEX "#define OPENEXR_VERSION_MINOR ")
486 -- STRING ( REGEX REPLACE "#define OPENEXR_VERSION_MINOR" "" _openexr_version_minor_unstrip "${_openexr_version_minor_string}")
487 -- STRING ( STRIP ${_openexr_version_minor_unstrip} OPENEXR_VERSION_MINOR )
488 --
489 -- MESSAGE ( STATUS "Found OpenEXR v${OPENEXR_VERSION_MAJOR}.${OPENEXR_VERSION_MINOR} at ${OPENEXR_LOCATION}" )
490 --
491 - IF ( OPENEXR_NAMESPACE_VERSIONING )
492 -+ FILE ( STRINGS "${OPENEXR_LOCATION}/include/OpenEXR/OpenEXRConfig.h" _openexr_version_major_string REGEX "#define OPENEXR_VERSION_MAJOR ")
493 -+ STRING ( REGEX REPLACE "#define OPENEXR_VERSION_MAJOR" "" _openexr_version_major_unstrip "${_openexr_version_major_string}")
494 -+ STRING ( STRIP ${_openexr_version_major_unstrip} OPENEXR_VERSION_MAJOR )
495 -+
496 -+ FILE ( STRINGS "${OPENEXR_LOCATION}/include/OpenEXR/OpenEXRConfig.h" _openexr_version_minor_string REGEX "#define OPENEXR_VERSION_MINOR ")
497 -+ STRING ( REGEX REPLACE "#define OPENEXR_VERSION_MINOR" "" _openexr_version_minor_unstrip "${_openexr_version_minor_string}")
498 -+ STRING ( STRIP ${_openexr_version_minor_unstrip} OPENEXR_VERSION_MINOR )
499 -+
500 -+ MESSAGE ( STATUS "Found OpenEXR v${OPENEXR_VERSION_MAJOR}.${OPENEXR_VERSION_MINOR} at ${OPENEXR_LOCATION}" )
501 -+
502 - SET ( ILMIMF_LIBRARY_NAME IlmImf-${OPENEXR_VERSION_MAJOR}_${OPENEXR_VERSION_MINOR} )
503 - ELSE ( OPENEXR_NAMESPACE_VERSIONING )
504 -+ MESSAGE ( STATUS "Found OpenEXR at ${OPENEXR_LOCATION}" )
505 -+
506 - SET ( ILMIMF_LIBRARY_NAME IlmImf )
507 - ENDIF ( OPENEXR_NAMESPACE_VERSIONING )
508 --
509 -+
510 - SET ( OPENEXR_INCLUDE_DIRS
511 - ${OPENEXR_LOCATION}/include
512 - ${OPENEXR_LOCATION}/include/OpenEXR
513
514 diff --git a/media-gfx/openvdb/files/openvdb-4.0.0-python-module-install-dir-fix.patch b/media-gfx/openvdb/files/openvdb-4.0.0-python-module-install-dir-fix.patch
515 deleted file mode 100644
516 index 34c6c76ea9d..00000000000
517 --- a/media-gfx/openvdb/files/openvdb-4.0.0-python-module-install-dir-fix.patch
518 +++ /dev/null
519 @@ -1,16 +0,0 @@
520 -diff -purN a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
521 ---- a/openvdb/CMakeLists.txt 2016-11-16 20:24:17.000000000 +0000
522 -+++ b/openvdb/CMakeLists.txt 2017-01-09 13:46:00.000000000 +0000
523 -@@ -426,10 +426,11 @@ IF ( OPENVDB_BUILD_PYTHON_MODULE )
524 - ADD_TEST ( pytest ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/python/test/TestOpenVDB.py )
525 - SET_TESTS_PROPERTIES ( pytest PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}")
526 -
527 -+ SET ( PYOENVDB_INSTALL_DIRECTORY lib/python${OPENVDB_PYTHON_VERSION_MAJOR}.${OPENVDB_PYTHON_VERSION_MINOR} CACHE STRING "The directory to install the pyopenvdb.so module.")
528 - INSTALL ( TARGETS
529 - pyopenvdb
530 - DESTINATION
531 -- lib/python${OPENVDB_PYTHON_VERSION_MAJOR}.${OPENVDB_PYTHON_VERSION_MINOR}
532 -+ ${PYOENVDB_INSTALL_DIRECTORY}
533 - )
534 -
535 - ENDIF ( OPENVDB_BUILD_PYTHON_MODULE )
536
537 diff --git a/media-gfx/openvdb/metadata.xml b/media-gfx/openvdb/metadata.xml
538 index 453013e59be..806981efae0 100644
539 --- a/media-gfx/openvdb/metadata.xml
540 +++ b/media-gfx/openvdb/metadata.xml
541 @@ -23,11 +23,6 @@
542 Enables compatibility with the old 3.x ABI.
543 enabled by dfault.
544 </flag>
545 - <flag restrict="&lt;=media-gfx/openvdb-3.2.0" name="openvdb-compression">
546 - Adds enhanced compression to files through
547 - <pkg>dev-libs/c-blosc</pkg>. Very useful so
548 - enabled by dfault.
549 - </flag>
550 </use>
551 <upstream>
552 <remote-id type="github">dreamworksanimation/openvdb</remote-id>
553
554 diff --git a/media-gfx/openvdb/openvdb-3.2.0.ebuild b/media-gfx/openvdb/openvdb-3.2.0.ebuild
555 deleted file mode 100644
556 index bdd39bb6e1f..00000000000
557 --- a/media-gfx/openvdb/openvdb-3.2.0.ebuild
558 +++ /dev/null
559 @@ -1,161 +0,0 @@
560 -# Copyright 1999-2016 Gentoo Foundation
561 -# Distributed under the terms of the GNU General Public License v2
562 -
563 -EAPI=6
564 -
565 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
566 -
567 -inherit eutils python-r1 toolchain-funcs
568 -
569 -DESCRIPTION="Libs for the efficient manipulation of volumetric data"
570 -HOMEPAGE="http://www.openvdb.org"
571 -
572 -SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
573 -
574 -LICENSE="MPL-2.0"
575 -SLOT="0"
576 -KEYWORDS="~amd64 ~x86"
577 -IUSE="+openvdb-compression doc python X"
578 -
579 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
580 -
581 -COMMON_DEPEND="
582 - sys-libs/zlib
583 - >=dev-libs/boost-1.62:=[${PYTHON_USEDEP}]
584 - media-libs/openexr
585 - dev-util/cppunit
586 - X? ( media-libs/glfw )
587 - dev-libs/jemalloc
588 - python? ( dev-python/numpy[${PYTHON_USEDEP}] )
589 - openvdb-compression? ( >=dev-libs/c-blosc-1.5.0 )
590 - dev-libs/log4cplus"
591 -
592 -RDEPEND="python? ( ${PYTHON_DEPS} )
593 - ${COMMON_DEPEND}"
594 -
595 -DEPEND="${RDEPEND}
596 - dev-cpp/tbb
597 - doc? (
598 - app-doc/doxygen
599 - python? ( dev-python/pdoc[${PYTHON_USEDEP}] )
600 - )
601 - ${COMMON_DEPEND}"
602 -
603 -S="${WORKDIR}/${P}/${PN}"
604 -
605 -PATCHES=(
606 - "${FILESDIR}"/${P}-numpy-fix.patch
607 - "${FILESDIR}"/${P}-fix-build-system.patch
608 -)
609 -
610 -python_module_compile() {
611 - mypythonargs=(
612 - PYTHON_VERSION=${EPYTHON/python/}
613 - PYTHON_INCL_DIR="$(python_get_includedir)"
614 - PYCONFIG_INCL_DIR="$(python_get_includedir)"
615 - PYTHON_LIB_DIR="$(python_get_library_path)"
616 - PYTHON_LIB="$(python_get_LIBS)"
617 - PYTHON_INSTALL_INCL_DIR="${D%/}$(python_get_includedir)"
618 - PYTHON_INSTALL_LIB_DIR="${D%/}$(python_get_sitedir)"
619 - NUMPY_INCL_DIR="$(python_get_sitedir)"/numpy/core/include/numpy
620 - BOOST_PYTHON_LIB_DIR="${myprefixlibdir}"
621 - BOOST_PYTHON_LIB=-lboost_python-${EPYTHON/python/}
622 - )
623 -
624 - einfo "Compiling module for ${EPYTHON}."
625 - emake python "${myemakeargs[@]}" "${mypythonargs[@]}" EPYDOC="" CXX="$(tc-getCXX)"
626 -
627 - # This is so the correct version of pdoc is used
628 - mypyscriptdir=$(python_get_scriptdir)
629 -}
630 -
631 -src_compile() {
632 - # The build system is designed to compile and install all
633 - # in one go, so doing each phase separately would be be
634 - # impossible and the functions would all overlap anyways.
635 - # Do nothing
636 - return
637 -}
638 -
639 -src_install() {
640 - local myprefix="${EPREFIX}"/usr
641 - local myprefixlibdir="${myprefix}"/"$(get_libdir)"
642 - local mypyscriptdir
643 -
644 - # So individule targets can be called without duplication
645 - # Common depends:
646 - local myemakeargs=(
647 - rpath=no
648 - shared=yes
649 - libdir="$(get_libdir)"
650 - LIBOPENVDB_RPATH=
651 - DESTDIR="${D}"
652 - HFS="${myprefix}"
653 - HT="${myprefix}"
654 - HDSO="${myprefixlibdir}"
655 - CPPUNIT_INCL_DIR="${myprefix}"/include/cppunit
656 - CPPUNIT_LIB_DIR="${myprefixlibdir}"
657 - LOG4CPLUS_INCL_DIR="${myprefix}"/include/log4cplus
658 - LOG4CPLUS_LIB_DIR="${myprefixlibdir}"
659 - )
660 -
661 - # Create python list here for use during install phase:
662 - # - If python is used, then the last used module will trigger
663 - # document install phase. It's the same doc, so build once.
664 - # - If no python used, then this will remail blanked out to
665 - # disable pydoc.
666 - # - pydoc will be called if doc and python use flags are set.
667 - local mypythonargs=(
668 - PYTHON_VERSION=
669 - PYTHON_INCL_DIR=
670 - PYCONFIG_INCL_DIR=
671 - PYTHON_LIB_DIR=
672 - PYTHON_LIB=
673 - PYTHON_INSTALL_INCL_DIR=
674 - PYTHON_INSTALL_LIB_DIR=
675 - NUMPY_INCL_DIR=
676 - BOOST_PYTHON_LIB_DIR=
677 - BOOST_PYTHON_LIB=
678 - )
679 -
680 - # Optional depends:
681 - if use X; then
682 - myemakeargs+=(
683 - GLFW_INCL_DIR="${myprefixlibdir}"
684 - GLFW_LIB_DIR="${myprefixlibdir}"
685 - )
686 - else
687 - myemakeargs+=(
688 - GLFW_INCL_DIR=
689 - GLFW_LIB_DIR=
690 - GLFW_LIB=
691 - GLFW_MAJOR_VERSION=
692 - )
693 - fi
694 -
695 - if use openvdb-compression; then
696 - myemakeargs+=(
697 - BLOSC_INCL_DIR="${myprefix}"/include
698 - BLOSC_LIB_DIR="${myprefixlibdir}"
699 - )
700 - else
701 - myemakeargs+=(
702 - BLOSC_INCL_DIR=
703 - BLOSC_LIB_DIR=
704 - )
705 - fi
706 -
707 - use doc || myemakeargs+=( DOXYGEN= )
708 -
709 - # Create python modules for each version selected
710 - use python && python_foreach_impl python_module_compile
711 -
712 - if use python && use doc; then
713 - mypythonargs+=( EPYDOC="${mypyscriptdir}"/pdoc )
714 - else
715 - mypythonargs+=( EPYDOC="" )
716 - fi
717 -
718 - einfo "Compiling the main components."
719 - emake install "${myemakeargs[@]}" "${mypythonargs[@]}" CXX="$(tc-getCXX)"
720 -}
721
722 diff --git a/media-gfx/openvdb/openvdb-4.0.0.ebuild b/media-gfx/openvdb/openvdb-4.0.0.ebuild
723 deleted file mode 100644
724 index f3168eb1ec2..00000000000
725 --- a/media-gfx/openvdb/openvdb-4.0.0.ebuild
726 +++ /dev/null
727 @@ -1,77 +0,0 @@
728 -# Copyright 1999-2017 Gentoo Foundation
729 -# Distributed under the terms of the GNU General Public License v2
730 -
731 -EAPI=6
732 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
733 -
734 -inherit eutils flag-o-matic cmake-utils python-single-r1
735 -
736 -DESCRIPTION="Libs for the efficient manipulation of volumetric data"
737 -HOMEPAGE="http://www.openvdb.org"
738 -
739 -SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
740 -
741 -LICENSE="MPL-2.0"
742 -SLOT="0"
743 -KEYWORDS="~amd64 ~x86"
744 -IUSE="+abi3-compat doc python"
745 -
746 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
747 -
748 -RDEPEND="
749 - >=dev-libs/boost-1.62:=[python?,${PYTHON_USEDEP}]
750 - >=dev-libs/c-blosc-1.5.0
751 - dev-libs/jemalloc
752 - dev-libs/log4cplus
753 - media-libs/glfw:=
754 - media-libs/openexr:=
755 - sys-libs/zlib
756 - x11-libs/libXi
757 - x11-libs/libXrandr
758 - x11-libs/libXinerama
759 - x11-libs/libXcursor
760 - python? (
761 - ${PYTHON_DEPS}
762 - dev-python/numpy[${PYTHON_USEDEP}]
763 - )"
764 -DEPEND="${RDEPEND}
765 - dev-cpp/tbb
766 - doc? (
767 - app-doc/doxygen
768 - python? ( dev-python/pdoc[${PYTHON_USEDEP}] )
769 - )"
770 -
771 -PATCHES=(
772 - "${FILESDIR}"/${P}-make-docs-optional.patch
773 - "${FILESDIR}"/${P}-build-docs-once.patch
774 - "${FILESDIR}"/${P}-namespace-fixes.patch
775 - "${FILESDIR}"/${P}-python-module-install-dir-fix.patch
776 -)
777 -
778 -src_configure() {
779 - local myprefix="${EPREFIX}"/usr/
780 -
781 - # To stay in sync with Boost
782 - append-cxxflags -std=c++14
783 -
784 - # Enable unit tests later in 4.0.1
785 - local mycmakeargs=(
786 - -DOPENVDB_BUILD_UNITTESTS=OFF
787 - -DOPENVDB_BUILD_DOCS=$(usex doc)
788 - -DOPENVDB_BUILD_PYTHON_MODULE=$(usex python)
789 - -DOPENVDB_ENABLE_3_ABI_COMPATIBLE=$(usex abi3-compat)
790 - -DBLOSC_LOCATION="${myprefix}"
791 - -DGLEW_LOCATION="${myprefix}"
792 - -DUSE_GLFW3=ON
793 - -DGLFW3_LOCATION="${myprefix}"
794 - -DILMBASE_LOCATION="${myprefix}"
795 - -DILMBASE_NAMESPACE_VERSIONING=OFF
796 - -DOPENEXR_LOCATION="${myprefix}"
797 - -DOPENEXR_NAMESPACE_VERSIONING=OFF
798 - -DTBB_LOCATION="${myprefix}"
799 - )
800 -
801 - use python && mycmakeargs+=( -DPYOENVDB_INSTALL_DIRECTORY=$(python_get_sitedir) )
802 -
803 - cmake-utils_src_configure
804 -}