2013-05-21 16:42:33 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-11-26 14:47:35 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-11-26 14:47:35 +04:00
|
|
|
|
|
|
|
EAPI="5"
|
|
|
|
|
2013-05-21 16:42:33 +04:00
|
|
|
inherit eutils multilib
|
2012-11-26 14:47:35 +04:00
|
|
|
|
|
|
|
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=""
|
|
|
|
|
|
|
|
DEPEND="dev-libs/mpfr
|
|
|
|
dev-libs/ntl
|
|
|
|
sci-libs/mpir
|
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
2013-05-21 16:42:33 +04:00
|
|
|
src_prepare() {
|
|
|
|
# Correct lib paths to be multilib-proper #470732
|
|
|
|
sed -i -e 's~/lib~/'$(get_libdir)'~' Makefile.in || die
|
|
|
|
}
|
|
|
|
|
2012-11-26 14:47:35 +04:00
|
|
|
src_configure() {
|
|
|
|
# handwritten script, needs extra stabbing
|
|
|
|
./configure --with-mpir=/usr --with-mpfr=/usr --with-ntl=/usr --prefix="${D}/usr" || die
|
|
|
|
}
|