commit:     3620f00fdd19e4eadd7433a84d9b4185ff2ac8a3
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Dec  8 14:38:42 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Jan 11 17:57:18 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3620f00f

media-libs/Field3D: add 1.7.3_p20230509

This repository has been archived by the owner on Jul 15, 2023. It is now 
read-only.
Snapshot of last commit before archiving.

Closes: https://bugs.gentoo.org/912312
Closes: https://bugs.gentoo.org/808703
Closes: https://bugs.gentoo.org/717504
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34221
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-libs/Field3D/Field3D-1.7.3_p20230509.ebuild  | 67 ++++++++++++++++++++++
 media-libs/Field3D/Manifest                        |  1 +
 ...-1.7.2-boost-1.83-timer-header-deprecated.patch | 35 +++++++++++
 3 files changed, 103 insertions(+)

diff --git a/media-libs/Field3D/Field3D-1.7.3_p20230509.ebuild 
b/media-libs/Field3D/Field3D-1.7.3_p20230509.ebuild
new file mode 100644
index 000000000000..b21dc0fb64b2
--- /dev/null
+++ b/media-libs/Field3D/Field3D-1.7.3_p20230509.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="A library for storing voxel data"
+HOMEPAGE="http://opensource.imageworks.com/?p=field3d";
+SRC_COMMIT="b0ff0cd67893a4cbfa322676eb3eef10100d904d"
+SRC_URI="https://github.com/imageworks/Field3D/archive/${SRC_COMMIT}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="doc mpi test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/boost:=
+       >=dev-libs/imath-3.1.4-r2:=
+       >=media-libs/openexr-3:0=
+       sci-libs/hdf5:=
+       doc? ( app-doc/doxygen )
+       mpi? ( virtual/mpi )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-1.7.2-openexr-3-imath.patch"
+       "${FILESDIR}/${PN}-1.7.2-boost-1.83-timer-header-deprecated.patch"
+)
+
+S="${WORKDIR}/${PN}-${SRC_COMMIT}"
+
+src_prepare() {
+       sed -e "s#auto_ptr#unique_ptr#g" -i include/*.h || die
+       sed \
+               -e "s#DESTINATION \${CMAKE_INSTALL_PREFIX}#DESTINATION 
\${CMAKE_INSTALL_DOCDIR}#" \
+               -e "s#CMAKE_MINIMUM_REQUIRED( VERSION 2.8 
)#CMAKE_MINIMUM_REQUIRED( VERSION 3.5 )#" \
+               -i CMakeLists.txt || die
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       # Needed for now ("fix" compatibility with >=sci-libs/hdf5-1.12)
+       # bug #808731
+       append-cppflags -DH5_USE_110_API
+
+       local mycmakeargs=(
+               -DCMAKE_CXX_STANDARD=11
+
+               -DINSTALL_DOCS="$(usex doc)" # Docs are not finished yet.
+               -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen="$(usex !doc)"
+
+               "$(cmake_use_find_package mpi MPI)"
+       )
+
+       cmake_src_configure
+}
+
+src_test() {
+       cd "${BUILD_DIR}" || die
+       ./unitTest || die
+}

diff --git a/media-libs/Field3D/Manifest b/media-libs/Field3D/Manifest
index dbf8d221f9c2..6b3139c3a094 100644
--- a/media-libs/Field3D/Manifest
+++ b/media-libs/Field3D/Manifest
@@ -1 +1,2 @@
 DIST Field3D-1.7.2.tar.gz 502481 BLAKE2B 
8d5fbac915b52b36e66250f8fcd2beb5fff9d2446696ad1829e3edf05c9810b5d54928c6ab4f5aa99c1338da24cea446134434a59aa1d053f3da3500c2800f59
 SHA512 
e4ea51310105980f759dce48830db8ae3592ce32a02b246214d8aed9df7a7f5c500314f2daf92196b7a76d648f2909b18112df4c5c3c8949c0676d710dfbf1f2
+DIST Field3D-1.7.3_p20230509.tar.gz 503942 BLAKE2B 
30926a3229306b444a0267ff22c05d51bd3cd9804f9685608813bee5a738e498286d1e7b35c32e48214e949e5aa91a1604c9b92d5ab4dc3c71d3bb85bd5f5920
 SHA512 
fcc718c0b1629af36f5a403cc4a453c343d97d464fe5b1e7b6a6ac2b36a38e245f785735c91f7bc9abceffc522d5a20855310f04e006f83f8660253de6e4cdda

diff --git 
a/media-libs/Field3D/files/Field3D-1.7.2-boost-1.83-timer-header-deprecated.patch
 
b/media-libs/Field3D/files/Field3D-1.7.2-boost-1.83-timer-header-deprecated.patch
new file mode 100644
index 000000000000..e583dfcb4a3f
--- /dev/null
+++ 
b/media-libs/Field3D/files/Field3D-1.7.2-boost-1.83-timer-header-deprecated.patch
@@ -0,0 +1,35 @@
+From: https://bugs.gentoo.org/912312#c10
+From: Attila Tóth <[email protected]>
+--- a/apps/sample_code/sparse_field_io/main.cpp        2023-08-24 
11:30:05.951289118 +0200
++++ b/apps/sample_code/sparse_field_io/main.cpp        2023-08-24 
11:30:32.491719405 +0200
+@@ -38,7 +38,7 @@
+ #include <vector>
+ 
+ #include <boost/lexical_cast.hpp>
+-#include <boost/timer.hpp>
++#include <boost/timer/timer.hpp>
+ 
+ #include <Field3D/SparseField.h>
+ #include <Field3D/SparseFile.h>
+--- a/test/misc_tests/access_speed/main.cpp    2023-08-24 11:30:05.963289314 
+0200
++++ b/test/misc_tests/access_speed/main.cpp    2023-08-24 11:30:42.903885904 
+0200
+@@ -38,7 +38,7 @@
+ #include <vector>
+ 
+ #include <boost/lexical_cast.hpp>
+-#include <boost/timer.hpp>
++#include <boost/timer/timer.hpp>
+ 
+ #include <Field3D/DenseField.h>
+ #include <Field3D/SparseField.h>
+--- a/test/misc_tests/threading_and_virtual_calls/main.cpp     2023-08-24 
11:30:05.963289314 +0200
++++ b/test/misc_tests/threading_and_virtual_calls/main.cpp     2023-08-24 
11:30:51.656025852 +0200
+@@ -38,7 +38,7 @@
+ #include <vector>
+ 
+ #include <boost/lexical_cast.hpp>
+-#include <boost/timer.hpp>
++#include <boost/timer/timer.hpp>
+ #include <boost/thread/thread.hpp>
+ #include <boost/date_time/posix_time/posix_time.hpp>
+ 

Reply via email to