commit:     2ea96e19882abef64fe57efceb77c3ea68b44063
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 12:28:56 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 12:28:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ea96e19

sci-libs/m4ri: add 20250128

Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-libs/m4ri/Manifest             |  1 +
 sci-libs/m4ri/m4ri-20250128.ebuild | 48 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/sci-libs/m4ri/Manifest b/sci-libs/m4ri/Manifest
index 9da03494abb6..16910dfe6762 100644
--- a/sci-libs/m4ri/Manifest
+++ b/sci-libs/m4ri/Manifest
@@ -1 +1,2 @@
+DIST m4ri-20250128.tar.gz 530551 BLAKE2B 
c740e40f3cbcf3f5a9f269fd6a923e8206942b78582c21fe77831a9978d41215801a50749111b91c70433bf4a5da69d2d05da3d66c06ef7546111b83f8696be1
 SHA512 
698876c6250a61ec482bb36b56ef35226e1f2e08363511c2aa7de2ff066bc0cf13698c866e44ccef2aae05de44f46dda54a2f6012ebdc26032014d5176bef482
 DIST release-20240729.tar.gz 178851 BLAKE2B 
7a8bee1417da56d561add3b2e7d79f005f03ebf825a150a105d14caeb64b75ba4e30658b616a03cedc49d4e5c1b1a70393c6d5c6231bb1ba35abf20aaf93fb2e
 SHA512 
afd74b0f9a1e3f16b313dca9a73fde85bd08aa431f0ad7064f09600434f27d6cabddc117cf99396dc8d83d245f81b7ed4185e305caad56dad79ecfefc11cf817

diff --git a/sci-libs/m4ri/m4ri-20250128.ebuild 
b/sci-libs/m4ri/m4ri-20250128.ebuild
new file mode 100644
index 000000000000..d02656a6717f
--- /dev/null
+++ b/sci-libs/m4ri/m4ri-20250128.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Method of four russian for inversion (M4RI)"
+HOMEPAGE="https://github.com/malb/m4ri";
+SRC_URI="https://github.com/malb/${PN}/releases/download/${PV}/${P}.tar.gz";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos"
+IUSE="debug openmp cpu_flags_x86_sse2 png"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="png? ( media-libs/libpng:= )"
+RDEPEND="${DEPEND}"
+
+# NEWS and ChangeLog are empty as of 2025-06-02.
+DOCS=( AUTHORS README.md )
+
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+       # when using openmp and -O0 the testsuite fails
+       # https://github.com/cschwan/sage-on-gentoo/issues/475
+       # Still current as of 20200115
+       use openmp && replace-flags -O0 -O1
+
+       econf \
+               $(use_enable debug) \
+               $(use_enable openmp) \
+               $(use_enable png) \
+               $(use_enable cpu_flags_x86_sse2 sse2)
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to