mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-libs/m4ri: add 20250128
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST m4ri-20250128.tar.gz 530551 BLAKE2B c740e40f3cbcf3f5a9f269fd6a923e8206942b78582c21fe77831a9978d41215801a50749111b91c70433bf4a5da69d2d05da3d66c06ef7546111b83f8696be1 SHA512 698876c6250a61ec482bb36b56ef35226e1f2e08363511c2aa7de2ff066bc0cf13698c866e44ccef2aae05de44f46dda54a2f6012ebdc26032014d5176bef482
|
||||
DIST release-20240729.tar.gz 178851 BLAKE2B 7a8bee1417da56d561add3b2e7d79f005f03ebf825a150a105d14caeb64b75ba4e30658b616a03cedc49d4e5c1b1a70393c6d5c6231bb1ba35abf20aaf93fb2e SHA512 afd74b0f9a1e3f16b313dca9a73fde85bd08aa431f0ad7064f09600434f27d6cabddc117cf99396dc8d83d245f81b7ed4185e305caad56dad79ecfefc11cf817
|
||||
|
||||
48
sci-libs/m4ri/m4ri-20250128.ebuild
Normal file
48
sci-libs/m4ri/m4ri-20250128.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user