From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4313215812D for ; Fri, 03 Jan 2025 22:08:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65B90E079E; Fri, 03 Jan 2025 22:08:39 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4C3F6E079E for ; Fri, 03 Jan 2025 22:08:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 763E5335DC7 for ; Fri, 03 Jan 2025 22:08:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C362497F for ; Fri, 03 Jan 2025 22:08:36 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1735942066.d7bafc2cdaaf278cf586c986d445527c13085cdc.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/manifold/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/manifold/Manifest sci-mathematics/manifold/manifold-3.0.1.ebuild sci-mathematics/manifold/metadata.xml X-VCS-Directories: sci-mathematics/manifold/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d7bafc2cdaaf278cf586c986d445527c13085cdc X-VCS-Branch: master Date: Fri, 03 Jan 2025 22:08:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6875e251-3da2-4079-946a-53fd5e32ced2 X-Archives-Hash: f4437afec61f6ceed78f70184677eb01 commit: d7bafc2cdaaf278cf586c986d445527c13085cdc Author: Paul Zander gmail com> AuthorDate: Fri Jan 3 16:23:03 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 3 22:07:46 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7bafc2c sci-mathematics/manifold: add 3.0.1 Signed-off-by: Paul Zander gmail.com> Signed-off-by: Sam James gentoo.org> sci-mathematics/manifold/Manifest | 1 + sci-mathematics/manifold/manifold-3.0.1.ebuild | 83 ++++++++++++++++++++++++++ sci-mathematics/manifold/metadata.xml | 3 + 3 files changed, 87 insertions(+) diff --git a/sci-mathematics/manifold/Manifest b/sci-mathematics/manifold/Manifest index 58b71739343e..2863e320ac7b 100644 --- a/sci-mathematics/manifold/Manifest +++ b/sci-mathematics/manifold/Manifest @@ -1 +1,2 @@ DIST manifold-3.0.0_pre20241115.tar.gz 29143605 BLAKE2B 84c3e4c98a9279187660f31e4010097de431472412f2591943c99195edad9f700115df4b362d968b95e3ee136c699eecf2dc9845001019f71e9cf7b0cbca4d0e SHA512 bae671d190d8fbfc0ee12989a73a38d7d0ddf0e0081db8f56a446c09998e24f43828d70731f97d6948599f31ef6734f86183debc09f4cec07983af317ce0dba8 +DIST manifold-3.0.1.tar.gz 29246794 BLAKE2B 342cc6a3f125613e2d8837f04936bfce0fd2bf6cc6390bf2924916f74e5528d0f082c17a646a52255f4c4087359fd312ee43a4b5661d6682fd8f1e98eaa905cf SHA512 6970d7b30a0174eacd0a7f74d8e9647150f44144237815d6539a0669fcc74b5ddf336d12d1ee57b18ad6a97d8b58501cfe4072f9fd12c88395714471cb654f5a 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 @@ elalish/manifold + + Enable Parallel backend with dev-cpp/tbb +