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

Contents of /sci-mathematics/flint/flint-2.4.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Aug 14 16:22:26 2014 UTC (6 years, 3 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #518208

(Portage version: 2.2.8-r1/cvs/Linux i686, RepoMan options: --ignore-arches, signed Manifest commit with key 0x4F1A2555EA71991D!)

1 # Copyright 1999-2014 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.4-r1.ebuild,v 1.2 2014/08/01 15:06:15 nimiux 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 }
36
37 src_configure() {
38 ./configure \
39 --prefix="${EPREFIX}/usr" \
40 --with-gmp="${EPREFIX}/usr" \
41 --with-mpfr="${EPREFIX}/usr" \
42 $(usex ntl "--with-ntl=${EPREFIX}/usr" "") \
43 $(use_enable static-libs static) \
44 $(usex gc "--with-gc=${EPREFIX}/usr" "") \
45 CC=$(tc-getCC) \
46 CXX=$(tc-getCXX) \
47 AR=$(tc-getAR) \
48 || die
49 }
50
51 src_compile() {
52 emake verbose
53
54 if use doc ; then
55 emake -C doc/latex
56 fi
57 }
58
59 src_test() {
60 emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
61 }
62
63 src_install() {
64 emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
65 einstalldocs
66 use doc && dodoc doc/latex/flint-manual.pdf
67 }

  ViewVC Help
Powered by ViewVC 1.1.20