From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8E3DB138334 for ; Sat, 4 Aug 2018 18:22:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BDA3E0802; Sat, 4 Aug 2018 18:22:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4E91BE0802 for ; Sat, 4 Aug 2018 18:22:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4D94D335C9F for ; Sat, 4 Aug 2018 18:22:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D9F30379 for ; Sat, 4 Aug 2018 18:21:59 +0000 (UTC) From: "Jonathan Scruggs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jonathan Scruggs" Message-ID: <1533406897.74320c01dacb7c27d6901caac7ef67e47f0114e7.dracwyrm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/openvdb/, media-gfx/openvdb/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/openvdb/files/openvdb-4.0.2-findboost-fix.patch media-gfx/openvdb/openvdb-4.0.2-r1.ebuild X-VCS-Directories: media-gfx/openvdb/files/ media-gfx/openvdb/ X-VCS-Committer: dracwyrm X-VCS-Committer-Name: Jonathan Scruggs X-VCS-Revision: 74320c01dacb7c27d6901caac7ef67e47f0114e7 X-VCS-Branch: master Date: Sat, 4 Aug 2018 18:21:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ee3721b7-d6b9-4a47-b86e-922b4b78f0e0 X-Archives-Hash: 32ff833e62318a1f0437e3b22f14c4a9 commit: 74320c01dacb7c27d6901caac7ef67e47f0114e7 Author: Jonathan Scruggs gmail com> AuthorDate: Sat Aug 4 17:09:39 2018 +0000 Commit: Jonathan Scruggs gentoo org> CommitDate: Sat Aug 4 18:21:37 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74320c01 media-gfx/openvdb: revision bump to fix FindBoost Add patch from Dennis Schridde gmx.net> to fix finding boost with CMake 3.11 Closes: https://bugs.gentoo.org/652266 Closes: https://github.com/gentoo/gentoo/pull/9443 .../files/openvdb-4.0.2-findboost-fix.patch | 11 +++ media-gfx/openvdb/openvdb-4.0.2-r1.ebuild | 79 ++++++++++++++++++++++ 2 files changed, 90 insertions(+) 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 new file mode 100644 index 00000000000..12245be3e46 --- /dev/null +++ b/media-gfx/openvdb/files/openvdb-4.0.2-findboost-fix.patch @@ -0,0 +1,11 @@ +--- openvdb-4.0.2/openvdb/python/CMakeLists.txt.orig 2018-07-12 20:29:50.745624805 +0200 ++++ openvdb-4.0.2/openvdb/python/CMakeLists.txt 2018-07-12 20:30:10.452305180 +0200 +@@ -3,7 +3,7 @@ + + FIND_PACKAGE ( PythonInterp REQUIRED ) + FIND_PACKAGE ( PythonLibs REQUIRED ) +-FIND_PACKAGE ( Boost ${MINIMUM_BOOST_VERSION} REQUIRED COMPONENTS python ) ++FIND_PACKAGE ( Boost ${MINIMUM_BOOST_VERSION} REQUIRED COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} ) + + + IF ( NOT OPENVDB_BUILD_CORE ) diff --git a/media-gfx/openvdb/openvdb-4.0.2-r1.ebuild b/media-gfx/openvdb/openvdb-4.0.2-r1.ebuild new file mode 100644 index 00000000000..d23f5b3c717 --- /dev/null +++ b/media-gfx/openvdb/openvdb-4.0.2-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit cmake-utils flag-o-matic python-single-r1 + +DESCRIPTION="Libs for the efficient manipulation of volumetric data" +HOMEPAGE="http://www.openvdb.org" +SRC_URI="https://github.com/dreamworksanimation/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/dracwyrm/gentoo-patches/raw/master/${PN}/${P}-patchset-01.tar.xz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+abi3-compat doc python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=dev-libs/boost-1.62:=[python?,${PYTHON_USEDEP}] + >=dev-libs/c-blosc-1.5.0 + dev-libs/jemalloc + dev-libs/log4cplus + media-libs/glfw:= + media-libs/openexr:= + sys-libs/zlib:= + x11-libs/libXcursor + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrandr + python? ( + ${PYTHON_DEPS} + dev-python/numpy[${PYTHON_USEDEP}] + ) +" + +DEPEND="${RDEPEND} + dev-cpp/tbb + virtual/pkgconfig + doc? ( app-doc/doxygen[latex] ) +" + +PATCHES=( + "${WORKDIR}/0001-Change-hardcoded-paths-to-GNUInstallDirs-variables.patch" + "${WORKDIR}/0002-Use-PkgConfig-to-find-IlmBase-and-OpenEXR.patch" + "${WORKDIR}/0003-Boost-1.65-NumPy-support.patch" + "${FILESDIR}/${P}-findboost-fix.patch" +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local myprefix="${EPREFIX}/usr/" + + # To stay in sync with Boost + append-cxxflags -std=c++14 + + local mycmakeargs=( + -DBLOSC_LOCATION="${myprefix}" + -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" + -DGLEW_LOCATION="${myprefix}" + -DGLFW3_LOCATION="${myprefix}" + -DOPENVDB_BUILD_DOCS=$(usex doc) + -DOPENVDB_BUILD_PYTHON_MODULE=$(usex python) + -DOPENVDB_BUILD_UNITTESTS=OFF + -DOPENVDB_ENABLE_3_ABI_COMPATIBLE=$(usex abi3-compat) + -DOPENVDB_ENABLE_RPATH=OFF + -DTBB_LOCATION="${myprefix}" + -DUSE_GLFW3=ON + ) + + use python && mycmakeargs+=( -DPYOENVDB_INSTALL_DIRECTORY=${python_get_sitedir} ) + + cmake-utils_src_configure +}