public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
Date: Thu,  5 Dec 2024 18:01:47 +0000 (UTC)	[thread overview]
Message-ID: <1733421675.3b744410870c92d5406a9c695ad6d289c50bcbe2.sam@gentoo> (raw)

commit:     3b744410870c92d5406a9c695ad6d289c50bcbe2
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Thu Dec  5 12:30:20 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec  5 18:01:15 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b744410

sci-libs/vtk: 9.3.1 ebuild refactor

Apply gcc-15 fix from 9.3.0-r3
Disable implict git dependency by passing package version
Enable old cmake policies
Do not enable DEBUG_MODULE/DEBUG_MODULE_ALL unless USE=debug
Forbid downloads
Move use minimal block to be in alphabetical order.
Pass VTK flags to VTKm

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/vtk/vtk-9.3.1.ebuild | 100 ++++++++++++++++++++++++++----------------
 1 file changed, 62 insertions(+), 38 deletions(-)

diff --git a/sci-libs/vtk/vtk-9.3.1.ebuild b/sci-libs/vtk/vtk-9.3.1.ebuild
index f26a803b24a4..75a493b306db 100644
--- a/sci-libs/vtk/vtk-9.3.1.ebuild
+++ b/sci-libs/vtk/vtk-9.3.1.ebuild
@@ -155,6 +155,7 @@ PATCHES=(
 	"${FILESDIR}/${PN}-9.3.0-java.patch"
 	"${FILESDIR}/${PN}-9.3.0-opencascade.patch"
 	"${FILESDIR}/${PN}-9.3.0-ThrustPatches.patch"
+	"${FILESDIR}/${PN}-9.3.0-core-octree_node.txx.patch"
 	"${FILESDIR}/${PN}-9.3.0-ThirdParty-gcc15.patch"
 	"${FILESDIR}/${PN}-9.3.0-update-for-cuda-12.6.patch"
 	"${FILESDIR}/${PN}-9.3.1-fix-fmt-11.patch"
@@ -379,9 +380,16 @@ src_prepare() {
 #	VTK_DISPATCH_{AOS,SOA,TYPED}_ARRAYS
 src_configure() {
 	local mycmakeargs=(
+		-DCMAKE_DISABLE_FIND_PACKAGE_Git="yes"
+		-DVTK_GIT_DESCRIBE="v${PV}"
+		-DVTK_VERSION_FULL="${PV}"
+		-DGIT_EXECUTABLE="${T}/notgit"
+
+		-DCMAKE_POLICY_DEFAULT_CMP0167="OLD"
+		-DCMAKE_POLICY_DEFAULT_CMP0174="OLD"
+		-DCMAKE_POLICY_DEFAULT_CMP0177="OLD"
+
 		-DCMAKE_INSTALL_LICENSEDIR="share/${PN}/licenses"
-		-DVTK_DEBUG_MODULE=ON
-		-DVTK_DEBUG_MODULE_ALL=ON
 		-DVTK_IGNORE_CMAKE_CXX11_CHECKS=yes
 
 		-DVTK_ANDROID_BUILD=OFF
@@ -400,7 +408,7 @@ src_configure() {
 		-DVTK_ENABLE_REMOTE_MODULES=OFF
 
 		# disable fetching files during build
-		-DVTK_FORBID_DOWNLOADS=OFF
+		-DVTK_FORBID_DOWNLOADS="yes"
 
 		-DVTK_GROUP_ENABLE_Imaging="$(usex imaging "YES" "NO")"
 		-DVTK_GROUP_ENABLE_Rendering="$(usex rendering "YES" "NO")"
@@ -457,13 +465,12 @@ src_configure() {
 		-DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
 
 		-DVTK_RELOCATABLE_INSTALL=ON
+		-DVTK_UNIFIED_INSTALL_TREE=ON
 
 		-DVTK_SMP_ENABLE_OPENMP="$(usex openmp)"
 		-DVTK_SMP_ENABLE_STDTHREAD="$(usex threads)"
 		-DVTK_SMP_ENABLE_TBB="$(usex tbb)"
 
-		-DVTK_UNIFIED_INSTALL_TREE=ON
-
 		-DVTK_USE_CUDA="$(usex cuda)"
 		# use system libraries where possible
 		-DVTK_USE_EXTERNAL=ON
@@ -479,35 +486,6 @@ src_configure() {
 		-DVTK_WRAP_PYTHON="$(usex python)"
 	)
 
-	if use minimal; then
-		mycmakeargs+=(
-			-DVTK_MODULE_ENABLE_VTK_CommonComputationalGeometry="YES"
-			-DVTK_MODULE_ENABLE_VTK_CommonExecutionModel="YES"
-			-DVTK_MODULE_ENABLE_VTK_CommonMath="YES"
-			-DVTK_MODULE_ENABLE_VTK_CommonMisc="YES"
-			-DVTK_MODULE_ENABLE_VTK_CommonSystem="YES"
-			-DVTK_MODULE_ENABLE_VTK_CommonTransforms="YES"
-
-			-DVTK_MODULE_ENABLE_VTK_FiltersCore="YES"
-			-DVTK_MODULE_ENABLE_VTK_FiltersExtraction="YES"
-			-DVTK_MODULE_ENABLE_VTK_FiltersGeneral="YES"
-			-DVTK_MODULE_ENABLE_VTK_FiltersGeneric="YES"
-			-DVTK_MODULE_ENABLE_VTK_FiltersGeometry="YES"
-			-DVTK_MODULE_ENABLE_VTK_FiltersHybrid="NO"
-			-DVTK_MODULE_ENABLE_VTK_FiltersHyperTree="YES"
-			-DVTK_MODULE_ENABLE_VTK_FiltersSources="YES"
-			-DVTK_MODULE_ENABLE_VTK_FiltersStatistics="YES"
-			-DVTK_MODULE_ENABLE_VTK_FiltersVerdict="YES"
-
-			-DVTK_MODULE_ENABLE_VTK_IOCore="YES"
-			-DVTK_MODULE_ENABLE_VTK_IOGeometry="NO"
-			-DVTK_MODULE_ENABLE_VTK_IOLegacy="YES"
-
-			-DVTK_MODULE_ENABLE_VTK_ParallelCore="YES"
-			-DVTK_MODULE_ENABLE_VTK_ParallelDIY="YES"
-		)
-	fi
-
 	if use all-modules; then
 		mycmakeargs+=(
 			# no package in ::gentoo
@@ -581,6 +559,9 @@ src_configure() {
 		if use rendering; then
 			mycmakeargs+=( -DVTK_OPENGL_ENABLE_STREAM_ANNOTATIONS=ON )
 		fi
+	else
+		: "${CMAKE_BUILD_TYPE:="Release"}"
+		export CMAKE_BUILD_TYPE
 	fi
 
 	if use examples || use test; then
@@ -625,7 +606,6 @@ src_configure() {
 	fi
 
 	if use java; then
-		export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
 		mycmakeargs+=(
 			-DCMAKE_INSTALL_JARDIR="share/${PN}"
 			-DVTK_ENABLE_WRAPPING=ON
@@ -635,6 +615,35 @@ src_configure() {
 		)
 	fi
 
+	if use minimal; then
+		mycmakeargs+=(
+			-DVTK_MODULE_ENABLE_VTK_CommonComputationalGeometry="YES"
+			-DVTK_MODULE_ENABLE_VTK_CommonExecutionModel="YES"
+			-DVTK_MODULE_ENABLE_VTK_CommonMath="YES"
+			-DVTK_MODULE_ENABLE_VTK_CommonMisc="YES"
+			-DVTK_MODULE_ENABLE_VTK_CommonSystem="YES"
+			-DVTK_MODULE_ENABLE_VTK_CommonTransforms="YES"
+
+			-DVTK_MODULE_ENABLE_VTK_FiltersCore="YES"
+			-DVTK_MODULE_ENABLE_VTK_FiltersExtraction="YES"
+			-DVTK_MODULE_ENABLE_VTK_FiltersGeneral="YES"
+			-DVTK_MODULE_ENABLE_VTK_FiltersGeneric="YES"
+			-DVTK_MODULE_ENABLE_VTK_FiltersGeometry="YES"
+			-DVTK_MODULE_ENABLE_VTK_FiltersHybrid="NO"
+			-DVTK_MODULE_ENABLE_VTK_FiltersHyperTree="YES"
+			-DVTK_MODULE_ENABLE_VTK_FiltersSources="YES"
+			-DVTK_MODULE_ENABLE_VTK_FiltersStatistics="YES"
+			-DVTK_MODULE_ENABLE_VTK_FiltersVerdict="YES"
+
+			-DVTK_MODULE_ENABLE_VTK_IOCore="YES"
+			-DVTK_MODULE_ENABLE_VTK_IOGeometry="NO"
+			-DVTK_MODULE_ENABLE_VTK_IOLegacy="YES"
+
+			-DVTK_MODULE_ENABLE_VTK_ParallelCore="YES"
+			-DVTK_MODULE_ENABLE_VTK_ParallelDIY="YES"
+		)
+	fi
+
 	if use mpi; then
 		mycmakeargs+=(
 			-DVTK_GROUP_ENABLE_MPI="YES"
@@ -794,9 +803,24 @@ src_configure() {
 			-DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmCore="YES"
 			-DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmDataModel="YES"
 			-DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmFilters="YES"
-
-			-DVTKm_NO_INSTALL_README_LICENSE=ON # bug #793221
-			-DVTKm_Vectorization=native
+			-DVTKm_ENABLE_CPACK="no" # "Enable CPack packaging of VTKm" ON
+			-DVTKm_ENABLE_CUDA="$(usex cuda)" # "Enable Cuda support" OFF
+			-DVTKm_ENABLE_DOCUMENTATION="$(usex doc)" # "Build Doxygen documentation" OFF
+			-DVTKm_ENABLE_EXAMPLES="$(usex examples)" # "Build examples" OFF
+			-DVTKm_ENABLE_HDF5_IO="yes" # "Enable HDF5 support" OFF
+			-DVTKm_ENABLE_LOGGING="$(usex logging)" # "Enable VTKm Logging" ON
+			-DVTKm_ENABLE_MPI="$(usex mpi)" # "Enable MPI support" OFF
+			-DVTKm_ENABLE_OPENMP="$(usex openmp)" # "Enable OpenMP support" OFF
+			-DVTKm_ENABLE_RENDERING="$(usex rendering)" # "Enable rendering library" ON
+			-DVTKm_ENABLE_TBB="$(usex tbb)" # "Enable TBB support" OFF
+			-DVTKm_ENABLE_TESTING="$(usex test)" # "Enable VTKm Testing" ON
+			-DVTKm_ENABLE_TUTORIALS="no" # "Build tutorials" OFF
+			-DVTKm_NO_ASSERT_CUDA="yes" # "Disable assertions for CUDA devices." ON
+			-DVTKm_NO_ASSERT_HIP="yes" # "Disable assertions for HIP devices." ON
+			-DVTKm_NO_ASSERT="no" # "Disable assertions in debugging builds." OFF
+			-DVTKm_NO_INSTALL_README_LICENSE="ON" # bug #793221 # "disable the installation of README and LICENSE files" OFF
+			-DVTKm_SKIP_LIBRARY_VERSIONS="no" # "Skip versioning VTK-m libraries" OFF
+			-DVTKm_Vectorization="none" # only sets compiler flags
 		)
 	fi
 


             reply	other threads:[~2024-12-05 18:02 UTC|newest]

Thread overview: 105+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-05 18:01 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-07 23:41 [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/ Sam James
2025-01-07 23:40 Sam James
2025-01-05 20:35 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-09-07  9:15 Sam James
2024-09-06 20:36 Eli Schwartz
2024-09-04 11:45 Sebastian Pipping
2024-06-01 17:23 Andrew Ammerlaan
2024-05-07 13:12 Andrew Ammerlaan
2024-05-07 12:52 Andrew Ammerlaan
2024-04-12 12:40 Andrew Ammerlaan
2024-04-11  9:54 Andrew Ammerlaan
2024-04-06  6:49 Arthur Zamarin
2024-03-16 16:19 Arthur Zamarin
2023-12-01  9:58 Andrew Ammerlaan
2023-11-16 15:11 Florian Schmaus
2023-06-28 21:11 Sam James
2023-06-28 21:11 Sam James
2023-03-04 13:51 Arthur Zamarin
2023-01-23  9:36 Andrew Ammerlaan
2023-01-23  9:36 Andrew Ammerlaan
2022-12-16  1:40 Sam James
2022-10-12 23:09 Sam James
2022-10-04 14:58 Joonas Niilola
2022-08-23 12:04 Andrew Ammerlaan
2022-06-26  8:49 Sam James
2022-06-26  7:11 Sam James
2022-05-19 12:12 Joonas Niilola
2022-05-18 16:58 Andrew Ammerlaan
2022-05-15 17:11 Andrew Ammerlaan
2022-04-06 17:30 Piotr Karbowski
2022-03-06  0:00 Sam James
2022-01-28  7:53 Sam James
2021-12-14  8:36 Joonas Niilola
2021-12-02  1:25 Sam James
2021-10-29 22:23 Sam James
2021-10-27 15:09 Sam James
2021-09-05  9:54 Andrew Ammerlaan
2021-08-27 20:23 Andrew Ammerlaan
2021-08-27 20:23 Andrew Ammerlaan
2021-08-02 20:52 Ionen Wolkens
2021-07-17 18:18 David Seifert
2021-07-07 20:05 Ionen Wolkens
2021-06-25 13:05 Andrew Ammerlaan
2021-06-25 13:05 Andrew Ammerlaan
2021-06-15 14:42 Sam James
2021-06-15 14:42 Sam James
2021-06-15 14:42 Sam James
2021-06-15 14:42 Sam James
2021-06-10  3:38 Sam James
2021-06-02  1:24 Sam James
2021-03-26  0:57 Michael Orlitzky
2021-02-22 18:57 Sam James
2020-12-27  0:48 Andreas Sturmlechner
2020-12-27  0:17 Andreas Sturmlechner
2020-12-26 23:46 Andreas Sturmlechner
2020-07-16  1:06 Sam James
2020-06-06 10:04 Andreas Sturmlechner
2020-06-06  9:42 Andreas Sturmlechner
2020-06-06  9:42 Andreas Sturmlechner
2020-06-06  9:42 Andreas Sturmlechner
2020-06-06  9:42 Andreas Sturmlechner
2020-06-05 21:53 Andreas K. Hüttel
2020-06-05 21:15 Andreas K. Hüttel
2020-05-12 15:34 Matthias Maier
2020-05-12  5:58 Matthias Maier
2020-05-01 17:58 Matthias Maier
2020-05-01 16:48 Matthias Maier
2020-05-01 16:48 Matthias Maier
2020-04-26 11:00 David Seifert
2020-04-05 19:47 Andreas Sturmlechner
2020-04-05 19:47 Andreas Sturmlechner
2020-02-26 16:56 Andreas Sturmlechner
2020-02-09 16:36 Michał Górny
2020-02-04 13:10 Michał Górny
2019-09-14 16:33 Richard Yao
2018-10-27 14:09 Pacho Ramos
2018-10-13 10:07 Mikle Kolyada
2018-09-09 19:10 Amy Liffey
2018-02-28 18:48 Mart Raudsepp
2018-01-30 18:44 Jonathan Scruggs
2018-01-24 19:53 David Seifert
2017-12-22 10:55 Michael Weber
2017-11-17 18:47 David Seifert
2017-11-06  1:58 Andreas Sturmlechner
2017-11-06  1:58 Andreas Sturmlechner
2017-11-06  1:58 Andreas Sturmlechner
2017-07-04 15:49 Agostino Sarubbo
2017-07-04 10:17 Agostino Sarubbo
2017-05-06 22:20 David Seifert
2017-01-26 20:12 David Seifert
2016-12-20 19:16 Tobias Klausmann
2016-11-06 20:15 David Seifert
2016-11-06 20:15 David Seifert
2016-09-07 18:00 Patrice Clement
2016-08-21 17:41 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1733421675.3b744410870c92d5406a9c695ad6d289c50bcbe2.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox