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/, media-gfx/openvdb/files/
Date: Sat, 04 Aug 2018 18:22:04
Message-Id: 1533406897.74320c01dacb7c27d6901caac7ef67e47f0114e7.dracwyrm@gentoo
1 commit: 74320c01dacb7c27d6901caac7ef67e47f0114e7
2 Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com>
3 AuthorDate: Sat Aug 4 17:09:39 2018 +0000
4 Commit: Jonathan Scruggs <dracwyrm <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 4 18:21:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74320c01
7
8 media-gfx/openvdb: revision bump to fix FindBoost
9
10 Add patch from Dennis Schridde <devurandom <AT> gmx.net> to fix finding
11 boost with CMake 3.11
12 Closes: https://bugs.gentoo.org/652266
13 Closes: https://github.com/gentoo/gentoo/pull/9443
14
15 .../files/openvdb-4.0.2-findboost-fix.patch | 11 +++
16 media-gfx/openvdb/openvdb-4.0.2-r1.ebuild | 79 ++++++++++++++++++++++
17 2 files changed, 90 insertions(+)
18
19 diff --git a/media-gfx/openvdb/files/openvdb-4.0.2-findboost-fix.patch b/media-gfx/openvdb/files/openvdb-4.0.2-findboost-fix.patch
20 new file mode 100644
21 index 00000000000..12245be3e46
22 --- /dev/null
23 +++ b/media-gfx/openvdb/files/openvdb-4.0.2-findboost-fix.patch
24 @@ -0,0 +1,11 @@
25 +--- openvdb-4.0.2/openvdb/python/CMakeLists.txt.orig 2018-07-12 20:29:50.745624805 +0200
26 ++++ openvdb-4.0.2/openvdb/python/CMakeLists.txt 2018-07-12 20:30:10.452305180 +0200
27 +@@ -3,7 +3,7 @@
28 +
29 + FIND_PACKAGE ( PythonInterp REQUIRED )
30 + FIND_PACKAGE ( PythonLibs REQUIRED )
31 +-FIND_PACKAGE ( Boost ${MINIMUM_BOOST_VERSION} REQUIRED COMPONENTS python )
32 ++FIND_PACKAGE ( Boost ${MINIMUM_BOOST_VERSION} REQUIRED COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} )
33 +
34 +
35 + IF ( NOT OPENVDB_BUILD_CORE )
36
37 diff --git a/media-gfx/openvdb/openvdb-4.0.2-r1.ebuild b/media-gfx/openvdb/openvdb-4.0.2-r1.ebuild
38 new file mode 100644
39 index 00000000000..d23f5b3c717
40 --- /dev/null
41 +++ b/media-gfx/openvdb/openvdb-4.0.2-r1.ebuild
42 @@ -0,0 +1,79 @@
43 +# Copyright 1999-2018 Gentoo Foundation
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=6
47 +
48 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
49 +
50 +inherit cmake-utils flag-o-matic python-single-r1
51 +
52 +DESCRIPTION="Libs for the efficient manipulation of volumetric data"
53 +HOMEPAGE="http://www.openvdb.org"
54 +SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
55 + https://github.com/dracwyrm/gentoo-patches/raw/master/${PN}/${P}-patchset-01.tar.xz"
56 +
57 +LICENSE="MPL-2.0"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~x86"
60 +IUSE="+abi3-compat doc python"
61 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
62 +
63 +RDEPEND="
64 + >=dev-libs/boost-1.62:=[python?,${PYTHON_USEDEP}]
65 + >=dev-libs/c-blosc-1.5.0
66 + dev-libs/jemalloc
67 + dev-libs/log4cplus
68 + media-libs/glfw:=
69 + media-libs/openexr:=
70 + sys-libs/zlib:=
71 + x11-libs/libXcursor
72 + x11-libs/libXi
73 + x11-libs/libXinerama
74 + x11-libs/libXrandr
75 + python? (
76 + ${PYTHON_DEPS}
77 + dev-python/numpy[${PYTHON_USEDEP}]
78 + )
79 +"
80 +
81 +DEPEND="${RDEPEND}
82 + dev-cpp/tbb
83 + virtual/pkgconfig
84 + doc? ( app-doc/doxygen[latex] )
85 +"
86 +
87 +PATCHES=(
88 + "${WORKDIR}/0001-Change-hardcoded-paths-to-GNUInstallDirs-variables.patch"
89 + "${WORKDIR}/0002-Use-PkgConfig-to-find-IlmBase-and-OpenEXR.patch"
90 + "${WORKDIR}/0003-Boost-1.65-NumPy-support.patch"
91 + "${FILESDIR}/${P}-findboost-fix.patch"
92 +)
93 +
94 +pkg_setup() {
95 + use python && python-single-r1_pkg_setup
96 +}
97 +
98 +src_configure() {
99 + local myprefix="${EPREFIX}/usr/"
100 +
101 + # To stay in sync with Boost
102 + append-cxxflags -std=c++14
103 +
104 + local mycmakeargs=(
105 + -DBLOSC_LOCATION="${myprefix}"
106 + -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
107 + -DGLEW_LOCATION="${myprefix}"
108 + -DGLFW3_LOCATION="${myprefix}"
109 + -DOPENVDB_BUILD_DOCS=$(usex doc)
110 + -DOPENVDB_BUILD_PYTHON_MODULE=$(usex python)
111 + -DOPENVDB_BUILD_UNITTESTS=OFF
112 + -DOPENVDB_ENABLE_3_ABI_COMPATIBLE=$(usex abi3-compat)
113 + -DOPENVDB_ENABLE_RPATH=OFF
114 + -DTBB_LOCATION="${myprefix}"
115 + -DUSE_GLFW3=ON
116 + )
117 +
118 + use python && mycmakeargs+=( -DPYOENVDB_INSTALL_DIRECTORY=${python_get_sitedir} )
119 +
120 + cmake-utils_src_configure
121 +}