public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: profiles/base/, sci-libs/symengine/
@ 2022-02-21  3:17 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-02-21  3:17 UTC (permalink / raw
  To: gentoo-commits

commit:     381c712ea96ac4f907a6bbe64a1ed7729632442d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 21 03:14:58 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 21 03:14:58 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=381c712e

sci-libs/symengine: mask USE=llvm

Needs some build system work and I can't get to the bottom of it right now.

Bug: https://bugs.gentoo.org/745915
Signed-off-by: Sam James <sam <AT> gentoo.org>

 profiles/base/package.use.mask            |  5 +++++
 sci-libs/symengine/symengine-0.9.0.ebuild | 12 ++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask
index 447aa333b97f..17be4f3fbd94 100644
--- a/profiles/base/package.use.mask
+++ b/profiles/base/package.use.mask
@@ -6,6 +6,11 @@
 # This file is only for generic masks. For arch-specific masks (i.e.
 # mask everywhere, unmask on arch/*) use arch/base.
 
+# Sam James <sam@gentoo.org> (2022-02-21)
+# Needs build system love to make LLVM support work.
+# bug #745915
+sci-libs/symengine llvm
+
 # Marek Szuba <marecki@gentoo.org> (2022-02-07)
 # Deprecated back-end with known stability and data-corruption issues,
 # likely to be removed in gramps-5.2.0.

diff --git a/sci-libs/symengine/symengine-0.9.0.ebuild b/sci-libs/symengine/symengine-0.9.0.ebuild
index 410eda0d44e7..fa93ed6e4d1f 100644
--- a/sci-libs/symengine/symengine-0.9.0.ebuild
+++ b/sci-libs/symengine/symengine-0.9.0.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=8
 
-inherit cmake toolchain-funcs
+LLVM_MAX_SLOT=13
+inherit cmake llvm toolchain-funcs
 
 DESCRIPTION="Fast symbolic manipulation library, written in C++"
 HOMEPAGE="https://github.com/symengine/symengine"
@@ -13,7 +14,7 @@ LICENSE="MIT"
 SLOT="0/$(ver_cut 1-2)"
 KEYWORDS="~amd64 ~arm64 ~x86"
 # BUILD_FOR_DISTRIBUTION enables threads by default so do it here
-IUSE="arb benchmarks boost debug doc ecm flint llvm mpc mpfr openmp test tcmalloc +threads"
+IUSE="arb benchmarks boost debug doc ecm +flint llvm +mpc +mpfr openmp test tcmalloc +threads"
 RESTRICT="!test? ( test )"
 
 RDEPEND="dev-libs/gmp:=
@@ -23,6 +24,7 @@ RDEPEND="dev-libs/gmp:=
 	ecm? ( sci-mathematics/gmp-ecm )
 	flint? ( sci-mathematics/flint:= )
 	mpc? ( dev-libs/mpc:= )
+	llvm? ( <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):= )
 	tcmalloc? ( dev-util/google-perftools )"
 DEPEND="${RDEPEND}
 	dev-libs/cereal"
@@ -36,6 +38,12 @@ pkg_pretend() {
 	use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
 }
 
+pkg_setup() {
+	use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+
+	use llvm && llvm_pkg_setup
+}
+
 src_prepare() {
 	cmake_src_prepare
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-21  3:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-21  3:17 [gentoo-commits] repo/gentoo:master commit in: profiles/base/, sci-libs/symengine/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox