diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /sci-libs/m4rie | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'sci-libs/m4rie')
| -rw-r--r-- | sci-libs/m4rie/Manifest | 2 | ||||
| -rw-r--r-- | sci-libs/m4rie/files/m4rie-20250103-pkgconfig-r1.patch | 40 | ||||
| -rw-r--r-- | sci-libs/m4rie/m4rie-20250103-r1.ebuild | 41 | ||||
| -rw-r--r-- | sci-libs/m4rie/m4rie-20250103-r2.ebuild | 41 | ||||
| -rw-r--r-- | sci-libs/m4rie/m4rie-20250128.ebuild | 25 | ||||
| -rw-r--r-- | sci-libs/m4rie/metadata.xml | 21 |
6 files changed, 170 insertions, 0 deletions
diff --git a/sci-libs/m4rie/Manifest b/sci-libs/m4rie/Manifest new file mode 100644 index 000000000000..e89aa5d7365e --- /dev/null +++ b/sci-libs/m4rie/Manifest @@ -0,0 +1,2 @@ +DIST m4rie-20250128.tar.gz 442587 BLAKE2B b320c74dca7129929699ee03d93e722bb360a6497cd578a8890d49e6d056d9a5888dcd6eb09ada4f45f42145f831fdfa37c53fcb3fd3047f5e60a5a921f65811 SHA512 1d41c907ffed5d455f238283c5f2f6038ab92c1c3083e1b988ee0db531a99a626dc0c8dfdb8144b5239c6f5a263863006bc38359fdf6fd8d0ab3025df0474224 +DIST release-20250103.tar.gz 167745 BLAKE2B b4f76e51ef9561ce7fc10c0fc0f50c8ebff1c65c9e4c51d0f120db48a9b4b4417057c2bb919b6a4d1ba23f68179c59e2a5d97063063654723f210a5d10d0e5ce SHA512 8fd80fa265d234101ee56f464a59ce5aaf0f3c600e70ee9495ec490d06b758e0073a084474ad72d79d8ade5ac4421c53ed6b12cbaaaeda96287d94137c8c61b1 diff --git a/sci-libs/m4rie/files/m4rie-20250103-pkgconfig-r1.patch b/sci-libs/m4rie/files/m4rie-20250103-pkgconfig-r1.patch new file mode 100644 index 000000000000..191a90c982fc --- /dev/null +++ b/sci-libs/m4rie/files/m4rie-20250103-pkgconfig-r1.patch @@ -0,0 +1,40 @@ +From e399e88566a0a96ec8d0ee010052a987c5d83e0f Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Mon, 20 Jan 2025 22:55:08 -0500 +Subject: [PATCH] m4rie.pc.in: improve compiler/linker flag handling + + 1. List m4ri in Requires. This will automatically add -lm4ri during + linking. + + 2. Move $OPENMP_CFLAGS to Libs.private. Consumers of m4rie do not + need to enable OpenMP at compile time to avoid problems, only at + link time, and only when statically linking. In particular we want + to _avoid_ enabling OpenMP by "accident" in a larger project that + makes use of m4rie. + + 3. Drop $M4RI_CFLAGS. There's just... no reason to add these here. + In theory if M4RI had some important -D flags, they would go here, + but at the moment it's just adding a bunch of -msse and -fopenmp + stuff that we do not necessarily want to use when compiling + consumers of m4rie. +--- + m4rie.pc.in | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/m4rie.pc.in b/m4rie.pc.in +index e716441..57436ef 100644 +--- a/m4rie.pc.in ++++ b/m4rie.pc.in +@@ -6,5 +6,7 @@ includedir=@includedir@ + Name: M4RIE + Description: Dense linear algebra over GF(2^e). + Version: @PACKAGE_VERSION@ +-Libs: -L${libdir} -lm4rie -lm4ri -lm +-Cflags: -I${includedir} @M4RI_CFLAGS@ @OPENMP_CFLAGS@ ++Requires: m4ri >= 20240729 ++Libs: -L${libdir} -lm4rie -lm ++Libs.private: @OPENMP_CFLAGS@ ++Cflags: -I${includedir} +-- +2.45.2 + diff --git a/sci-libs/m4rie/m4rie-20250103-r1.ebuild b/sci-libs/m4rie/m4rie-20250103-r1.ebuild new file mode 100644 index 000000000000..28d78c3df331 --- /dev/null +++ b/sci-libs/m4rie/m4rie-20250103-r1.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 ~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 +} diff --git a/sci-libs/m4rie/m4rie-20250103-r2.ebuild b/sci-libs/m4rie/m4rie-20250103-r2.ebuild new file mode 100644 index 000000000000..6ef05418b0b2 --- /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 ~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 +} diff --git a/sci-libs/m4rie/m4rie-20250128.ebuild b/sci-libs/m4rie/m4rie-20250128.ebuild new file mode 100644 index 000000000000..97b97608acbf --- /dev/null +++ b/sci-libs/m4rie/m4rie-20250128.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86 ~x64-macos" +IUSE="debug" + +DEPEND=">=sci-libs/m4ri-20240729-r0:=" +RDEPEND="${DEPEND}" + +src_configure() { + econf $(use_enable debug) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-libs/m4rie/metadata.xml b/sci-libs/m4rie/metadata.xml new file mode 100644 index 000000000000..111e877338b5 --- /dev/null +++ b/sci-libs/m4rie/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>frp.bissey@gmail.com</email> + <name>François Bissey</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + M4RIE is a library for fast arithmetic with dense matrices over + GF(2^e) for "e" between 2 and 16, inclusive. The name stems from + the fact that it relies heavily on M4RI. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
