From f29eb0598f62fc3b5f09f2de5a89c0437c6164d9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 21 Jan 2020 18:52:40 +0000 Subject: gentoo resync : 21.01.2020 --- sci-libs/m4ri/m4ri-20200115.ebuild | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 sci-libs/m4ri/m4ri-20200115.ebuild (limited to 'sci-libs/m4ri/m4ri-20200115.ebuild') diff --git a/sci-libs/m4ri/m4ri-20200115.ebuild b/sci-libs/m4ri/m4ri-20200115.ebuild new file mode 100644 index 000000000000..fd2b189cf387 --- /dev/null +++ b/sci-libs/m4ri/m4ri-20200115.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic toolchain-funcs + +DESCRIPTION="Method of four russian for inversion (M4RI)" +HOMEPAGE="https://bitbucket.org/malb/m4ri" +SRC_URI="https://bitbucket.org/malb/${PN}/downloads/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="debug openmp cpu_flags_x86_sse2 png static-libs" + +BDEPEND="virtual/pkgconfig" +DEPEND="png? ( media-libs/libpng:= )" +RDEPEND="${DEPEND}" + +# NEWS and ChangeLog are empty as of 2020-01-01, and README.md +# didn't make it into the release tarball. +DOCS=( AUTHORS ) + +PATCHES=( + "${FILESDIR}"/${PN}-20200115-memory_violation.patch + "${FILESDIR}"/${PN}-20200115-libm_underlinking.patch +) + +pkg_pretend() { + use openmp && tc-check-openmp +} + +src_prepare() { + default + + eautoreconf +} + +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) \ + $(use_enable static-libs static) +} + +src_install(){ + default + find "${ED}" -name '*.la' -delete || die +} -- cgit v1.2.3