You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-mathematics/flint/flint-2.3.ebuild

34 lines
711 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils multilib
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:0
dev-libs/ntl
sci-libs/mpir
"
RDEPEND="${DEPEND}"
src_prepare() {
# Correct lib paths to be multilib-proper #470732
sed -i -e 's~/lib~/'$(get_libdir)'~' Makefile.in || die
}
src_configure() {
# handwritten script, needs extra stabbing
./configure --with-mpir=/usr --with-mpfr=/usr --with-ntl=/usr --prefix="${D}/usr" || die
}