diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-04 06:31:29 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-04 06:31:29 +0000 |
commit | 38efae7f3eb932ed41510139679efd5c1e2f5eda (patch) | |
tree | d331259e03d114338bc5a96a883b728facdc4cde /sci-mathematics/manifold | |
parent | 5087ee3bf0055aae666159351774f2fb3610e571 (diff) |
gentoo auto-resync : 04:01:2025 - 06:31:29
Diffstat (limited to 'sci-mathematics/manifold')
-rw-r--r-- | sci-mathematics/manifold/Manifest | 6 | ||||
-rw-r--r-- | sci-mathematics/manifold/manifold-3.0.0_pre20241115.ebuild | 4 | ||||
-rw-r--r-- | sci-mathematics/manifold/manifold-3.0.1.ebuild | 83 | ||||
-rw-r--r-- | sci-mathematics/manifold/metadata.xml | 3 |
4 files changed, 92 insertions, 4 deletions
diff --git a/sci-mathematics/manifold/Manifest b/sci-mathematics/manifold/Manifest index 14d1445cd7f1..5f8ebed69bef 100644 --- a/sci-mathematics/manifold/Manifest +++ b/sci-mathematics/manifold/Manifest @@ -1,3 +1,5 @@ DIST manifold-3.0.0_pre20241115.tar.gz 29143605 BLAKE2B 84c3e4c98a9279187660f31e4010097de431472412f2591943c99195edad9f700115df4b362d968b95e3ee136c699eecf2dc9845001019f71e9cf7b0cbca4d0e SHA512 bae671d190d8fbfc0ee12989a73a38d7d0ddf0e0081db8f56a446c09998e24f43828d70731f97d6948599f31ef6734f86183debc09f4cec07983af317ce0dba8 -EBUILD manifold-3.0.0_pre20241115.ebuild 1387 BLAKE2B f822a6bfb3f185238933ec6155531fd583415173a787f0fbd7520138640e9398eb802d267084eebb0cc7006ee61d38e5558a3c197d34c31fd8ae89c8eadc6f21 SHA512 5f20b574f3deee938922ec6bb692a889ad010b06f168cbcca157ae0b0e0001288eac2a74b5e0b3f9e615c875816cc27f29611242cf569486c91d05d261106aae -MISC metadata.xml 482 BLAKE2B a1ed362e614bdc51ee074bdc98f70484d0131cd2618e5d0c59292cc8916f62bee96510b811f96916dcf1685bab2ea5eb88ede1ee99304b35644d6f96089b69cf SHA512 b4f7d4e3a3905f6b6c9895cabb971829c1e6cf7635f0a3158233a987a1dc37e931a7652ff27a0ddc72fd83d28a8834f939cec4045a9f276841a7346cbd4bf136 +DIST manifold-3.0.1.tar.gz 29246794 BLAKE2B 342cc6a3f125613e2d8837f04936bfce0fd2bf6cc6390bf2924916f74e5528d0f082c17a646a52255f4c4087359fd312ee43a4b5661d6682fd8f1e98eaa905cf SHA512 6970d7b30a0174eacd0a7f74d8e9647150f44144237815d6539a0669fcc74b5ddf336d12d1ee57b18ad6a97d8b58501cfe4072f9fd12c88395714471cb654f5a +EBUILD manifold-3.0.0_pre20241115.ebuild 1386 BLAKE2B e1f704f06c217079f7f162b6a4930b951d5e996dfdb4b850940de9aee186a57e64b7c7291875e2af79ddbd52501984701b5b83afffbf641a9e32383d174d7e4a SHA512 821e47176c75c4d3ab5d4dd8471725e064df2f7668b801ed0736ec28a2dc85ec458f4b4568538fc9f9ad453a2e9a313e4391218ef1b2455329967e154141ab7f +EBUILD manifold-3.0.1.ebuild 1725 BLAKE2B 0aca4377ec0939337389f6adac21e933b0f6e3c26d8e2ca41befe95072a2e191f612f56baeb319733d787611d5414be3f0731dd9ef0c6533ca36493c710ca80b SHA512 18ab5e84e08bf795e39610fc8a947c86a5480d0d0c7bddc15b4c0ece7dfbb59d0b5e09679ceb1df3c418014547aca75cbee21c0187740f17e0db2a708655dc6f +MISC metadata.xml 575 BLAKE2B f8f7e2de3f7c2198603a2315148bb25c6230d5fca15aa123f84a4449b6017872f2a1f6be8ac80f7d86143153f741cdb626e0ece3d3801abc2ba1eff88ba6d246 SHA512 ada6bf6ce31c171009b7238ba9e9079b6aff961cbf3aec6f2427793a004c5a4e1cd8ccb7a86d9c2d7f20c831fce790de4c3c386c1d2fa6927c779fffe73da4e8 diff --git a/sci-mathematics/manifold/manifold-3.0.0_pre20241115.ebuild b/sci-mathematics/manifold/manifold-3.0.0_pre20241115.ebuild index 3e6c99c118e9..fe78b17187a5 100644 --- a/sci-mathematics/manifold/manifold-3.0.0_pre20241115.ebuild +++ b/sci-mathematics/manifold/manifold-3.0.0_pre20241115.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 @@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}-${COMMIT}" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" IUSE="debug python test" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" diff --git a/sci-mathematics/manifold/manifold-3.0.1.ebuild b/sci-mathematics/manifold/manifold-3.0.1.ebuild new file mode 100644 index 000000000000..966bc371e5ed --- /dev/null +++ b/sci-mathematics/manifold/manifold-3.0.1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake python-single-r1 + +DESCRIPTION="Geometry library for topological robustness" +HOMEPAGE="https://github.com/elalish/manifold" + +if [[ ${PV} = *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/elalish/manifold.git" +else + if [[ ${PV} = *pre* ]] ; then + COMMIT="e7e0780114881dcf6e5ad934323f2595966865f9" + SRC_URI="https://github.com/elalish/manifold/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + else + SRC_URI="https://github.com/elalish/manifold/releases/download/v${PV}/${P}.tar.gz" + fi + + KEYWORDS="~amd64" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +IUSE="debug python +tbb test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RESTRICT="!test? ( test )" + +RDEPEND=" + tbb? ( dev-cpp/tbb:= ) + sci-mathematics/clipper2 + python? ( ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ') + ) +" +DEPEND=" + python? ( + $(python_gen_cond_dep ' + >=dev-python/nanobind-2.1.0[${PYTHON_USEDEP}] + ') + ) + test? ( dev-cpp/gtest ) + ${RDEPEND} +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + + sed \ + -e "/list(APPEND MANIFOLD_FLAGS/s/^/# DONOTSET /" \ + -i CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DMANIFOLD_CROSS_SECTION="yes" + -DMANIFOLD_DEBUG="$(usex debug)" + -DMANIFOLD_DOWNLOADS="no" + -DMANIFOLD_EXPORT="no" + -DMANIFOLD_JSBIND="no" + -DMANIFOLD_PAR="$(usex tbb ON OFF)" + -DMANIFOLD_PYBIND="$(usex python)" + -DMANIFOLD_TEST="$(usex test)" + ) + + cmake_src_configure +} + +src_test() { + "${BUILD_DIR}/test/manifold_test" || die +} diff --git a/sci-mathematics/manifold/metadata.xml b/sci-mathematics/manifold/metadata.xml index 7a2cd57d4d26..041754cb8dc3 100644 --- a/sci-mathematics/manifold/metadata.xml +++ b/sci-mathematics/manifold/metadata.xml @@ -12,4 +12,7 @@ <upstream> <remote-id type="github">elalish/manifold</remote-id> </upstream> + <use> + <flag name="tbb">Enable Parallel backend with <pkg>dev-cpp/tbb</pkg></flag> + </use> </pkgmetadata> |