diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-11-25 06:22:38 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-11-25 06:22:38 +0000 |
commit | 275970b4da8cf51c7e83999e550a416fff6c3a78 (patch) | |
tree | ae3d1b21fe2b74265abe3f66ca3c45513960c766 /sci-mathematics | |
parent | Bump pandoc-1.9.4.5 to ebuild (diff) | |
download | gentoo-2-275970b4da8cf51c7e83999e550a416fff6c3a78.tar.gz gentoo-2-275970b4da8cf51c7e83999e550a416fff6c3a78.tar.bz2 gentoo-2-275970b4da8cf51c7e83999e550a416fff6c3a78.zip |
Build system improvements
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/msieve/ChangeLog | 7 | ||||
-rw-r--r-- | sci-mathematics/msieve/msieve-1.50-r2.ebuild | 54 |
2 files changed, 60 insertions, 1 deletions
diff --git a/sci-mathematics/msieve/ChangeLog b/sci-mathematics/msieve/ChangeLog index 777eb02cf169..a1a6b3c874a1 100644 --- a/sci-mathematics/msieve/ChangeLog +++ b/sci-mathematics/msieve/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-mathematics/msieve # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/msieve/ChangeLog,v 1.4 2012/11/19 06:19:46 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/msieve/ChangeLog,v 1.5 2012/11/25 06:22:38 patrick Exp $ + +*msieve-1.50-r2 (25 Nov 2012) + + 25 Nov 2012; Patrick Lauer <patrick@gentoo.org> +msieve-1.50-r2.ebuild: + Build system improvements *msieve-1.50-r1 (19 Nov 2012) diff --git a/sci-mathematics/msieve/msieve-1.50-r2.ebuild b/sci-mathematics/msieve/msieve-1.50-r2.ebuild new file mode 100644 index 000000000000..ac7e08d3d61a --- /dev/null +++ b/sci-mathematics/msieve/msieve-1.50-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/msieve/msieve-1.50-r2.ebuild,v 1.1 2012/11/25 06:22:38 patrick Exp $ + +EAPI=4 +DESCRIPTION="A C library implementing a suite of algorithms to factor large integers" +HOMEPAGE="http://sourceforge.net/projects/msieve/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/Msieve%20v${PV}/${PN}${PV/./}src.tar.gz" + +inherit eutils + +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() { + sed -i -e 's/-march=k8//' Makefile || die + sed -i -e 's/CC =/#CC =/' Makefile || die + sed -i -e 's/CFLAGS =/CFLAGS +=/' Makefile || die +} + +src_compile() { + if use ecm; then + export "ECM=1" + fi + if use mpi; then + export "MPI=1" + fi + if use zlib; then + export "ZLIB=1" + fi + if use amd64; then + emake x86_64 || die "Failed to build" + fi + if use x86; then + emake x86 || die "Failed to build" + fi +} + +src_install() { + mkdir -p "${D}/usr/include/msieve" + mkdir -p "${D}/usr/lib/" + mkdir -p "${D}/usr/share/doc/${P}/" + cp include/* "${D}/usr/include/msieve" || die "Failed to install" + cp libmsieve.a "${D}/usr/lib/" || die "Failed to install" + dobin msieve || die "Failed to install" + cp Readme* "${D}/usr/share/doc/${P}/" || die "Failed to install" +} |