/[gentoo-x86]/sci-mathematics/flint/flint-2.4.5.ebuild
Gentoo

Contents of /sci-mathematics/flint/flint-2.4.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Apr 5 11:19:35 2015 UTC (5 years, 7 months ago) by tomka
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +4 -3 lines
Fix ntl compatibility (bug 545318)

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 565C32BC)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/flint/flint-2.4.5.ebuild,v 1.3 2015/04/03 10:03:43 tomka Exp $
4
5 EAPI="5"
6
7 inherit eutils multilib toolchain-funcs
8
9 DESCRIPTION="Fast Library for Number Theory"
10 HOMEPAGE="http://www.flintlib.org/"
11 SRC_URI="http://www.flintlib.org/${P}.tar.gz"
12
13 RESTRICT="mirror"
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="doc gc ntl static-libs test"
18
19 RDEPEND="dev-libs/gmp
20 dev-libs/mpfr
21 gc? ( dev-libs/boehm-gc )
22 ntl? ( dev-libs/ntl )"
23 DEPEND="${RDEPEND}
24 doc? (
25 app-text/texlive-core
26 dev-texlive/texlive-latex
27 dev-texlive/texlive-latexextra
28 )"
29
30 src_prepare() {
31 epatch "${FILESDIR}"/${PN}-2.4.3-libdir.patch \
32 "${FILESDIR}"/${PN}-2.4.3-whitespaces.patch \
33 "${FILESDIR}"/${PN}-2.4.3-cflags-ldflags.patch \
34 "${FILESDIR}"/${PN}-2.4.4-test.patch \
35 "${FILESDIR}"/${PN}-2.4.5-gmp6-compat.patch \
36 "${FILESDIR}"/${PN}-2.4.5-ntl62.patch
37 }
38
39 src_configure() {
40 ./configure \
41 --prefix="${EPREFIX}/usr" \
42 --with-gmp="${EPREFIX}/usr" \
43 --with-mpfr="${EPREFIX}/usr" \
44 $(usex ntl "--with-ntl=${EPREFIX}/usr" "") \
45 $(use_enable static-libs static) \
46 $(usex gc "--with-gc=${EPREFIX}/usr" "") \
47 CC=$(tc-getCC) \
48 CXX=$(tc-getCXX) \
49 AR=$(tc-getAR) \
50 || die
51 }
52
53 src_compile() {
54 emake verbose
55
56 if use doc ; then
57 emake -C doc/latex
58 fi
59 }
60
61 src_test() {
62 emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
63 }
64
65 src_install() {
66 emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
67 einstalldocs
68 use doc && dodoc doc/latex/flint-manual.pdf
69 }

  ViewVC Help
Powered by ViewVC 1.1.20