commit:     7b7653340a8e949003c038a3bc6cb9c2703fbe4c
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 26 14:56:17 2021 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sun Dec 26 14:56:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b765334

sci-mathematics/primecount: new revision to fix popcnt usage.

I completely forgot this was part of cpu_flags_x86. Now we disable it
when the CPU does not support it.

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 .../primecount/{primecount-7.2.ebuild => primecount-7.2-r1.ebuild}     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sci-mathematics/primecount/primecount-7.2.ebuild 
b/sci-mathematics/primecount/primecount-7.2-r1.ebuild
similarity index 91%
rename from sci-mathematics/primecount/primecount-7.2.ebuild
rename to sci-mathematics/primecount/primecount-7.2-r1.ebuild
index 1e394a48459e..4a994b461a06 100644
--- a/sci-mathematics/primecount/primecount-7.2.ebuild
+++ b/sci-mathematics/primecount/primecount-7.2-r1.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/kimwalisch/${PN}/archive/refs/tags/v${PV}.tar.gz ->
 LICENSE="BSD-2"
 SLOT="0/7"  # subslot is first component of libprimecount.so version
 KEYWORDS="~amd64"
-IUSE="+executable openmp test"
+IUSE="cpu_flags_x86_popcnt +executable openmp test"
 RESTRICT="!test? ( test )"
 
 DEPEND="sci-mathematics/primesieve:="
@@ -42,6 +42,7 @@ src_configure() {
                -DBUILD_STATIC_LIBS="OFF"
                -DBUILD_TESTS="$(usex test)"
                -DWITH_OPENMP="$(usex openmp)"
+               -DWITH_POPCNT="$(usex cpu_flags_x86_popcnt)"
        )
 
        cmake_src_configure

Reply via email to