diff options
author | David Seifert <soap@gentoo.org> | 2019-06-30 23:06:49 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2019-06-30 23:06:49 +0200 |
commit | fe50250815b07f0328a7235b2f4e5ca20bb96eb2 (patch) | |
tree | c532648cfdf9aceac5b70f17a7cb0cbf323a898e /sci-mathematics/msieve/msieve-1.53-r1.ebuild | |
parent | xfce-extra/xfce4-screensaver: Bump to 0.1.6 (diff) | |
download | gentoo-fe50250815b07f0328a7235b2f4e5ca20bb96eb2.tar.gz gentoo-fe50250815b07f0328a7235b2f4e5ca20bb96eb2.tar.bz2 gentoo-fe50250815b07f0328a7235b2f4e5ca20bb96eb2.zip |
sci-mathematics/msieve: Remove gwnum USE dep
Package-Manager: Portage-2.3.67, Repoman-2.3.16
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-mathematics/msieve/msieve-1.53-r1.ebuild')
-rw-r--r-- | sci-mathematics/msieve/msieve-1.53-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/sci-mathematics/msieve/msieve-1.53-r1.ebuild b/sci-mathematics/msieve/msieve-1.53-r1.ebuild new file mode 100644 index 000000000000..67933ca55dfd --- /dev/null +++ b/sci-mathematics/msieve/msieve-1.53-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +DESCRIPTION="A C library implementing a suite of algorithms to factor large integers" +HOMEPAGE="https://sourceforge.net/projects/msieve/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/Msieve%20v${PV}/${PN}${PV/./}_src.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="zlib +ecm mpi" + +DEPEND=" + ecm? ( sci-mathematics/gmp-ecm ) + mpi? ( virtual/mpi ) + zlib? ( sys-libs/zlib:= )" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + # TODO: Integrate ggnfs properly + eapply \ + "${FILESDIR}"/${PN}-1.51-reduce-printf.patch \ + "${FILESDIR}"/${PN}-1.53-fix-version.patch + + sed -i -e 's/-march=k8//' Makefile || die + sed -i -e 's/CC =/#CC =/' Makefile || die + sed -i -e 's/CFLAGS =/CFLAGS +=/' Makefile || die + sed -i -e 's/LIBS += -lecm/LIBS += -lecm -lgomp/' Makefile || die +} + +src_compile() { + use ecm && export "ECM=1" + use mpi && export "MPI=1" + use zlib && export "ZLIB=1" + emake \ + CC=$(tc-getCC) \ + AR=$(tc-getAR) \ + OPT_FLAGS="${CFLAGS}" \ + all +} + +src_install() { + mkdir -p "${ED%/}/usr/include/msieve" + mkdir -p "${ED%/}/usr/lib/" + mkdir -p "${ED%/}/usr/share/doc/${P}/" + cp include/* "${ED%/}/usr/include/msieve" || die "Failed to install" + cp libmsieve.a "${ED%/}/usr/lib/" || die "Failed to install" + dobin msieve || die "Failed to install" + cp Readme* "${ED%/}/usr/share/doc/${P}/" || die "Failed to install" +} |