diff options
author | Julian Ospald <hasufell@gentoo.org> | 2014-05-18 17:58:55 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2014-05-18 17:58:55 +0000 |
commit | 99551acb2d6c34d65c7fcf92f3a1ec4b10f832f7 (patch) | |
tree | 345172c91d2cc98d6c05c92aab57bbfd3749513f /sci-mathematics/flint/flint-2.4.3.ebuild | |
parent | Add a revision with ruby21. (diff) | |
download | gentoo-2-99551acb2d6c34d65c7fcf92f3a1ec4b10f832f7.tar.gz gentoo-2-99551acb2d6c34d65c7fcf92f3a1ec4b10f832f7.tar.bz2 gentoo-2-99551acb2d6c34d65c7fcf92f3a1ec4b10f832f7.zip |
version bump wrt #507572
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
Diffstat (limited to 'sci-mathematics/flint/flint-2.4.3.ebuild')
-rw-r--r-- | sci-mathematics/flint/flint-2.4.3.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sci-mathematics/flint/flint-2.4.3.ebuild b/sci-mathematics/flint/flint-2.4.3.ebuild new file mode 100644 index 000000000000..a78c90be73d1 --- /dev/null +++ b/sci-mathematics/flint/flint-2.4.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/flint/flint-2.4.3.ebuild,v 1.1 2014/05/18 17:58:55 hasufell Exp $ + +EAPI="5" + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Fast Library for Number Theory" +HOMEPAGE="http://www.flintlib.org/" +SRC_URI="http://www.flintlib.org/${P}.tar.gz" + +RESTRICT="mirror" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc gc ntl static-libs test" + +RDEPEND="dev-libs/gmp + dev-libs/mpfr + gc? ( dev-libs/boehm-gc ) + ntl? ( dev-libs/ntl )" +DEPEND="${RDEPEND} + doc? ( app-text/texlive-core )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.4.3-libdir.patch \ + "${FILESDIR}"/${PN}-2.4.3-whitespaces.patch \ + "${FILESDIR}"/${PN}-2.4.3-cflags-ldflags.patch +} + +src_configure() { + ./configure \ + --prefix="${EPREFIX}/usr" \ + --with-gmp="${EPREFIX}/usr" \ + --with-mpfr="${EPREFIX}/usr" \ + $(usex ntl "--with-ntl=${EPREFIX}/usr" "") \ + $(use_enable static-libs static) \ + $(usex gc "--with-gc=${EPREFIX}/usr" "") \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + AR=$(tc-getAR) \ + || die +} + +src_compile() { + emake verbose + + if use doc ; then + emake -C doc/latex + fi +} + +src_test() { + emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install + einstalldocs + use doc && dodoc doc/latex/flint-manual.pdf +} |