# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=4 DESCRIPTION="Elliptic Curve Method for Integer Factorization" HOMEPAGE="http://ecm.gforge.inria.fr/" SRC_URI="https://gforge.inria.fr/frs/download.php/30965/${P}.tar.gz" inherit eutils LICENSE="GPL-3 LGPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+blas +custom-tune gwnum -openmp test" # gmp 5.1 breaks a few things with this version DEPEND="> `readlink ecm-params.h` || die fi emake -j1 || die } src_install() { emake DESTDIR="${D}" install || die mkdir -p "${D}/usr/include/${PN}/" cp "${S}"/*.h "${D}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU } src_test() { make check || die }