From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/symengine/
Date: Thu, 27 Jun 2024 12:18:24 +0000 (UTC) [thread overview]
Message-ID: <1719490664.8c3c4a208704296e233e89d61a251edb38112dd9.mjo@gentoo> (raw)
commit: 8c3c4a208704296e233e89d61a251edb38112dd9
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 27 12:12:06 2024 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Jun 27 12:17:44 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c3c4a20
sci-libs/symengine: add 0.12.0
This version uses flint-3.x, which includes the package formerly known
as sci-mathematics/arb. As a result we can drop the arb dependency;
and when this version is stable, we can mask sci-mathematics/arb.
Upstream still offers -DWITH_ARB, but plan to remove it soon,
https://github.com/symengine/symengine/issues/2014
so I have removed it from the ebuild ahead of time. The use of arb is
now goverened by USE=flint.
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
sci-libs/symengine/Manifest | 1 +
sci-libs/symengine/symengine-0.12.0.ebuild | 99 ++++++++++++++++++++++++++++++
2 files changed, 100 insertions(+)
diff --git a/sci-libs/symengine/Manifest b/sci-libs/symengine/Manifest
index b5add05ebc62..94cdf67fc5f3 100644
--- a/sci-libs/symengine/Manifest
+++ b/sci-libs/symengine/Manifest
@@ -1 +1,2 @@
DIST symengine-0.11.1.tar.gz 898181 BLAKE2B ef14e09ceb7e9783711ca7f9f06a59362c40222e7f85de5545be834ecd79bbf41fcd34141bb3a63c106ee45067dd0b957377f937097183ffd5b93c6943976571 SHA512 076aac35428589c5b3524a46bd939a3a3a7da44b1c866b5f71487678b27b6e48b4da034029f1630881d7713a9252e905411a04b8016c9ec56a608b6de23365ac
+DIST symengine-0.12.0.tar.gz 898768 BLAKE2B 81bca3f59e864d2e37598a058cb4db97b1f9c8536ee841c10df6f01c6322fa744281ecdeb338e5bf33bf599ead66adcaaa724650535df9b3d4bd7f07e22a3ad2 SHA512 fbc73a75299c19155a09f1854888a5050150aaad5bc3df683d43e8036af8005f8152a36ae79029e00bc8422c3edd7252baaf3a0da6a21d1d754d80a44c5c68bf
diff --git a/sci-libs/symengine/symengine-0.12.0.ebuild b/sci-libs/symengine/symengine-0.12.0.ebuild
new file mode 100644
index 000000000000..8511224ebba8
--- /dev/null
+++ b/sci-libs/symengine/symengine-0.12.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT=18
+inherit cmake llvm toolchain-funcs
+
+DESCRIPTION="Fast symbolic manipulation library, written in C++"
+HOMEPAGE="https://github.com/symengine/symengine"
+SRC_URI="https://github.com/symengine/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+# BUILD_FOR_DISTRIBUTION enables threads by default so do it here
+IUSE="benchmarks boost debug doc ecm +flint llvm +mpc +mpfr openmp test tcmalloc +threads"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/gmp:=
+ sys-libs/binutils-libs:=
+ boost? ( dev-libs/boost:= )
+ ecm? ( sci-mathematics/gmp-ecm )
+ flint? ( sci-mathematics/flint:= )
+ mpc? ( dev-libs/mpc:= )
+ mpfr? ( dev-libs/mpfr:= )
+ llvm? ( <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):= )
+ tcmalloc? ( dev-util/google-perftools )
+"
+DEPEND="
+ ${RDEPEND}
+ dev-libs/cereal
+"
+BDEPEND="doc? ( app-text/doxygen[dot] )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.7.0-cmake-build-type.patch
+ "${FILESDIR}"/${PN}-0.8.1-fix_llvm.patch
+)
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
+ use llvm && llvm_pkg_setup
+}
+
+src_prepare() {
+ cmake_src_prepare
+
+ sed -e "s|DESTINATION doc| DESTINATION share/doc/${PF}/html|" \
+ -e "s|/lib|/$(get_libdir)|g" \
+ -e "s|lib/|$(get_libdir)/|g" \
+ -e "/DESTINATION/s|lib|$(get_libdir)|g" \
+ -i CMakeLists.txt symengine/CMakeLists.txt \
+ symengine/utilities/teuchos/CMakeLists.txt || die
+}
+
+src_configure() {
+ # not in portage yet: piranha
+ local int_class
+
+ if use flint; then
+ int_class=flint
+ elif use mpfr; then
+ int_class=gmpxx
+ elif use boost; then
+ int_class=boostmp
+ else
+ int_class=gmp
+ fi
+
+ einfo "Building with integer class: ${int_class}"
+
+ local mycmakeargs=(
+ -DINTEGER_CLASS=${int_class}
+ -DBUILD_BENCHMARKS=$(usex benchmarks)
+ -DBUILD_DOXYGEN=$(usex doc)
+ -DBUILD_TESTS=$(usex test)
+ -DWITH_BFD=$(usex debug)
+ -DWITH_SYMENGINE_ASSERT=$(usex debug)
+ -DWITH_SYMENGINE_THREAD_SAFE=$(usex threads)
+ -DWITH_FLINT=$(usex flint)
+ -DWITH_OPENMP=$(usex openmp)
+ -DWITH_MPFR=$(usex mpfr)
+ -DWITH_MPC=$(usex mpc)
+ -DWITH_LLVM=$(usex llvm)
+ -DWITH_PTHREAD=$(usex threads)
+ -DWITH_TCMALLOC=$(usex tcmalloc)
+ -DWITH_ECM=$(usex ecm)
+ -DWITH_SYSTEM_CEREAL=ON
+ )
+
+ cmake_src_configure
+}
next reply other threads:[~2024-06-27 12:18 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-27 12:18 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-08 11:57 [gentoo-commits] repo/gentoo:master commit in: sci-libs/symengine/ Arthur Zamarin
2025-02-18 7:35 Michał Górny
2025-01-18 10:32 Arthur Zamarin
2025-01-06 7:08 WANG Xuerui
2025-01-04 16:35 Sam James
2025-01-04 16:17 Sam James
2025-01-01 8:56 Joonas Niilola
2024-12-31 8:15 Sam James
2024-12-31 8:07 Michał Górny
2024-12-31 8:07 Michał Górny
2024-07-15 1:39 Sam James
2024-07-15 0:05 Sam James
2023-11-29 18:38 Arthur Zamarin
2023-11-29 18:06 Michał Górny
2023-11-25 6:12 Sam James
2023-10-03 23:53 Sam James
2023-06-12 8:24 Arthur Zamarin
2023-04-16 12:11 WANG Xuerui
2023-03-24 2:57 Sam James
2023-03-22 9:20 Sam James
2022-11-18 17:29 Arthur Zamarin
2022-09-11 18:13 Sam James
2022-09-11 18:13 Sam James
2022-06-11 6:57 Matthias Maier
2022-06-11 6:50 Matthias Maier
2022-05-16 8:12 David Seifert
2022-03-29 8:49 Yixun Lan
2022-03-09 9:19 Agostino Sarubbo
2022-03-07 16:20 Agostino Sarubbo
2022-02-22 5:40 Yixun Lan
2022-02-21 3:17 Sam James
2022-02-21 2:49 Sam James
2021-12-30 19:10 Arthur Zamarin
2021-12-30 19:04 Arthur Zamarin
2021-12-14 19:52 Andrew Ammerlaan
2021-11-22 3:07 Yixun Lan
2021-05-04 7:03 Agostino Sarubbo
2021-04-30 15:23 Agostino Sarubbo
2020-10-27 19:58 Sam James
2020-10-27 5:11 Sam James
2020-08-31 14:15 Sam James
2020-08-31 13:49 Sam James
2020-08-30 23:18 Sam James
2020-05-02 20:15 Matthias Maier
2020-03-09 12:48 Agostino Sarubbo
2020-03-09 12:39 Agostino Sarubbo
2020-03-08 17:46 Andreas Sturmlechner
2020-03-08 17:46 Andreas Sturmlechner
2020-03-08 16:16 Andreas Sturmlechner
2020-03-08 16:02 Andreas Sturmlechner
2019-12-28 11:57 罗百科
2019-04-09 3:16 Matthias Maier
2017-08-16 18:12 Sebastien Fabbro
2017-08-03 17:33 Sebastien Fabbro
2017-07-26 20:07 Sebastien Fabbro
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=1719490664.8c3c4a208704296e233e89d61a251edb38112dd9.mjo@gentoo \
--to=mjo@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