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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun May 18 17:58:55 2014 UTC (6 years, 6 months ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
version bump wrt #507572

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)

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.3.ebuild,v 1.2 2013/05/21 07:10:10 patrick 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? ( app-text/texlive-core )"
25
26 src_prepare() {
27 epatch "${FILESDIR}"/${PN}-2.4.3-libdir.patch \
28 "${FILESDIR}"/${PN}-2.4.3-whitespaces.patch \
29 "${FILESDIR}"/${PN}-2.4.3-cflags-ldflags.patch
30 }
31
32 src_configure() {
33 ./configure \
34 --prefix="${EPREFIX}/usr" \
35 --with-gmp="${EPREFIX}/usr" \
36 --with-mpfr="${EPREFIX}/usr" \
37 $(usex ntl "--with-ntl=${EPREFIX}/usr" "") \
38 $(use_enable static-libs static) \
39 $(usex gc "--with-gc=${EPREFIX}/usr" "") \
40 CC=$(tc-getCC) \
41 CXX=$(tc-getCXX) \
42 AR=$(tc-getAR) \
43 || die
44 }
45
46 src_compile() {
47 emake verbose
48
49 if use doc ; then
50 emake -C doc/latex
51 fi
52 }
53
54 src_test() {
55 emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
60 einstalldocs
61 use doc && dodoc doc/latex/flint-manual.pdf
62 }

  ViewVC Help
Powered by ViewVC 1.1.20