commit:     653bf7ba261119205416698318efef93bd8892c9
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  2 21:30:20 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 22:57:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=653bf7ba

sci-libs/m4rie: add a subslot dep for sci-libs/m4ri

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

 sci-libs/m4rie/m4rie-20250103-r2.ebuild | 41 +++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/sci-libs/m4rie/m4rie-20250103-r2.ebuild 
b/sci-libs/m4rie/m4rie-20250103-r2.ebuild
new file mode 100644
index 000000000000..f18c4c4c35e5
--- /dev/null
+++ b/sci-libs/m4rie/m4rie-20250103-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Fast dense matrix arithmetic over GF(2^e) for 2 <= e <= 16"
+HOMEPAGE="https://github.com/malb/m4rie";
+SRC_URI="https://github.com/malb/${PN}/archive/refs/tags/release-${PV}.tar.gz";
+
+S="${WORKDIR}/${PN}-release-${PV}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="debug"
+
+DEPEND=">sci-libs/m4ri-20240729:="
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-pkgconfig-r1.patch" )
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       # m4rie doesn't actually have any openmp code. The configure flag
+       # stems from a mistaken belief that it needs to be there to use the
+       # openmp code in m4ri.
+       econf \
+               --disable-openmp \
+               $(use_enable debug)
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to