/[gentoo-x86]/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r2.ebuild
Gentoo

Contents of /sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jan 1 14:28:37 2013 UTC (7 years, 1 month ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fix gmp dep, add test phase, add live ebuild

(Portage version: 2.2.0_alpha143/cvs/Linux x86_64, unsigned Manifest commit)

1 patrick 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 patrick 1.3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r2.ebuild,v 1.2 2012/11/28 08:11:17 patrick Exp $
4 patrick 1.1
5     EAPI=4
6     DESCRIPTION="Elliptic Curve Method for Integer Factorization"
7     HOMEPAGE="http://ecm.gforge.inria.fr/"
8     SRC_URI="https://gforge.inria.fr/frs/download.php/30965/${P}.tar.gz"
9    
10     inherit eutils
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14     KEYWORDS="~amd64 ~x86"
15 patrick 1.2 IUSE="+custom-tune openmp"
16 patrick 1.1
17     DEPEND="dev-libs/gmp
18     openmp? ( sys-devel/gcc[openmp] )"
19     RDEPEND="${DEPEND}"
20    
21     S=${WORKDIR}/ecm-${PV}
22    
23     src_configure() {
24     # --enable-shellcmd is broken
25     econf $(use_enable openmp) || die
26     }
27    
28     src_compile() {
29     emake || die
30     if use custom-tune; then
31     ./bench_mulredc | tail -n 4 >> `readlink ecm-params.h` || die
32     make clean; emake || die
33     fi
34     }
35    
36     src_install() {
37     emake DESTDIR="${D}" install || die
38     mkdir -p "${D}/usr/include/${PN}/"
39     cp "${S}"/*.h "${D}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU
40     }

  ViewVC Help
Powered by ViewVC 1.1.20