diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-15 06:41:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-15 06:41:45 +0000 |
commit | 8e26aeaca2a19592a9eea3917f3139bfde8641f0 (patch) | |
tree | 3ddb856d2a1de70a5caf3b8f7737425b7f8b0796 /sci-libs | |
parent | 6e1fc32629c46e29012a7e22b07085307d65ac96 (diff) |
gentoo auto-resync : 15:01:2025 - 06:41:45
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/Manifest.gz | bin | 43345 -> 43351 bytes | |||
-rw-r--r-- | sci-libs/ondselsolver/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/ondselsolver/files/ondselsolver-1.0.1-include-cstdint-gcc15.patch | 70 | ||||
-rw-r--r-- | sci-libs/ondselsolver/files/ondselsolver-1.0.1-properly-demangle-typenames.patch | 173 | ||||
-rw-r--r-- | sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127.ebuild | 35 | ||||
-rw-r--r-- | sci-libs/qd/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/qd/qd-2.3.23.ebuild | 41 | ||||
-rw-r--r-- | sci-libs/szip/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/szip/szip-2.1.1.ebuild | 4 | ||||
-rw-r--r-- | sci-libs/vtk/Manifest | 13 | ||||
-rw-r--r-- | sci-libs/vtk/files/vtk-9.3.0-fix-Java-error-with-integer-enum-overloads.patch | 42 | ||||
-rw-r--r-- | sci-libs/vtk/files/vtk-9.3.0-pdal-2.6.0.patch | 65 | ||||
-rw-r--r-- | sci-libs/vtk/files/vtk-9.3.0-r1-expat-2.6.0.patch | 72 | ||||
-rw-r--r-- | sci-libs/vtk/files/vtk-9.3.0-too-many-initializer-values.patch | 25 | ||||
-rw-r--r-- | sci-libs/vtk/metadata.xml | 1 | ||||
-rw-r--r-- | sci-libs/vtk/vtk-9.3.0-r3.ebuild | 919 |
16 files changed, 286 insertions, 1182 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz Binary files differindex 6ad1c201c1d2..0c7bec7500fb 100644 --- a/sci-libs/Manifest.gz +++ b/sci-libs/Manifest.gz diff --git a/sci-libs/ondselsolver/Manifest b/sci-libs/ondselsolver/Manifest index 0b62b60bd257..4548bc9bde14 100644 --- a/sci-libs/ondselsolver/Manifest +++ b/sci-libs/ondselsolver/Manifest @@ -1,4 +1,8 @@ +AUX ondselsolver-1.0.1-include-cstdint-gcc15.patch 1841 BLAKE2B 03215002d913a23f64e051a44f97008ac1f4c633427608afc60d7dea878e3ad1addc64880c1b000b2525d58840f617fd7cfd7926cc8a854d6a94f5dca948f244 SHA512 26120839480f726c87a3bb6e5e5820bdcbc14aed8e1e559c06ef889fbc58fc68a54a69223cff28540415d6c89bb30ad854da88d554f536c33c23280bc699bc82 +AUX ondselsolver-1.0.1-properly-demangle-typenames.patch 4470 BLAKE2B 40eeab404f18b184fcc07aa31212e048c431abbbefbc79a02e5baef9049041c26b3897dc7de1f6f9467738bd9ddf4953fd04976df5b681e80b253eb7edc4cb4a SHA512 be579378d012a428affbaab56608923933efce08066eb44bb2bf12fc6c78eb48f624f012928d08bf400efb9766846dd64296cc9c64f1a224f86471a51590ab29 AUX ondselsolver-1.0.1_p20241024-system-gtest.patch 690 BLAKE2B 2f79542081f864365dc985372c2512615fc60d248e7249e6f66e75ece093c66a257a1fb96174cb827b7919a64d85868cff180d0c5028f15364356a77870c0700 SHA512 f8c72c000664cd896ced30f1e5278e05a37534a5f614a87c42c6337b6eac321ec43615893d976754bf8cabd178d95492a0cadb2c0dd151e627f64e65702e37ff DIST ondselsolver-1.0.1_p20241024.tar.gz 4668075 BLAKE2B 82e13168b2f6d988e411613584d9bb943afd9df73716a467d2681658d530e71173abcb31e432075dce8ebc1f0276ecb2b7b837bf057fb68f654c972e2d77f5b5 SHA512 918542fca4bfcb952d6d9500a0f3721549810dd2cde9adfb352d9301e0e1bf0fe1100a301316f15a6dcd18e36d371c58ba4a41b8f8e0878a77db4cbf054a095a +DIST ondselsolver-1.0.1_p20241127.tar.gz 4669048 BLAKE2B 6f6c4f9468b2474890b05ca394947aa91bc1780e1ef922bba40144a30c247db32d7a5de469ed27e426209013b07a137522bad9c220d9e1862f7e946696974b0b SHA512 3504a6ab379f2d9d943a1a6da8f79abffebd7fe45fd3258f0bfeb0a789d73a2b68714c10e77e48987514c8acb23800412c10daa0046ed82dab4a2aab569851ff EBUILD ondselsolver-1.0.1_p20241024.ebuild 927 BLAKE2B 1a93522016f5835798f3ae6f5e1b4d6e683bad686660e40b2266659e6eab8558e24c0bd50a6d07bf3bb708b19a68df3a9d62ef5287d8a98e7c1f19eba9b1dbb6 SHA512 eafc06f0a67ec6f61c01abb1e6a1b9c1ff747fb0acbf87803f49470200718d71983275f6e907cbaf0b754cf20c22900ce0f636d6253609756ec05b7c4b8a2379 +EBUILD ondselsolver-1.0.1_p20241127.ebuild 802 BLAKE2B 70432e556014b09432f2a10ce81ae6ecff5f533fb135a729e6e376258d4342dd093d50682d5184afd0b0b63ad03c361ebb823b345d232a245a0eb6e931c2dc68 SHA512 c3280277ce85bb05f7ac0544fe53fa07ca455d38e8c0c9aedc62914dfe3141a890bee5f7341cacde6f7b0885bdcb08255f65ccf212c89a5137af12787a0bdef3 MISC metadata.xml 482 BLAKE2B fdc93965db23730a66b0c65b574f5aa4cf61ddf9b245a5d6a5860b09b2b1c6e3306004e54c0aa238fd9c301e2c6b8842d37eabb5de43dacc96c40afd723eeef8 SHA512 9a83ee5dd0ba8769904e5516b5968c48ee9f59bcbbf615b91451a8c0e59ccf8871f7921691b62d3505b4c7f96c10228c0f5bff41158ddc432f73476330ba386d diff --git a/sci-libs/ondselsolver/files/ondselsolver-1.0.1-include-cstdint-gcc15.patch b/sci-libs/ondselsolver/files/ondselsolver-1.0.1-include-cstdint-gcc15.patch new file mode 100644 index 000000000000..9068c1cf2fad --- /dev/null +++ b/sci-libs/ondselsolver/files/ondselsolver-1.0.1-include-cstdint-gcc15.patch @@ -0,0 +1,70 @@ +From 432aa45ca37ecc3e15a8fb4a62ebf85b0a189775 Mon Sep 17 00:00:00 2001 +From: Paul Zander <negril.nx+gentoo@gmail.com> +Date: Sat, 11 Jan 2025 00:14:18 +0100 +Subject: [PATCH] include cstdint [gcc15] + +Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> + +diff --git a/OndselSolver/Constraint.h b/OndselSolver/Constraint.h +index 119b627..a7409a8 100644 +--- a/OndselSolver/Constraint.h ++++ b/OndselSolver/Constraint.h +@@ -8,6 +8,7 @@ + + #pragma once + ++#include <cstdint> + #include <memory> + + #include "enum.h" +diff --git a/OndselSolver/DirectionCosineConstraintIqcJqc.h b/OndselSolver/DirectionCosineConstraintIqcJqc.h +index 5d68fcd..c81a41f 100644 +--- a/OndselSolver/DirectionCosineConstraintIqcJqc.h ++++ b/OndselSolver/DirectionCosineConstraintIqcJqc.h +@@ -9,6 +9,7 @@ + #pragma once + + #include "DirectionCosineConstraintIqcJc.h" ++#include <cstdint> + + namespace MbD { + class DirectionCosineConstraintIqcJqc : public DirectionCosineConstraintIqcJc +diff --git a/OndselSolver/DispCompIecJecO.h b/OndselSolver/DispCompIecJecO.h +index 74a1ca4..da3243a 100644 +--- a/OndselSolver/DispCompIecJecO.h ++++ b/OndselSolver/DispCompIecJecO.h +@@ -9,6 +9,7 @@ + #pragma once + + #include "KinematicIeJe.h" ++#include <cstdint> + + namespace MbD { + class DispCompIecJecO : public KinematicIeJe +diff --git a/OndselSolver/FullMatrix.h b/OndselSolver/FullMatrix.h +index 1013791..90e54aa 100644 +--- a/OndselSolver/FullMatrix.h ++++ b/OndselSolver/FullMatrix.h +@@ -9,6 +9,7 @@ + #pragma once + + #include <cmath> ++#include <cstdint> + #include <memory> + + #include "RowTypeMatrix.h" +diff --git a/OndselSolver/NewtonRaphson.h b/OndselSolver/NewtonRaphson.h +index 9d9fb19..bf0c517 100644 +--- a/OndselSolver/NewtonRaphson.h ++++ b/OndselSolver/NewtonRaphson.h +@@ -8,6 +8,7 @@ + + #pragma once + ++#include <cstdint> + #include <memory> + #include <vector> + +-- +2.47.1 + diff --git a/sci-libs/ondselsolver/files/ondselsolver-1.0.1-properly-demangle-typenames.patch b/sci-libs/ondselsolver/files/ondselsolver-1.0.1-properly-demangle-typenames.patch new file mode 100644 index 000000000000..20c6533d73a9 --- /dev/null +++ b/sci-libs/ondselsolver/files/ondselsolver-1.0.1-properly-demangle-typenames.patch @@ -0,0 +1,173 @@ +From 71c1f42d85ee1819741786255dc8876047398e8e Mon Sep 17 00:00:00 2001 +From: Paul Zander <negril.nx+gentoo@gmail.com> +Date: Sun, 12 Jan 2025 19:22:48 +0100 +Subject: [PATCH] properly demangle typenames + +Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> + +diff --git a/OndselSolver/ASMTItem.cpp b/OndselSolver/ASMTItem.cpp +index a18e7c9..9d5383a 100644 +--- a/OndselSolver/ASMTItem.cpp ++++ b/OndselSolver/ASMTItem.cpp +@@ -12,6 +12,7 @@ + #include "ASMTAssembly.h" + #include "Constant.h" + #include <algorithm> ++#include "Demangle.h" + + using namespace MbD; + +@@ -41,9 +42,7 @@ void MbD::ASMTItem::noop() + + std::string MbD::ASMTItem::classname() + { +- std::string str = typeid(*this).name(); +- auto answer = str.substr(11, str.size() - 11); +- return answer; ++ return demangle(typeid(*this).name()); + } + + void MbD::ASMTItem::setName(const std::string& str) +diff --git a/OndselSolver/ASMTJoint.cpp b/OndselSolver/ASMTJoint.cpp +index 40edd52..bb710e3 100644 +--- a/OndselSolver/ASMTJoint.cpp ++++ b/OndselSolver/ASMTJoint.cpp +@@ -9,6 +9,7 @@ + + #include "ASMTJoint.h" + #include "Joint.h" ++#include "Demangle.h" + + using namespace MbD; + +@@ -47,9 +48,7 @@ void MbD::ASMTJoint::storeOnLevel(std::ofstream& os, size_t level) + + void MbD::ASMTJoint::storeOnTimeSeries(std::ofstream& os) + { +- std::string label = typeid(*this).name(); +- label = label.substr(15, label.size() - 15); +- os << label << "Series\t" << fullName("") << std::endl; ++ os << demangle(typeid(*this).name()) << "Series\t" << fullName("") << std::endl; + ASMTItemIJ::storeOnTimeSeries(os); + } + +diff --git a/OndselSolver/Array.h b/OndselSolver/Array.h +index 636e9a5..e270795 100644 +--- a/OndselSolver/Array.h ++++ b/OndselSolver/Array.h +@@ -16,6 +16,7 @@ + #include "Numeric.h" + #include <limits> + ++#include "Demangle.h" + //#include "Symbolic.h" + + namespace MbD { +@@ -51,10 +52,7 @@ namespace MbD { + void atitimes(size_t i, double factor); + + virtual std::ostream& printOn(std::ostream& s) const { +- std::string str = typeid(*this).name(); +- auto classname = str.substr(11, str.size() - 11); +- s << classname << std::endl; +- return s; ++ return s << demangle(typeid(*this).name()) << std::endl; + } + friend std::ostream& operator<<(std::ostream& s, const Array& array) + { +diff --git a/OndselSolver/Demangle.h b/OndselSolver/Demangle.h +new file mode 100644 +index 0000000..810936d +--- /dev/null ++++ b/OndselSolver/Demangle.h +@@ -0,0 +1,39 @@ ++#ifndef DEMANGLE_H ++#define DEMANGLE_H 1 ++#include <string> ++ ++#ifdef _WIN32 ++#include <typeinfo> ++namespace { ++std::string demangle(const char* mangled_name) noexcept { ++ return mangled_name; ++} ++} ++#else // __linux__ ++#include <cxxabi.h> ++namespace { ++std::string demangle(const char* mangled_name) noexcept { ++ int error = 0; ++ char *demang_name = abi::__cxa_demangle(mangled_name, 0, 0, &error); ++ ++ switch (error) { ++ case 0: ++ break; ++ case -1: ++ return "memory allocation failed"; ++ case -2: ++ return "not a valid mangled name"; ++ case -3: ++ return "invalid arguments"; ++ default: ++ return "__cxa_demangle failed"; ++ } ++ ++ std::string name(demang_name); ++ free(demang_name); ++ ++ return name.substr(name.find_last_of("::") + 1); ++} ++} ++#endif // __linux__ ++#endif +diff --git a/OndselSolver/Item.cpp b/OndselSolver/Item.cpp +index 4435d5d..120cd3c 100644 +--- a/OndselSolver/Item.cpp ++++ b/OndselSolver/Item.cpp +@@ -15,6 +15,7 @@ + #include "Item.h" + #include "System.h" + #include "Symbolic.h" ++#include "Demangle.h" + + using namespace MbD; + +@@ -44,10 +45,7 @@ void Item::initialize() + + std::ostream& Item::printOn(std::ostream& s) const + { +- std::string str = typeid(*this).name(); +- auto classname = str.substr(11, str.size() - 11); +- s << classname << std::endl; +- return s; ++ return s << demangle(typeid(*this).name()) << std::endl; + } + + void Item::initializeLocally() +diff --git a/OndselSolver/Symbolic.cpp b/OndselSolver/Symbolic.cpp +index 75bcbb6..4961964 100644 +--- a/OndselSolver/Symbolic.cpp ++++ b/OndselSolver/Symbolic.cpp +@@ -15,6 +15,7 @@ + #include "Product.h" + #include "Sum.h" + #include "Power.h" ++#include "Demangle.h" + + using namespace MbD; + +@@ -160,10 +161,7 @@ bool Symbolic::isConstant() + + std::ostream& Symbolic::printOn(std::ostream& s) const + { +- std::string str = typeid(*this).name(); +- auto classname = str.substr(11, str.size() - 11); +- s << classname; +- return s; ++ return s << demangle(typeid(*this).name()); + } + + std::shared_ptr<std::vector<Symsptr>> Symbolic::getTerms() +-- +2.48.0 + diff --git a/sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127.ebuild b/sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127.ebuild new file mode 100644 index 000000000000..da2e1dccd90b --- /dev/null +++ b/sci-libs/ondselsolver/ondselsolver-1.0.1_p20241127.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +COMMIT=07785b7576a0655660badd845f06ed286208da1a + +DESCRIPTION="Assembly Constraints and Multibody Dynamics code" +HOMEPAGE="https://github.com/Ondsel-Development/OndselSolver/" +SRC_URI="https://github.com/Ondsel-Development/OndselSolver/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/OndselSolver-${COMMIT}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-cpp/gtest )" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.1_p20241024-system-gtest.patch" + "${FILESDIR}/${PN}-1.0.1-properly-demangle-typenames.patch" +) + +src_configure() { + local mycmakeargs=( + -DONDSELSOLVER_BUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} diff --git a/sci-libs/qd/Manifest b/sci-libs/qd/Manifest index da7e8f794c53..d586afa11ad5 100644 --- a/sci-libs/qd/Manifest +++ b/sci-libs/qd/Manifest @@ -1,5 +1,3 @@ -DIST qd-2.3.23.tar.gz 781558 BLAKE2B bbda1ede1e93c100ca831b3eddc34ad6092007f9674c83803e5a5e140f80cc6b4b41fa71857beb9ef255d77265470537e43ef81886d6a013958a429b1c641c55 SHA512 ab311883db7708cee1c307eead5d02dac3b9809389b8d29e2fda5207decb752ca360a9aab234dd8a70228e0e004a6b6d6cdf92fd098536e96a2fa01c5b2ced2c DIST qd-2.3.24.tar.gz 812215 BLAKE2B f9520066d8004befc3c17dc9a79dc8f099e39c3eeb676c8909f2914fa2f7d8e4f52e7e906c928d6fecdf018cdf97ac465fa9aa3f9c57b02279d1cbb8b3952246 SHA512 7f233e9d0edcb442da160a49bc97df87acf258c3251828e2d473206022a36581295f38c685ac5f0c78b106605f12698f3d0cc0b4865be220a50b3536820ac1b7 -EBUILD qd-2.3.23.ebuild 916 BLAKE2B c9220a83d46916dda3d308d480b84078f8af02515c13db7ba4303a999cb8b9aa5837ac3b19271942646a46397d600c674cdad17b729834669a056535771efe75 SHA512 8ee98f3f5bceac44362d9f148084585a1996bc019774fe2b7daad55e9ead316415652ee0ee1ff4fcfbe474f3a8b86336a9d686fdf8bc86d40824b2ddea422bc4 EBUILD qd-2.3.24.ebuild 919 BLAKE2B e405ada19d0247aa04373fbe4e31d59dc9990e7c56bbbf07bc20e9c8d0fe770f2aaf62f7025cdf0e6502eba60bd06c78ec35f431574eedf3bc59d502eefcee58 SHA512 72bbac66eed114ea40945b715007ecb43670a0b38e57fba6e1a9ebc2225a3155369161d938cb39695d5477c556b8256729cbcbb1dfca79d5245674dbb1a481f3 MISC metadata.xml 260 BLAKE2B 14d3d7872b9a3cb341301daf85c6b037c567163317516100d5af08e7ae02970252f210e90118d5df9e0cf6e0b3560add3a7894d379609b864e60dfdda3036423 SHA512 973385fccdcb0ccc36e00a09dc85204cf15081b8b61bc20e02d7d1311cb05af4927f01aac36ec93275158f5b990874ca03ab7d381cf6ee6f5e30bc4926d2f045 diff --git a/sci-libs/qd/qd-2.3.23.ebuild b/sci-libs/qd/qd-2.3.23.ebuild deleted file mode 100644 index 2f8569afa28c..000000000000 --- a/sci-libs/qd/qd-2.3.23.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -FORTRAN_NEEDED=fortran - -inherit fortran-2 - -DESCRIPTION="Quad-double and double-double float arithmetics" -HOMEPAGE="https://www.davidhbailey.com/dhbsoftware/" -SRC_URI="https://www.davidhbailey.com/dhbsoftware/${P}.tar.gz" - -SLOT="0" -LICENSE="BSD" -KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="cpu_flags_x86_fma3 cpu_flags_x86_fma4 doc fortran" - -src_configure() { - econf \ - --disable-static \ - --enable-ieee-add \ - --disable-sloppy-mul \ - --disable-sloppy-div \ - --enable-inline \ - $(use_enable cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4) fma) \ - $(use_enable fortran) -} - -src_install() { - default - - dosym qd_real.h /usr/include/qd/qd.h - dosym dd_real.h /usr/include/qd/dd.h - - if ! use doc; then - rm "${ED}"/usr/share/doc/${PF}/*.pdf || die - fi - - find "${D}" -name '*.la' -delete || die -} diff --git a/sci-libs/szip/Manifest b/sci-libs/szip/Manifest index 4a4069c8f1bf..28d36c45c697 100644 --- a/sci-libs/szip/Manifest +++ b/sci-libs/szip/Manifest @@ -1,3 +1,3 @@ DIST szip-2.1.1.tar.gz 415774 BLAKE2B e0f8d1f6528801c422a4db0f0cad43dd2c17f913dfff85962f4b4d448176903bcb385f631d32c5328cfb114527220baa9fb7d560364f700a61d4930ce799a7a4 SHA512 ada6406efb096cd8a2daf8f9217fe9111a96dcae87e29d1c31f58ddd2ad2aa7bac03f23c7205dc9360f3b62d259461759330c7189ef0c2fe559704b1ea9d40dd -EBUILD szip-2.1.1.ebuild 723 BLAKE2B 0c79bafff18afb581d8b7d1afb7e78a4b2f24a5e935837a0141a2caa06137d1a1dfded7dd7c244465565a4aebdee39c6a13bc9f6a7273b6b28186ae7784e4315 SHA512 d80995178913c5177efaaecb5ad1b3888161aaec34b2307c31ae969d937f223a041e51d9f27f2feecdf566a8061a004a888467d2d4c2571e220039c58678d9dc +EBUILD szip-2.1.1.ebuild 730 BLAKE2B 8599c702b88f716410168ce7d8f89cc8f1ca981f04fce141d5695174479f7ccf433beefd2b031de8a51c7f1dbd4e703f2fe70bc39f435ffc01dbb7d2e7f30349 SHA512 2034f2ca51ba76e0de3a76fc28e7362e7854ee301c9c02f1c70e2567a5894c85e1d55ca01c3fe4cb22a318a2473dde89259cfb1b906cbcb1d572fdd8577e6c94 MISC metadata.xml 766 BLAKE2B bd0e35e752baadb4deefad410c7e1d554cd412744af4a91acbeae68c04491b248d51f8169b81e529dfcc76b33ff8c2534f4b2dfadbda747309d3537de6ce5df2 SHA512 69ffab49952e563f8697a906f810ef7f8ae96bff70287b0f0a1f4c2b01212e6a3ba4fd89068948648979e53fd6efe1cc3c80e18584c54fdb6a8dc61cee21e14e diff --git a/sci-libs/szip/szip-2.1.1.ebuild b/sci-libs/szip/szip-2.1.1.ebuild index c6bda0f8f2f1..db8b52f2086f 100644 --- a/sci-libs/szip/szip-2.1.1.ebuild +++ b/sci-libs/szip/szip-2.1.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -9,7 +9,7 @@ SRC_URI="https://support.hdfgroup.org/ftp/lib-external/${PN}/${PV}/src/${P}.tar. LICENSE="szip" SLOT="0/2" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~loong ~ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" IUSE="static-libs" RDEPEND="!sci-libs/libaec[szip]" diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest index 514304bb0aaf..e1e84e99e93c 100644 --- a/sci-libs/vtk/Manifest +++ b/sci-libs/vtk/Manifest @@ -2,27 +2,16 @@ AUX vtk-9.2.5-pegtl-3.x.patch 4679 BLAKE2B 0c0be426ac07c2dcab275fb84ef68f6fe3e91 AUX vtk-9.3.0-ThirdParty-gcc15.patch 2444 BLAKE2B cc3e209a1c9df09a03dd365cd6999b9666bdcbfc9e7b922394e420e0d8089b120040c1b44260918908e133e2e283fd2ddd1d9e35506737831bab1d08ccd22beb SHA512 e45b8b1f08d9a9a1a7b0c220cc5ee96647394a1bbd079f5900e76e51438ac9795dcbeee7fcf8201bf13e17cc1e8908d35146320331e6e02ccfa76b8e6f1ae731 AUX vtk-9.3.0-ThrustPatches.patch 2026 BLAKE2B e51c72b9d2bfb0e7e968f1c9f0896a70d6215f60d21dd234c26feb7a47653c46c8d75b24b1ab0286e51d228b6c4ff7fefd34c01f5b8e885dc1cab6190fc9c6f7 SHA512 b326839c82682e7c1fc1e19d836fb55837417bbf0c23ccb28edc84dd519f085cce0a07221bf6c9e794d1b8a73ecd77c154f82cb602feef9e8d8962b2e8fabd92 AUX vtk-9.3.0-core-octree_node.txx.patch 670 BLAKE2B 6f53735716d6c75bfcf41dbc27331a4ac495f474c540b06c7a1b62e71b84af88304c2364e88060aae9cd015866138240f40ba28e0db8470e7a841cfb06ef827e SHA512 36d9b12f29e60bb773745263996eaf9fed2f6dee4e3be7f593f5a72e25909d30cde90828c54e1981290640b9f4cae85b20292ae054b6b5f2ee4420f27d23c07f -AUX vtk-9.3.0-fix-Java-error-with-integer-enum-overloads.patch 2356 BLAKE2B 45e2569239b5dcd4e26a007746179cb1743cc4269f82d2fff2cdb2d5188f47cf84315ddb850f2dcc602595d928569c41f986ed6677fabf52e91a0b15b8ed3225 SHA512 dff1bb8d4480ef7d8f6672015c11c29bc7ac2ee396f473c388b236b30326978b80b0a557cc8910fce34f9c54db9ef31b7a1440c930faf83c5b4acca9ecbee99c AUX vtk-9.3.0-java.patch 372 BLAKE2B ec11a69bf2e7b467b00648b0bc725f838f9931bce2f2cd1cbabe6d4c8fdcd4ef807dd14eedf06d524eecc3c9bc77850cc8de5e55ceaf8a238efa501c8bb36cf9 SHA512 6d326f95b05fd86d87a0566e45efb484d92d482a916895d3aaca1e019ceac65ecbcdab2957a8686545898551a3382aa718a57ad0d9e9cd16937166bf3f0729d8 AUX vtk-9.3.0-opencascade-7.8.0.patch 819 BLAKE2B 51f4af785af5f44b21b641a631fe63c5e308558d573c03d02646691fd3762dce89670be80da2284769fe30129861982a062aea8574c90ea7472d7875ba8b2fbb SHA512 6d3bec28921d7e3b61fa10cbe68a529190248519f67d52365b0d73f2ce265aae028b7db4601b60c13fdd309db8b4164f2134961acf27e8f0778ec649674442a0 AUX vtk-9.3.0-opencascade.patch 624 BLAKE2B 8188da64b12213074a4093ee0dd047fcf91a777742492dfe0cb1e93b597c23e78406e4783b3cdff23ffcac81655efa370bb3746a69d166edd138ec45beeb5c09 SHA512 1a0da4ffb822a038a13201d83f1cf6b42d4438073ea35fe3654d9e907e20c12306b47a511b72cb843097327a186b36560e2590ded47ce73aa8eb5a7655664236 -AUX vtk-9.3.0-pdal-2.6.0.patch 1748 BLAKE2B 9210b5ceceb95a5d74bd7ed4815faf809206bf3f66bc1606cf17124abfab6252a87285561fd9a3e0b1e542d981e714b3e5d1ae2137672beb9bc3c25d3f5afced SHA512 59cd68181857ffb3e428f6ae46b807fda6b3e1c1d4985e31f13b7d7ff177368e1ea65fa7e4bb5ce0d004ba7a9d1aef54e4e231111f05f638ddce8b360213f2f0 -AUX vtk-9.3.0-r1-expat-2.6.0.patch 2527 BLAKE2B 30006963525dcd4c06414c03e5504376853c2114c1b6f9a8eee862d15a21188ff0432fc32174bd9b4bc62bc9d3624c9107bff8772fb3610dfe54fca47f025a0e SHA512 16196fac6bee600ccc0da04d496cf56ffaf6a1a8d1146e3f7dbd87f12bd77eae7bd3716d6d7373a1e97b91c60c8e33591029b4cac9e7c2f2e5b875dc4d90c690 -AUX vtk-9.3.0-too-many-initializer-values.patch 1132 BLAKE2B 06513e3b0c32686b5665378d745fef3c21669cfe5e87bd804fd69122a49c6133794ae74dfb0a62d3e756fde3da0e92e44d86839885c3da827659bafd3e9e6ecd SHA512 a6e6c85b51bf564650da5a0266c85a9327db0d20c5ee1ead904924f171398771e737e7f66e2b9f1579190c9f395e4032740d643003d4ac3e04ba7fe958863a6f AUX vtk-9.3.0-update-for-cuda-12.6.patch 779 BLAKE2B 406dc4e2f57009351819d6536eb82ca9566c0544fe664e8a7867f5a36e67e084dbcb3dc60e151db4ef53c881465cd49d604b9b039ff69dfd3e4e8fe420ef0240 SHA512 d293b2a741a6042c30e835d7aa1071344d7813d07099f913d4ca5e4e728f31df233a50bed6a787d712a5eea8fb2396d9bfb4192f71fe7cff927ea1a0332b260a AUX vtk-9.3.1-fix-fmt-11.patch 2450 BLAKE2B 91ce3cb941b7a1bf4c1098f582db146bb39b8260c285578c1e0473a652d563d42664592c47f20cd9f67c4dd7f2f2db4d17ff2dd7430441459664569a19cbf601 SHA512 f1567d4320ea591c7ad0015b0922c1b4a97d628242ee33ca573edb68bbafb8a32a783e955e0bc2ac5a23fe3606239510a956f67ae0b89c914570d8a0c0276f88 -DIST VTK-9.3.0.tar.gz 99932810 BLAKE2B 59c2cdfe1c2525ac0f89df77a668783d928b55d2e72b42df45ea9b789da1bb150d52ce4108f2bc39cb8840cdd1998f57d3aedf96c72e402f6115d9efeebf4486 SHA512 2722dc8186779df1af5c534f26b20186ea33cb3bca2cef8cb333542b12e738382616e26e8d4d0341cb98c30403f8a896d77ddb04adb07e26d0d548c4a34b7d2f DIST VTK-9.3.1.tar.gz 99964158 BLAKE2B b85aae0aef1a22bd0496e0f5d2c7d3a5c20bbd7db8951ab1f9fe29a48c01ce960e90dc85f36cb6858c2b7dfd7f12cd1cf2e7d0fbb115fc9fd709dd7b481c598e SHA512 5dcd6764b2d9fe476bcc7bd195fab8230b7628579d94656ab037dcaecd07c7d40d0fc4afba446942ca15cd881df17f4c84581047e75a6e11d2e2d339d97c7fa3 -DIST VTKData-9.3.0.tar.gz 612388942 BLAKE2B 66d73ddaf5f2ddf52cf5c6dda5a918a86ae630df207983534478c92a66c39e38b1f4abfb93900b36899a93ad0e26260763573e925bd128c1646a1bc3bef8c54d SHA512 385d609c2adc1746c073690b58a3fc25e496946c03f08e6c9e0a69ee406cee447e66d267986c3e5ba9006dd1cb0015b68134bb3c375ae41aef8f3b1e0d923d51 DIST VTKData-9.3.1.tar.gz 612744946 BLAKE2B 6b3a09f6cc98630e817aaeca8094c6a6625372269abfa9003212cd1cdbc101b198f5eeb3474ca675be7f03046c58a5d11b4092ab19ed230422c4100011abfee4 SHA512 befc6b68e33d2c2fb6928006d4fe6feda7e0bbaf31df4488911ab8e3865e3fc1cf3834301301aa2b6de94c4489eebf5e2e8521e8830315d2a1f0e65cb73a6fd3 -DIST VTKDataFiles-9.3.0.tar.gz 628646039 BLAKE2B c2a4e875536c0b06f1edc8a8df17defbe1038067d7a04fc07e71ea49cad46139ef25f64d4b434a095ced16a7ff39d5346d34c528c099ea2e126c9f29afe92482 SHA512 c6788acfa790ce6b02aa5545fa4e411d00896b7542416c18b5e5955909f26a8fab9267e44db1c2a86f95f7a7f093695453f3fd0ec4e2c9a73449f9caf3fc09d5 DIST VTKDataFiles-9.3.1.tar.gz 628903288 BLAKE2B cf5919a627ee49809f79d29577d65a48c3332255551c3c229875b25fce911c75c3edeca8d0dfdf9926f93543963ab0e2c992c7469e2c9eed041c39cfd995647d SHA512 360fadd31ab304a27b208745c674eb31759552e98f587569f481c1bda62c7f8ae72598cd40b2c628bb211aace8f62df2ea7ca66f192f8d2e71bca7a4deaa9e89 -DIST VTKLargeData-9.3.0.tar.gz 247520869 BLAKE2B e01f3d0997d0b328d6c5909d6b891443c1246bdbc36aa978004a1d4bb2770f7923afed2c0d78f7844aae95e067425b9dd25a1c47601c8137ba0a8a958b708cab SHA512 d87eb0fb4ce27ae9f4363c54bb711e66c5d2dbcdf508cb5fae9fcc1574407df2816f29d20037297b834440cd8a54fcf8e1d6db14700054f057bff2fe48404d33 DIST VTKLargeData-9.3.1.tar.gz 247523669 BLAKE2B 88ec5046f502db14dd6a26ef81e386babaf560619e16d769834e96046eab46cf762d8c80f9b51c434b77e4e145d8f60e32efbdb4f57d8305494177abec0806ef SHA512 edf5610edfae90f8465d68e0e06e82018978ba27f5b2ae9701939aeb72019acaabeda435c15787f1c4828b44e34c79e2837565a81d6a3accd368a92c6eacebd1 -DIST VTKLargeDataFiles-9.3.0.tar.gz 247503839 BLAKE2B 68007af36148eaae43fc0fd75b9f8d3b165c977b7bc44efa4ce7077dc4977514f49a4d7d5e4a9e43fc9dec6562d741bdee5df87efa285b3361f865023da14f55 SHA512 f7def947ff492acbfdaa3d360064c42fdd3fedab27fd5d7bed1dbf8054b814cc8843ba0fed7078926648d1e8949235b877de97747be079ea478b79558975e6ea DIST VTKLargeDataFiles-9.3.1.tar.gz 247505524 BLAKE2B 5de069309c59a8a73365fb9faba9904189d723fb72976f372e40db3eb100342a19fecd582bd0aa42fc1012675b442a8e42611632004d6b6d6708468c27a4265e SHA512 bbbf0c193432cb5d8a5618c41e66609c7e6f3e4f24f588124c46b537ecec28b5670420b7f77185da534e4098f8b95d8ec4e392fc017df934a84bfc9dc833f634 -DIST vtkDocHtml-9.3.0.tar.gz 165538725 BLAKE2B 27874998679090d5442ecb3a394b53db05a0215cfee9f912bd01af1d5567efc51b4f56dacb960401195da4f3d385b335bbefc922a45d0199c99d619df0941f08 SHA512 8bf9cc87c4653a65ccc39d88d70b421a7b4353986d380cbf558cbf6e8a96435695a5d54aa7ce5bb1240cb46ca0fd9225a51183a39d1af1101d3f2876a2afc10b DIST vtkDocHtml-9.3.1.tar.gz 165542400 BLAKE2B da8084137b2848f82bf091535950738bd718e65cac8f461fdfb8e9c63ef6db68acfa02655531c8fe22e35f89395d2d066aa5b051abac0e774883552c898de6d9 SHA512 de0d2153c97864b49a8b99e6fbfc8bab78c1522d25bf40ed1f271a8bb4f1f205b008d6bd39f835816972c8439d01f78b68f34d1f88f87755174f0d559841ba29 -EBUILD vtk-9.3.0-r3.ebuild 36326 BLAKE2B fc7d9d374e790071902e247c761817679eeaaa32b90f4db84cdd39e4a012648d13f4114478cb115389cb1a832fd2bfff3392671825774be2ee590d41b7908c0d SHA512 2e420d4f86289fee3656b9a06c665ec26fe0af3ef62dbc3152822fdfc8126cf5d51724b6351e32e2746dc97244800c59e0aa960b7f290e628f156e6246fb2cbe EBUILD vtk-9.3.1.ebuild 34551 BLAKE2B 56923a070a4e5f3a0a9f5963333f09da14eff2c8df7d8641ec6df3c6131af1345c99be31a90ec2e4b5b5a60b1c552b7f4cd237417de245ca397fc726f006aaa7 SHA512 6b2372cc02a771e637d519f49e3e0dea38a3a717a44ec3a7305658e1ad6944713d2331be0a3ebdee5da0b5e6e1f80e5d79bc9c59e0a34253913c9a3981506345 -MISC metadata.xml 1765 BLAKE2B f17c8864280100ef5e6993cc9d529336b9b226e1110fe24bcde3ea8b045fa1aa89bdb36de0e7b76e8ed0b4e6ee0915c8700520a81811983541d4c89b3bcb8acd SHA512 7e5039d28711a39b96ad3d23812a744bd33db38ef9c2f58b5725dfff701b03543fb630f4014ccae117855d09229c36665d815b03591c3d38806be15a08d2a272 +MISC metadata.xml 1699 BLAKE2B befce4e1f61b6cb0d772a2826ed9349cf36832ebc0507edc2dff658441b44be351c1fe97c74ac9b21eed8310a254dd2a3b408bc93a15c4b2db8cd55a5e3f703a SHA512 d9921a30c66ef3a3d2a27da1add22a29352cd3fd71c49e834523931b8edf21ca0d785290cddabbe29b068ce00fa05a898c331a1ad80ffaa190e9f92b1a1ab64d diff --git a/sci-libs/vtk/files/vtk-9.3.0-fix-Java-error-with-integer-enum-overloads.patch b/sci-libs/vtk/files/vtk-9.3.0-fix-Java-error-with-integer-enum-overloads.patch deleted file mode 100644 index 7dd005ff4191..000000000000 --- a/sci-libs/vtk/files/vtk-9.3.0-fix-Java-error-with-integer-enum-overloads.patch +++ /dev/null @@ -1,42 +0,0 @@ -From: dd7acfb4548dc76f1191aa96778f35c0cda80d35 Mon Sep 17 00:00:00 2001 -From: David Gobbi <david.gobbi@gmail.com> -From: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10712 -Date: Sat, 18 Nov 2023 15:57:18 -0700 -Subject: [PATCH] Fix Java error with integer, enum overloads - -The Java wrappers simply cast enum types to 'jint', and do not -distinguish them as individual types that are distinct from 'int' -or 'unsigned int'. So when a method is overloaded with both 'int' -and an enum type, only one of the overloads can be wrapped. The -'int' (or 'unsigned int') is the one that is chosen. ---- a/Wrapping/Tools/vtkParseJava.c -+++ b/Wrapping/Tools/vtkParseJava.c -@@ -248,9 +248,10 @@ void return_result_native(FILE* fp) - * return 0 if the types do not map to the same type */ - static int CheckMatch(unsigned int type1, unsigned int type2, const char* c1, const char* c2) - { -+ /* VTK_PARSE_UNKNOWN is used for enum types, which are mapped to java's int type */ - static unsigned int byteTypes[] = { VTK_PARSE_UNSIGNED_CHAR, VTK_PARSE_SIGNED_CHAR, 0 }; - static unsigned int shortTypes[] = { VTK_PARSE_UNSIGNED_SHORT, VTK_PARSE_SHORT, 0 }; -- static unsigned int intTypes[] = { VTK_PARSE_UNSIGNED_INT, VTK_PARSE_INT, 0 }; -+ static unsigned int intTypes[] = { VTK_PARSE_UNKNOWN, VTK_PARSE_UNSIGNED_INT, VTK_PARSE_INT, 0 }; - static unsigned int longTypes[] = { VTK_PARSE_UNSIGNED_LONG, VTK_PARSE_UNSIGNED_LONG_LONG, - VTK_PARSE_LONG, VTK_PARSE_LONG_LONG, 0 }; - ---- a/Wrapping/Tools/vtkWrapJava.c -+++ b/Wrapping/Tools/vtkWrapJava.c -@@ -639,9 +639,10 @@ void OutputFunctionResult(FILE* fp) - * return 0 if the types do not map to the same type */ - static int CheckMatch(unsigned int type1, unsigned int type2, const char* c1, const char* c2) - { -+ /* VTK_PARSE_UNKNOWN is used for enum types, which are mapped to java's int type */ - static unsigned int byteTypes[] = { VTK_PARSE_UNSIGNED_CHAR, VTK_PARSE_SIGNED_CHAR, 0 }; - static unsigned int shortTypes[] = { VTK_PARSE_UNSIGNED_SHORT, VTK_PARSE_SHORT, 0 }; -- static unsigned int intTypes[] = { VTK_PARSE_UNSIGNED_INT, VTK_PARSE_INT, 0 }; -+ static unsigned int intTypes[] = { VTK_PARSE_UNKNOWN, VTK_PARSE_UNSIGNED_INT, VTK_PARSE_INT, 0 }; - static unsigned int longTypes[] = { VTK_PARSE_UNSIGNED_LONG, VTK_PARSE_UNSIGNED_LONG_LONG, - VTK_PARSE_LONG, VTK_PARSE_LONG_LONG, 0 }; - --- -GitLab - diff --git a/sci-libs/vtk/files/vtk-9.3.0-pdal-2.6.0.patch b/sci-libs/vtk/files/vtk-9.3.0-pdal-2.6.0.patch deleted file mode 100644 index 261f3736eb3d..000000000000 --- a/sci-libs/vtk/files/vtk-9.3.0-pdal-2.6.0.patch +++ /dev/null @@ -1,65 +0,0 @@ -From: ccee5db79d6037c4d752b5f29dc30fb0dfd039bf Mon Sep 17 00:00:00 2001 -From: Timothée Couble <timothee.couble@kitware.com> -From: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10692 -Date: Fri, 10 Nov 2023 10:03:07 +0100 -Subject: [PATCH 1/2] IOPDAL: Always links with pdalcpp - -pdal_base and pdal_utils libraries are removed in PDAL 2.6.0 -link with pdalcpp instead starting from this version. ---- a/IO/PDAL/CMakeLists.txt -+++ b/IO/PDAL/CMakeLists.txt -@@ -3,14 +3,20 @@ vtk_module_find_package(PACKAGE PDAL VERSION 2.1) - set(classes - vtkPDALReader) - --set(pdal_libraries pdal_util) --if (APPLE OR WIN32) -+set(pdal_libraries) -+if (PDAL_VERSION VERSION_LESS "2.6") -+ set(pdal_libraries pdal_util) -+ if (APPLE OR WIN32) -+ list(APPEND pdal_libraries -+ pdalcpp) -+ else() -+ list(APPEND pdal_libraries -+ pdal_base) -+ endif() -+else () - list(APPEND pdal_libraries - pdalcpp) --else() -- list(APPEND pdal_libraries -- pdal_base) --endif() -+endif () - - vtk_module_add_module(VTK::IOPDAL - CLASSES ${classes}) --- -GitLab - - -From 5bf45b44760bac09b0079827346e78af38d981af Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Timoth=C3=A9e=20Couble?= <timothee.couble@kitware.com> -Date: Fri, 10 Nov 2023 10:12:32 +0100 -Subject: [PATCH 2/2] Add support for PDAL 2.0 version - ---- a/IO/PDAL/CMakeLists.txt -+++ b/IO/PDAL/CMakeLists.txt -@@ -23,4 +23,13 @@ vtk_module_add_module(VTK::IOPDAL - vtk_module_link(VTK::IOPDAL - PRIVATE - ${pdal_libraries}) -+ -+# PDAL 2.0 didn't include interfaces to its exported targets. -+# Resolved in https://github.com/PDAL/PDAL/issues/2262. -+if (PDAL_VERSION VERSION_LESS "2.1") -+ vtk_module_include(VTK::IOPDAL -+ PRIVATE -+ ${PDAL_INCLUDE_DIRS}) -+endif () -+ - vtk_add_test_mangling(VTK::IOPDAL) --- -GitLab - diff --git a/sci-libs/vtk/files/vtk-9.3.0-r1-expat-2.6.0.patch b/sci-libs/vtk/files/vtk-9.3.0-r1-expat-2.6.0.patch deleted file mode 100644 index ac519f98aa63..000000000000 --- a/sci-libs/vtk/files/vtk-9.3.0-r1-expat-2.6.0.patch +++ /dev/null @@ -1,72 +0,0 @@ -From 3efa07ad277efe5c1d11a2ef2b907c095f68bbef Mon Sep 17 00:00:00 2001 -From: Ben Boeckel <ben.boeckel@kitware.com> -Date: Mon, 15 Apr 2024 22:22:22 -0400 -Subject: [PATCH] vtkXMLDataParser: track `AppendedData` state explicitly - -Newer `libexpat` doesn't like being given the appended data after the -artificially ended document anymore. Avoid pushing it through to its -parser. - -(cherry picked from commit db8f9efca220c9d16a30958e179abae3379d0011) - -Fixes: #19258 ---- - IO/XMLParser/vtkXMLDataParser.cxx | 6 +++++- - IO/XMLParser/vtkXMLDataParser.h | 3 +++ - 2 files changed, 8 insertions(+), 1 deletion(-) - -diff --git a/IO/XMLParser/vtkXMLDataParser.cxx b/IO/XMLParser/vtkXMLDataParser.cxx -index 1f6006d37c2..7d38092fdd7 100644 ---- a/IO/XMLParser/vtkXMLDataParser.cxx -+++ b/IO/XMLParser/vtkXMLDataParser.cxx -@@ -36,6 +36,7 @@ vtkXMLDataParser::vtkXMLDataParser() - this->RootElement = nullptr; - this->AppendedDataPosition = 0; - this->AppendedDataMatched = 0; -+ this->AppendedDataFound = false; - this->DataStream = nullptr; - this->InlineDataStream = vtkBase64InputStream::New(); - this->AppendedDataStream = vtkBase64InputStream::New(); -@@ -88,6 +89,7 @@ void vtkXMLDataParser::PrintSelf(ostream& os, vtkIndent indent) - { - this->Superclass::PrintSelf(os, indent); - os << indent << "AppendedDataPosition: " << this->AppendedDataPosition << "\n"; -+ os << indent << "AppendedDataFound: " << this->AppendedDataFound << "\n"; - if (this->RootElement) - { - this->RootElement->PrintXML(os, indent); -@@ -214,7 +216,7 @@ int vtkXMLDataParser::ParsingComplete() - // If we have reached the appended data section, we stop parsing. - // This prevents the XML parser from having to walk over the entire - // appended data section. -- if (this->AppendedDataPosition) -+ if (this->AppendedDataPosition || this->AppendedDataFound) - { - return 1; - } -@@ -433,6 +435,8 @@ int vtkXMLDataParser::ParseBuffer(const char* buffer, unsigned int count) - { - return 0; - } -+ -+ this->AppendedDataFound = true; - } - - return 1; -diff --git a/IO/XMLParser/vtkXMLDataParser.h b/IO/XMLParser/vtkXMLDataParser.h -index 1504a4d400b..142bf28327d 100644 ---- a/IO/XMLParser/vtkXMLDataParser.h -+++ b/IO/XMLParser/vtkXMLDataParser.h -@@ -204,6 +204,9 @@ protected: - // How much of the string "<AppendedData" has been matched in input. - int AppendedDataMatched; - -+ // Whether AppendedData has been dealt with or not. -+ bool AppendedDataFound; -+ - // The byte order of the binary input. - int ByteOrder; - --- -GitLab - diff --git a/sci-libs/vtk/files/vtk-9.3.0-too-many-initializer-values.patch b/sci-libs/vtk/files/vtk-9.3.0-too-many-initializer-values.patch deleted file mode 100644 index 4be0e88b769c..000000000000 --- a/sci-libs/vtk/files/vtk-9.3.0-too-many-initializer-values.patch +++ /dev/null @@ -1,25 +0,0 @@ -From: Paul Zander <negril.nx+gentoo@gmail.com> -Subject: [PATCH] vtkm: too many initializer values - -Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> - ---- a/Accelerators/Vtkm/Core/vtkmlib/vtkmDataArray.hxx -+++ b/Accelerators/Vtkm/Core/vtkmlib/vtkmDataArray.hxx -@@ -334,7 +334,7 @@ - auto TransformForScalarRange(const ArrayHandleType& src, - const vtkm::cont::ArrayHandle<vtkm::UInt8>& ghost, vtkm::UInt8 ghostValueToSkip, bool finitesOnly) - { -- DecoratorForScalarRanage decorator{ ghostValueToSkip, finitesOnly }; -+ DecoratorForScalarRanage decorator{ { ghostValueToSkip, finitesOnly } }; - return vtkm::cont::make_ArrayHandleDecorator(src.GetNumberOfValues(), decorator, src, ghost); - } - -@@ -342,7 +342,7 @@ - auto TransformForVectorRange(const ArrayHandleType& src, - const vtkm::cont::ArrayHandle<vtkm::UInt8>& ghost, vtkm::UInt8 ghostValueToSkip, bool finitesOnly) - { -- DecoratorForVectorRanage decorator{ ghostValueToSkip, finitesOnly }; -+ DecoratorForVectorRanage decorator{ { ghostValueToSkip, finitesOnly } }; - return vtkm::cont::make_ArrayHandleDecorator(src.GetNumberOfValues(), decorator, src, ghost); - } - diff --git a/sci-libs/vtk/metadata.xml b/sci-libs/vtk/metadata.xml index ce67b30442e4..8012d390eb78 100644 --- a/sci-libs/vtk/metadata.xml +++ b/sci-libs/vtk/metadata.xml @@ -17,7 +17,6 @@ <flag name="all-modules">Build all modules</flag> <flag name="boost">Add support for boost</flag> <flag name="cgns">Build support to handle CGNS data files</flag> - <flag name="freetype">Build support for font rendering</flag> <flag name="gdal">Support for gdal formated data</flag> <flag name="imaging">Building Imaging modules</flag> <flag name="las">Build support for LiDAR files</flag> diff --git a/sci-libs/vtk/vtk-9.3.0-r3.ebuild b/sci-libs/vtk/vtk-9.3.0-r3.ebuild deleted file mode 100644 index ab57289f101e..000000000000 --- a/sci-libs/vtk/vtk-9.3.0-r3.ebuild +++ /dev/null @@ -1,919 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# TODO: -# - add USE flag for remote modules? Those modules can be downloaded -# properly before building. -# - replace usex by usev where applicable - -PYTHON_COMPAT=( python3_{10..12} ) -WEBAPP_OPTIONAL=yes -WEBAPP_MANUAL_SLOT=yes - -inherit check-reqs cmake cuda java-pkg-opt-2 multiprocessing python-single-r1 toolchain-funcs virtualx webapp - -# Short package version -MY_PV="$(ver_cut 1-2)" -MY_PV2="${PV/_rc/.rc}" - -DESCRIPTION="The Visualization Toolkit" -HOMEPAGE="https://www.vtk.org/" -SRC_URI=" - https://www.vtk.org/files/release/${MY_PV}/VTK-${MY_PV2}.tar.gz - https://www.vtk.org/files/release/${MY_PV}/VTKData-${MY_PV2}.tar.gz - https://www.vtk.org/files/release/${MY_PV}/VTKDataFiles-${MY_PV2}.tar.gz - doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${MY_PV2}.tar.gz ) - examples? ( - https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${MY_PV2}.tar.gz - https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${MY_PV2}.tar.gz - ) - test? ( - https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${MY_PV2}.tar.gz - https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${MY_PV2}.tar.gz - ) -" -S="${WORKDIR}/VTK-${MY_PV2}" - -LICENSE="BSD LGPL-2" -SLOT="0/${MY_PV}" -KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" - -# TODO: Like to simplifiy these. Mostly the flags related to Groups. -IUSE="all-modules boost cuda debug doc examples ffmpeg +freetype gdal gles2-only imaging - java las +logging mpi mysql odbc opencascade openmp openvdb pdal postgres python qt5 - qt6 +rendering sdl tbb test +threads tk video_cards_nvidia +views vtkm web" - -RESTRICT="!test? ( test )" - -REQUIRED_USE=" - all-modules? ( - boost ffmpeg freetype gdal imaging las mysql odbc opencascade openvdb pdal - postgres rendering views - ) - cuda? ( video_cards_nvidia vtkm !tbb ) - java? ( rendering ) - python? ( ${PYTHON_REQUIRED_USE} ) - qt5? ( rendering ) - qt6? ( rendering ) - sdl? ( rendering ) - tk? ( python rendering ) - web? ( python ) - rendering? ( freetype views ) -" - -# eigen, nlohmann_json, pegtl and utfcpp are referenced in the cmake files -# and need to be available when VTK consumers configure the dependencies. -RDEPEND=" - app-arch/lz4:= - app-arch/xz-utils - dev-db/sqlite:3 - dev-libs/double-conversion:= - dev-libs/expat - dev-libs/icu:= - dev-libs/jsoncpp:= - >=dev-libs/libfmt-8.1.1:= - dev-libs/libxml2:2 - dev-libs/libzip:= - dev-libs/pugixml - media-libs/freetype - media-libs/libjpeg-turbo - >=media-libs/libharu-2.4.0:= - media-libs/libogg - media-libs/libpng:= - media-libs/libtheora - media-libs/tiff:= - >=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=] - sci-libs/hdf5:=[mpi=] - sci-libs/proj:= - sci-libs/netcdf:=[mpi=] - sys-libs/zlib - boost? ( dev-libs/boost:=[mpi?] ) - cuda? ( dev-util/nvidia-cuda-toolkit:= ) - ffmpeg? ( media-video/ffmpeg:= ) - freetype? ( media-libs/fontconfig ) - gdal? ( sci-libs/gdal:= ) - java? ( >=virtual/jdk-11:= ) - las? ( sci-geosciences/liblas ) - mpi? ( virtual/mpi[cxx,romio] ) - mysql? ( dev-db/mariadb-connector-c ) - odbc? ( dev-db/unixODBC ) - openvdb? ( media-gfx/openvdb:= ) - opencascade? ( sci-libs/opencascade:= ) - pdal? ( sci-libs/pdal:= ) - postgres? ( dev-db/postgresql:= ) - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep 'mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )') - $(python_gen_cond_dep 'rendering? ( dev-python/matplotlib[${PYTHON_USEDEP}] )') - ) - qt5? ( - dev-qt/qtcore:5 - dev-qt/qtopengl:5 - dev-qt/qtquickcontrols2:5 - dev-qt/qtsql:5 - dev-qt/qtwidgets:5 - ) - qt6? ( - !qt5? ( - dev-qt/qtbase:6[gui,opengl,sql,widgets] - dev-qt/qtdeclarative:6[opengl] - dev-qt/qtshadertools:6 - x11-libs/libxkbcommon - ) - ) - sdl? ( media-libs/libsdl2 ) - rendering? ( - media-libs/glew:= - virtual/opengl - x11-libs/gl2ps - x11-libs/libICE - x11-libs/libXcursor - x11-libs/libXext - ) - tbb? ( dev-cpp/tbb:= ) - tk? ( dev-lang/tk:= ) - video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] ) - views? ( - x11-libs/libICE - x11-libs/libXext - ) - web? ( ${WEBAPP_DEPEND} ) -" - -DEPEND=" - ${RDEPEND} - dev-cpp/cli11 - dev-cpp/eigen - dev-cpp/nlohmann_json - >=dev-libs/pegtl-3 - dev-libs/utfcpp - test? ( - media-libs/glew - x11-libs/libXcursor - rendering? ( media-libs/freeglut ) - ) -" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${PN}-9.2.5-pegtl-3.x.patch" - "${FILESDIR}/${PN}-9.3.0-pdal-2.6.0.patch" - "${FILESDIR}/${PN}-9.3.0-too-many-initializer-values.patch" - "${FILESDIR}/${PN}-9.3.0-java.patch" - "${FILESDIR}/${PN}-9.3.0-opencascade.patch" - "${FILESDIR}/${PN}-9.3.0-fix-Java-error-with-integer-enum-overloads.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-r1-expat-2.6.0.patch" - "${FILESDIR}/${PN}-9.3.1-fix-fmt-11.patch" -) - -DOCS=( CONTRIBUTING.md README.md ) - -vtk_check_reqs() { - local dsk=4096 - - dsk=$(( $(usex doc 3072 0) + dsk )) - dsk=$(( $(usex examples 3072 0) + dsk )) - dsk=$(( $(usex cuda 8192 0) + dsk )) - export CHECKREQS_DISK_BUILD=${dsk}M - - # In case users are not aware of the extra NINJAOPTS, check - # for the more common MAKEOPTS, in case NINJAOPTS is empty - local jobs=1 - if [[ -n "${NINJAOPTS}" ]]; then - jobs=$(makeopts_jobs "${NINJAOPTS}" "$(get_nproc)") - elif [[ -n "${MAKEOPTS}" ]]; then - jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)") - fi - - if use cuda; then - local mem=$(( $(usex cuda 7168 0) )) - mem=$(( mem * $(( jobs > 4 ? 4 : jobs )) )) - export CHECKREQS_MEMORY=${mem}M - fi - - "check-reqs_pkg_${EBUILD_PHASE}" -} - -vtk_check_compiler() { - [[ -z "$1" ]] && die "no compiler specified" - local compiler="$1" - local package="sys-devel/${compiler}" - local version="${package}" - local CUDAHOSTCXX_test - while - CUDAHOSTCXX="${CUDAHOSTCXX_test}" - version=$(best_version "${version}") - if [[ -z "${version}" ]]; then - if [[ -z "${CUDAHOSTCXX}" ]]; then - die "could not find supported version of ${package}" - fi - break - fi - CUDAHOSTCXX_test="$( - dirname "$( - realpath "$( - which "${compiler}-$(echo "${version}" | grep -oP "(?<=${package}-)[0-9]*")" - )" - )" - )" - version="<${version}" - do ! echo "int main(){}" | nvcc "-ccbin=${CUDAHOSTCXX_test}" - -x cu &>/dev/null; done -} - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp - - if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then - # FIXME: better use eerror? - ewarn "GCC 11 is know to fail building with CUDA support in some cases." - ewarn "See bug #820593" - fi - - use qt6 && use qt5 && ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!" - - vtk_check_reqs -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp - - if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then - # FIXME: better use eerror? - ewarn "GCC 11 is know to fail building with CUDA support in some cases." - ewarn "See bug #820593" - fi - - use qt6 && use qt5 && ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!" - - vtk_check_reqs - - use java && java-pkg-opt-2_pkg_setup - use python && python-single-r1_pkg_setup - use web && webapp_pkg_setup -} - -# Note: The following libraries are marked as internal by kitware -# and can currently not unbundled: -# diy2, exodusII, fides, h5part, kissfft, loguru, verdict, vpic, -# vtkm, xdmf{2,3}, zfp -# TODO: exprtk, ioss -# Note: As of v9.2.2 we no longer drop bundled libraries, when using system -# libraries. This just saves a little space. CMake logic of VTK on ThirdParty -# libraries avoids automagic builds, so deletion is not needed to catch these. -src_prepare() { - if use doc; then - einfo "Removing .md5 files from documents." - rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes" - sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \ - -i Utilities/Doxygen/CMakeLists.txt || die - fi - - if use opencascade && has_version ">=sci-libs/opencascade-7.8.0"; then - eapply "${FILESDIR}/vtk-9.3.0-opencascade-7.8.0.patch" - fi - - cmake_src_prepare - - if use test; then - ebegin "Copying data files to ${BUILD_DIR}" - mkdir -p "${BUILD_DIR}/ExternalData" || die - pushd "${BUILD_DIR}/ExternalData" >/dev/null || die - ln -sf "../../VTK-${MY_PV2}/.ExternalData/README.rst" . || die - ln -sf "../../VTK-${MY_PV2}/.ExternalData/SHA512" . || die - popd >/dev/null || die - eend "$?" - fi -} - -# TODO: check these and consider to use them -# VTK_BUILD_SCALED_SOA_ARRAYS -# VTK_DISPATCH_{AOS,SOA,TYPED}_ARRAYS -src_configure() { - local mycmakeargs=( - -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 - -DVTK_IOS_BUILD=OFF - - -DVTK_BUILD_ALL_MODULES="$(usex all-modules)" - # we use the pre-built documentation and install these with USE=doc - -DVTK_BUILD_DOCUMENTATION=OFF - -DVTK_BUILD_EXAMPLES="$(usex examples)" - - # no package in the tree: https://github.com/LLNL/conduit - -DVTK_ENABLE_CATALYST=OFF - -DVTK_ENABLE_KITS=OFF - -DVTK_ENABLE_LOGGING="$(usex logging)" - # defaults to ON: USE flag for this? - -DVTK_ENABLE_REMOTE_MODULES=OFF - - # disable fetching files during build - -DVTK_FORBID_DOWNLOADS=OFF - - -DVTK_GROUP_ENABLE_Imaging="$(usex imaging "YES" "NO")" - -DVTK_GROUP_ENABLE_Rendering="$(usex rendering "YES" "NO")" - -DVTK_GROUP_ENABLE_StandAlone="YES" - -DVTK_GROUP_ENABLE_Views="$(usex views "YES" "NO")" - -DVTK_GROUP_ENABLE_Web="$(usex web "YES" "NO")" - - -DVTK_INSTALL_SDK=ON - - -DVTK_MODULE_ENABLE_VTK_IOCGNSReader="YES" - -DVTK_MODULE_ENABLE_VTK_IOExportPDF="YES" - -DVTK_MODULE_ENABLE_VTK_IOLAS="$(usex las "YES" "NO")" - -DVTK_MODULE_ENABLE_VTK_IONetCDF="YES" - -DVTK_MODULE_ENABLE_VTK_IOOCCT="$(usex opencascade "YES" "NO")" - -DVTK_MODULE_ENABLE_VTK_IOOggTheora="YES" - -DVTK_MODULE_ENABLE_VTK_IOOpenVDB="$(usex openvdb "YES" "NO")" - -DVTK_MODULE_ENABLE_VTK_IOSQL="YES" # sqlite - -DVTK_MODULE_ENABLE_VTK_IOPDAL="$(usex pdal "YES" "NO")" - -DVTK_MODULE_ENABLE_VTK_IOXML="YES" - -DVTK_MODULE_ENABLE_VTK_IOXMLParser="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingFreeType="$(usex freetype "YES" "NO")" - -DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig="$(usex freetype "YES" "NO")" - -DVTK_MODULE_ENABLE_VTK_cgns="YES" - -DVTK_MODULE_ENABLE_VTK_doubleconversion="YES" - -DVTK_MODULE_ENABLE_VTK_eigen="YES" - -DVTK_MODULE_ENABLE_VTK_expat="YES" - -DVTK_MODULE_ENABLE_VTK_fmt="YES" - -DVTK_MODULE_ENABLE_VTK_freetype="YES" - -DVTK_MODULE_ENABLE_VTK_hdf5="YES" - -DVTK_MODULE_ENABLE_VTK_jpeg="YES" - -DVTK_MODULE_ENABLE_VTK_jsoncpp="YES" - -DVTK_MODULE_ENABLE_VTK_libharu="YES" - -DVTK_MODULE_ENABLE_VTK_libproj="YES" - -DVTK_MODULE_ENABLE_VTK_libxml2="YES" - -DVTK_MODULE_ENABLE_VTK_lz4="YES" - -DVTK_MODULE_ENABLE_VTK_lzma="YES" - -DVTK_MODULE_ENABLE_VTK_netcdf="YES" - -DVTK_MODULE_ENABLE_VTK_nlohmannjson="YES" - -DVTK_MODULE_ENABLE_VTK_ogg="YES" - -DVTK_MODULE_ENABLE_VTK_pegtl="YES" - -DVTK_MODULE_ENABLE_VTK_png="YES" - -DVTK_MODULE_ENABLE_VTK_pugixml="YES" - -DVTK_MODULE_ENABLE_VTK_sqlite="YES" - -DVTK_MODULE_ENABLE_VTK_theora="YES" - -DVTK_MODULE_ENABLE_VTK_tiff="YES" - -DVTK_MODULE_ENABLE_VTK_utf8="YES" - -DVTK_MODULE_ENABLE_VTK_vtkvtkm="$(usex vtkm "YES" "NO")" - -DVTK_MODULE_ENABLE_VTK_zlib="YES" - - # not packaged in Gentoo - -DVTK_MODULE_USE_EXTERNAL_VTK_fast_float=OFF - -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF - -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF - -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF - - -DVTK_RELOCATABLE_INSTALL=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 - # avoid finding package from either ::guru or ::sci - -DVTK_USE_MEMKIND=OFF - -DVTK_USE_MPI="$(usex mpi)" - -DVTK_USE_TK="$(usex tk)" - -DVTK_USE_X=ON - - -DVTK_WHEEL_BUILD=OFF - - -DVTK_WRAP_JAVA="$(usex java)" - -DVTK_WRAP_PYTHON="$(usex python)" - ) - - if use all-modules; then - mycmakeargs+=( - # no package in ::gentoo - -DVTK_ENABLE_OSPRAY=OFF - # TODO: some of these are tied to the VTK_ENABLE_REMOTE_MODULES - # option. Check whether we can download them clean and enable - # them. - -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="NO" - -DVTK_MODULE_ENABLE_VTK_fides="NO" - -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="NO" - -DVTK_MODULE_ENABLE_VTK_IOADIOS2="NO" - -DVTK_MODULE_ENABLE_VTK_IOFides="NO" - - -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="NO" - -DVTK_MODULE_ENABLE_VTK_RenderingOpenXR="NO" - - -DVTK_MODULE_USE_EXTERNAL_VTK_cli11="YES" - ) - fi - - if use boost; then - mycmakeargs+=( - -DVTK_MODULE_ENABLE_VTK_InfovisBoost="YES" - -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="YES" - ) - fi - - if use cuda; then - cuda_add_sandbox -w - tc-is-gcc && vtk_check_compiler "gcc" - tc-is-clang && vtk_check_compiler "clang" - [[ -z "${CUDAARCHS}" ]] && einfo "trying to determine host CUDAARCHS" - : "${CUDAARCHS:=$(__nvcc_device_query)}" - einfo "building for CUDAARCHS = ${CUDAARCHS}" - - export CUDAARCHS - export CUDAHOSTCXX - unset NVCCFLAGS - fi - - if use debug; then - mycmakeargs+=( - -DVTK_DEBUG_LEAKS=ON - -DVTK_DEBUG_MODULE=ON - -DVTK_DEBUG_MODULE_ALL=ON - -DVTK_ENABLE_SANITIZER=ON - -DVTK_EXTRA_COMPILER_WARNINGS=ON - -DVTK_WARN_ON_DISPATCH_FAILURE=ON - ) - if use rendering; then - mycmakeargs+=( -DVTK_OPENGL_ENABLE_STREAM_ANNOTATIONS=ON ) - fi - fi - - if use examples || use test; then - mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON ) - fi - - if use ffmpeg; then - mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="YES" ) - if use rendering; then - mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingFFMPEGOpenGL2="YES" ) - fi - fi - - if use gdal; then - mycmakeargs+=( - -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="YES" - -DVTK_MODULE_ENABLE_VTK_IOGDAL="YES" - -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="YES" - ) - fi - - if use imaging; then - mycmakeargs+=( - -DVTK_MODULE_ENABLE_VTK_ImagingColor="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingCore="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingFourier="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingGeneral="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingHybrid="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingMath="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingMorphological="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingOpenGL2="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingSources="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingStatistics="YES" - -DVTK_MODULE_ENABLE_VTK_ImagingStencil="YES" - ) - use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingImage="YES" ) - fi - - if ! use java && ! use python; then - # defaults to ON - mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF ) - 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 - -DVTK_MODULE_ENABLE_VTK_Java="YES" - -DVTK_JAVA_SOURCE_VERSION="$(java-config -g PROVIDES_VERSION)" - -DVTK_JAVA_TARGET_VERSION="$(java-config -g PROVIDES_VERSION)" - ) - fi - - if use mpi; then - mycmakeargs+=( - -DVTK_GROUP_ENABLE_MPI="YES" - -DVTK_MODULE_ENABLE_VTK_IOH5part="YES" - -DVTK_MODULE_ENABLE_VTK_IOMPIParallel="YES" - -DVTK_MODULE_ENABLE_VTK_IOParallel="YES" - -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="YES" - -DVTK_MODULE_ENABLE_VTK_IOParallelXML="YES" - -DVTK_MODULE_ENABLE_VTK_ParallelMPI="YES" - -DVTK_MODULE_ENABLE_VTK_h5part="YES" - -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF - ) - use imaging && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMPIImage="YES" ) - use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="YES" ) - if use rendering; then - mycmakeargs+=( - -DVTK_MODULE_ENABLE_VTK_RenderingParallel="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingParallelLIC="YES" - ) - fi - use vtkm && mycmakeargs+=( -DVTKm_ENABLE_MPI=ON ) - else - mycmakeargs+=( -DVTK_GROUP_ENABLE_MPI="NO" ) - fi - - use mysql && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMySQL="YES" ) - use odbc && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="YES" ) - use openvdb && mycmakeargs+=( -DOpenVDB_CMAKE_PATH="${ESYSROOT}/usr/$(get_libdir)/cmake/OpenVDB" ) - use postgres && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="YES" ) - - if use python; then - mycmakeargs+=( - -DPython3_EXECUTABLE="${PYTHON}" - -DVTK_ENABLE_WRAPPING=ON - -DVTK_MODULE_ENABLE_VTK_Python="YES" - -DVTK_MODULE_ENABLE_VTK_PythonInterpreter="YES" - -DVTK_MODULE_ENABLE_VTK_WrappingPythonCore="YES" - -DVTK_PYTHON_OPTIONAL_LINK="OFF" - -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages" - ) - use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_PythonContext2D="YES" ) - fi - - if use qt5; then - # prefer Qt5: https://wiki.gentoo.org/wiki/Project:qt/Policies - mycmakeargs+=( - -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml" - -DVTK_QT_VERSION="5" - ) - has_version "dev-qt/qtopengl:5[gles2-only]" || use gles2-only && mycmakeargs+=( - # Force using EGL & GLES - -DVTK_OPENGL_HAS_EGL=ON - -DVTK_OPENGL_USE_GLES=ON - ) - elif use qt6; then - mycmakeargs+=( - -DCMAKE_INSTALL_QMLDIR="${EPFREIX}/usr/$(get_libdir)/qt6/qml" - -DVTK_QT_VERSION="6" - ) - has_version "dev-qt/qtbase:6[gles2-only]" || use gles2-only && mycmakeargs+=( - # Force using EGL & GLES - -DVTK_OPENGL_HAS_EGL=ON - -DVTK_OPENGL_USE_GLES=ON - ) - else - mycmakeargs+=( -DVTK_GROUP_ENABLE_Qt="NO" ) - fi - - if use qt5 || use qt6; then - mycmakeargs+=( - -DVTK_GROUP_ENABLE_Qt:STRING="YES" - -DVTK_MODULE_ENABLE_VTK_GUISupportQt="YES" - -DVTK_MODULE_ENABLE_VTK_GUISupportQtQuick="YES" - ) - if use mysql || use postgres; then - mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="YES" ) - fi - if use rendering; then - mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="YES" ) - fi - if use views; then - mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="YES" ) - fi - fi - - if use rendering; then - mycmakeargs+=( - -DVTK_ENABLE_OSPRAY=OFF - - -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingAnnotation="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingContext2D="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingCore="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingExternal="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingGL2PSOpenGL2="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingHyperTreeGrid="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingLOD="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingLabel="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingOpenGL2="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingSceneGraph="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingUI="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingVolume="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingVolumeAMR="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingVolumeOpenGL2="YES" - -DVTK_MODULE_ENABLE_VTK_RenderingZSpace="NO" - -DVTK_MODULE_ENABLE_VTK_gl2ps="YES" - -DVTK_MODULE_ENABLE_VTK_glew="YES" - -DVTK_MODULE_ENABLE_VTK_opengl="YES" - - -DVTK_USE_SDL2="$(usex sdl "YES" "NO")" - ) - use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingMatplotlib="YES" ) - use tk && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingTk="YES" ) - use views && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsContext2D="YES" ) - use web && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingVtkJS="YES" ) - fi - - # Testing has been changed in 9.2.5: it is now allowed without - # requiring to download, if the data files are available locally! - if use test; then - mycmakeargs+=( - -DVTK_BUILD_TESTING=ON - # disable fetching data files for the default 'all' target - -DVTK_DATA_EXCLUDE_FROM_ALL=OFF - - # requested even if all use flags are off - -DVTK_MODULE_ENABLE_VTK_octree="YES" - -DVTK_MODULE_ENABLE_VTK_ViewsCore="YES" - - -DVTK_MODULE_USE_EXTERNAL_VTK_cli11="YES" - ) - else - mycmakeargs+=( -DVTK_BUILD_TESTING=OFF ) - fi - - # FIXME: upstream provides 4 threading models, as of 9.1.0. These are - # sequential, stdthread, openmp and tbb. AFAICS all of them can be - # enabled at the same time. Sequential and STDThread are enabled by - # default. The default selected type for the build is sequential. - # Assuming sequential < STDThread < openmp < tbb wrt speed, although - # this is dependent on the actual scenario where threading is used. - if use tbb; then - mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" ) - elif use openmp; then # FIXME doesn't work with clang - mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP" ) - elif use threads; then - mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="STDThread" ) - else - mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" ) - fi - - use tk && mycmakeargs+=( -DVTK_GROUP_ENABLE_Tk="YES" ) - - if use views; then - mycmakeargs+=( - -DVTK_MODULE_ENABLE_VTK_ViewsCore="YES" - -DVTK_MODULE_ENABLE_VTK_ViewsInfovis="YES" - ) - fi - - if use vtkm; then - mycmakeargs+=( - -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 - ) - fi - - if use web; then - mycmakeargs+=( - -DVTK_MODULE_ENABLE_VTK_WebCore="YES" - -DVTK_MODULE_ENABLE_VTK_WebGLExporter="YES" - ) - use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_WebPython="YES" ) - fi - - cmake_src_configure -} - -src_compile() { - use test && cmake_build VTKData - cmake_src_compile -} - -src_test() { - if use cuda; then - cuda_add_sandbox -w - fi - - # don't work at all - REALLY_BAD_TESTS=( - "VTK::RenderingRayTracing-HeaderTest$" # (Failed) # 82 - "VTK::RenderingFreeTypeFontConfigCxx-TestSystemFontRendering$" # (Failed) # 309 - "VTK::IOMPIParallelPython-MPI-Plot3DMPIIO$" # (Failed) # 376 - "VTK::IOExportPDFCxx-TestPDFTransformedText-VerifyRasterizedPDFPNG$" # (Failed) # 483 - # "VTK::IOExportGL2PSCxx-TestGL2PSExporterVolumeRaster$" # (Failed) # 494 - # "VTK::IOExportGL2PSCxx-TestGL2PSExporterVolumeRaster-VerifyRasterizedPNG$" # (Failed) # 518 - # "VTK::IOExportGL2PSCxx-TestGL2PSExporterVolumeRaster-VerifyRasterizedPDFPNG$" # (Failed) # 519 - "VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderItem$" # (Failed) # 732 - "VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderItemWidget$" # (Failed) # 733 - "VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderWindow$" # (Failed) # 734 - "VTK::FiltersSelectionCxx-TestLinearSelector3D$" # (Failed) # 1102 - "VTK::FiltersParallelDIY2Cxx-MPI-TestProbeLineFilter$" # (Failed) # 1180 - "VTK::FiltersFlowPathsCxx-TestEvenlySpacedStreamlines2D$" # (Failed) # 1215 - "VTK::ChartsCoreCxx-TestChartDoubleColors$" # (Failed) # 1555 - "VTK::ChartsCoreCxx-TestChartDoubleColorsOpaque$" # (Failed) # 1556 - "VTK::ChartsCoreCxx-TestParallelCoordinatesDouble$" # (Failed) # 1599 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMExternalFaces$" # (Failed) # 2142 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMHistogram$" # (Failed) # 2146 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMMarchingCubes$" # (Failed) # 2148 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMMarchingCubes2$" # (Failed) # 2149 - "VTK::FiltersGeneralCxx-TestContourTriangulatorHoles$" # (Failed) # 2305 - "VTK::FiltersCoreCxx-TestDecimatePolylineFilter$" # (Failed) # 2497 - "VTK::FiltersCorePython-TestSphereTreeFilter$" # (Failed) # 2617 - "VTK::CommonDataModelCxx-TestTriangle$" # (Failed) # 2770 - "VTK::CommonDataModelCxx-UnitTestCells$" # (Failed) # 2793 - "VTK::CommonDataModelCxx-TestHyperTreeGridGeometricLocator$" # (Failed) # 2799 - ) - - # don't work in src_test but when on their own - BAD_TESTS=( - "VTK::IOMotionFXCxx-TestMotionFXCFGReaderPositionFile$" # (Subprocess aborted) # 374 - - # "VTK::IOExportGL2PSCxx-TestGL2PSExporterVolumeRaster-RasterizePNG$" # (Not Run) # 517 - - "VTK::FiltersParallelDIY2Cxx-MPI-TestGhostCellsGenerator$" # (Timeout) # 1173 - "VTK::FiltersParallelDIY2Cxx-MPI-TestRedistributeDataSetFilterOnIOSS$" # (Timeout) # 1185 - "VTK::FiltersParallelDIY2Cxx-TestOverlappingCellsDetector$" # (Timeout) # 1193 - "VTK::FiltersParallelDIY2Cxx-TestRedistributeDataSetFilter$" # (Timeout) # 1196 - "VTK::FiltersParallelDIY2Cxx-TestRedistributeDataSetFilterOnIOSS$" # (Timeout) # 1197 - "VTK::FiltersParallelDIY2Cxx-TestRedistributeDataSetFilterWithPolyData$" # (Timeout) # 1198 - "VTK::CommonCoreCxx-TestSMP$" # 2945 - - # "VTK::IOMovieCxx-TestAVIWriter$" # (Skipped) # 470 - # "VTK::IOMovieCxx-TestMP4Writer$" # (Skipped) # 471 - - "VTK::RenderingMatplotlibCxx-TestContextMathTextImage$" # (NUMERICAL) # 243 - "VTK::RenderingMatplotlibCxx-TestMathTextActor$" # (NUMERICAL) # 244 - "VTK::RenderingMatplotlibCxx-TestMathTextActor3D$" # (NUMERICAL) # 245 - "VTK::RenderingMatplotlibCxx-TestRenderString$" # (NUMERICAL) # 246 - "VTK::RenderingMatplotlibCxx-TestStringToPath$" # (NUMERICAL) # 247 - "VTK::RenderingMatplotlibCxx-TestIndexedLookupScalarBar$" # (NUMERICAL) # 248 - "VTK::RenderingMatplotlibCxx-TestScalarBarCombinatorics$" # (NUMERICAL) # 249 - "VTK::RenderingLICOpenGL2Cxx-TestImageDataLIC2D$" # (NUMERICAL) # 266 - "VTK::RenderingLICOpenGL2Cxx-TestStructuredGridLIC2DXSlice$" # (NUMERICAL) # 267 - "VTK::RenderingLICOpenGL2Cxx-TestStructuredGridLIC2DYSlice$" # (NUMERICAL) # 268 - "VTK::RenderingLICOpenGL2Cxx-TestStructuredGridLIC2DZSlice$" # (NUMERICAL) # 269 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedDefaults$" # (NUMERICAL) # 270 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedBlended$" # (NUMERICAL) # 271 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedMapped$" # (NUMERICAL) # 272 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedEnhancedVectorNormalizeOff$" # (NUMERICAL) # 273 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedBlendedSmallGrain$" # (NUMERICAL) # 274 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedMappedSmallGrain$" # (NUMERICAL) # 275 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedMappedSmallVectorNormalizeOff$" # (NUMERICAL) # 276 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedDefaultsColor$" # (NUMERICAL) # 277 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorBlendedSmallGrain$" # (NUMERICAL) # 278 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorMappedSmallGrain$" # (NUMERICAL) # 279 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorBlendedSmallGrainMask$" # (NUMERICAL) # 280 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedColorMappedSmallGrainMask$" # (NUMERICAL) # 281 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICCurvedContrastEnhancedSmallGrainMask$" # (NUMERICAL) # 282 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarDefaults$" # (NUMERICAL) # 283 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarContrastEnhanced$" # (NUMERICAL) # 284 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarVectorNormalizeOff$" # (NUMERICAL) # 285 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarVectorNormalizeOffMediumGrainUniform$" # (NUMERICAL) # 286 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICPlanarVectorNormalizeOffMediumGrainPerlin$" # (NUMERICAL) # 287 - "VTK::RenderingLICOpenGL2Cxx-SurfaceLICMultiBlockContrastEnhancedPerlin$" # (NUMERICAL) # 288 - "VTK::RenderingExternalCxx-TestGLUTRenderWindow$" # (Failed) # 311 - "VTK::ImagingOpenGL2Cxx-TestOpenGLImageGradient$" # (NUMERICAL) # 722 - # "VTK::InteractionWidgetsCxx-TestPickingManagerSeedWidget$" # (Timeout) # 838 - "VTK::InteractionWidgetsCxx-TestResliceCursorWidget2$" # (Failed) # 847 - "VTK::InteractionWidgetsCxx-TestResliceCursorWidget3$" # (Failed) # 848 - "VTK::InteractionWidgetsPython-TestTensorWidget2$" # (Failed) # 919 - # "VTK::FiltersModelingPython-TestCookieCutter4$" # (Timeout) # 1319 - "VTK::RenderingOpenGL2Cxx-TestGlyph3DMapperPickability$" # (Failed) # 1404 - "VTK::RenderingCoreCxx-TestTextureRGBADepthPeeling$" # (Failed) # 2020 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMCleanGrid$" # (NUMERICAL) # 2138 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMClip$" # (NUMERICAL) # 2140 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMClipWithImplicitFunction$" # (NUMERICAL) # 2141 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMExtractVOI$" # (NUMERICAL) # 2143 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMLevelOfDetail$" # (NUMERICAL) # 2147 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMPointElevation$" # (NUMERICAL) # 2152 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMPointTransform$" # (NUMERICAL) # 2153 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMPolyDataNormals$" # (NUMERICAL) # 2155 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMThreshold$" # (NUMERICAL) # 2157 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMThreshold2$" # (NUMERICAL) # 2158 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMTriangleMeshPointNormals$" # (NUMERICAL) # 2159 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMWarpScalar$" # (NUMERICAL) # 2160 - "VTK::AcceleratorsVTKmFiltersCxx-TestVTKMWarpVector$" # (NUMERICAL) # 2161 - "VTK::AcceleratorsVTKmCoreCxx-TestVTKMImplicitDataArray$" # (NUMERICAL) # 2897 - ) - - SEQUENTIAL_TESTS=( - # TODO requires die -n - # "VTK::IOExportGL2PSCxx-.*$" - "VTK::IOExportGL2PSCxx-TestGL2PSBillboardTextActor3D$" - "VTK::IOExportGL2PSCxx-TestGL2PSContext$" - "VTK::IOExportGL2PSCxx-TestGL2PSLabeledDataMapper$" - "VTK::IOExportGL2PSCxx-TestGL2PSScalarBar$" - "VTK::IOExportGL2PSCxx-TestGL2PSTextActor3D$" - "VTK::IOExportGL2PSCxx-TestGL2PSTextActor$" - "VTK::IOExportGL2PSCxx-TestGL2PSTextMapper$" - "VTK::IOExportGL2PSCxx-TestStackedPlotGL2PS$" - "VTK::IOExportGL2PSCxx-TestGL2PSExporterMultipleRenderers$" - "VTK::IOExportGL2PSCxx-TestGL2PSExporterRaster$" - # "VTK::IOExportGL2PSCxx-TestGL2PSExporterVolumeRaster$" # (Failed) # 494 - "VTK::IOExportGL2PSCxx-TestGL2PSBillboardTextActor3D-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSBillboardTextActor3D-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSContext-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSContext-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSLabeledDataMapper-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSLabeledDataMapper-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSScalarBar-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSScalarBar-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSTextActor3D-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSTextActor3D-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSTextActor-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSTextActor-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSTextMapper-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSTextMapper-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestStackedPlotGL2PS-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestStackedPlotGL2PS-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSExporterMultipleRenderers-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSExporterMultipleRenderers-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSExporterMultipleRenderers-VerifyRasterizedPDFPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSExporterRaster-RasterizePNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSExporterRaster-VerifyRasterizedPNG$" - "VTK::IOExportGL2PSCxx-TestGL2PSExporterRaster-VerifyRasterizedPDFPNG$" - # "VTK::IOExportGL2PSCxx-TestGL2PSExporterVolumeRaster-RasterizePNG$" # (Not Run) # 517 - # "VTK::IOExportGL2PSCxx-TestGL2PSExporterVolumeRaster-VerifyRasterizedPNG$" # (Failed) # 518 - # "VTK::IOExportGL2PSCxx-TestGL2PSExporterVolumeRaster-VerifyRasterizedPDFPNG$" # (Failed) # 519 - "VTK::InteractionWidgetsCxx-TestPickingManagerSeedWidget$" # (Timeout) # 838 - "VTK::FiltersModelingPython-TestCookieCutter4$" # (Timeout) # 1319 - ) - - CMAKE_SKIP_TESTS=( - "${BAD_TESTS[@]}" - "${REALLY_BAD_TESTS[@]}" - "${SEQUENTIAL_TESTS[@]}" - ) - - virtx cmake_src_test - unset CMAKE_SKIP_TESTS - - myctestargs=( - -R "($( IFS='|'; echo "${SEQUENTIAL_TESTS[*]}"))" - -j1 - ) - # TODO requires die -n - # nonfatal \ - virtx cmake_src_test || einfo "These tests are known to fail" - - # TODO requires die -n - # myctestargs=( - # -R "($( IFS='|'; echo "${REALLY_BAD_TESTS[*]}"))" - # --timeout 600 - # ) - # nonfatal \ - # virtx cmake_src_test || einfo "These tests are known to fail" - - # TODO requires die -n - # myctestargs=( - # -R "($( IFS='|'; echo "${BAD_TESTS[*]}"))" - # --timeout 600 - # ) - # nonfatal \ - # virtx cmake_src_test || einfo "These tests are known to only fail inside src_test" -} - -src_install() { - use web && webapp_src_preinst - - # Stop web page images from being compressed - if use doc; then - HTML_DOCS=( "${WORKDIR}/html/." ) - fi - - cmake_src_install - - use java && java-pkg_regjar "${ED}/usr/share/${PN}/${PN}.jar" - - # install examples - if use examples; then - einfo "Installing examples" - mv -v {E,e}xamples || die - dodoc -r examples - docompress -x "/usr/share/doc/${PF}/examples" - - einfo "Installing datafiles" - insinto "/usr/share/${PN}/data" - doins -r "${S}/.ExternalData" - fi - - use python && python_optimize - - use web && webapp_src_install -} - -# webapp.eclass exports these but we want it optional #534036 -pkg_postinst() { - use web && webapp_pkg_postinst - - if use examples; then - einfo "You can get more and updated examples at" - einfo "https://kitware.github.io/vtk-examples/site/" - fi -} - -pkg_prerm() { - use web && webapp_pkg_prerm -} |