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

Contents of /sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Nov 19 07:38:58 2013 UTC (11 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -11 lines
Adapt live ebuild to upstream changes

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

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild,v 1.3 2013/03/07 08:05:21 jlec Exp $
4
5 EAPI=5
6
7 DESCRIPTION="Elliptic Curve Method for Integer Factorization"
8 HOMEPAGE="http://ecm.gforge.inria.fr/"
9 #SRC_URI="https://gforge.inria.fr/frs/download.php/30965/${P}.tar.gz"
10 ESVN_REPO_URI="svn://scm.gforge.inria.fr/svnroot/ecm/trunk"
11
12 inherit autotools eutils flag-o-matic subversion
13
14 LICENSE="GPL-3 LGPL-3"
15 SLOT="0"
16 KEYWORDS=""
17 IUSE="blas gwnum -openmp test"
18
19 DEPEND="
20 dev-libs/gmp
21 blas? ( sci-libs/gsl )
22 gwnum? ( sci-mathematics/gwnum )
23 openmp? ( sys-devel/gcc[openmp] )"
24 RDEPEND="${DEPEND}"
25
26 # can't be both enabled
27 REQUIRED_USE="gwnum? ( !openmp )"
28
29 S=${WORKDIR}/ecm-${PV}
30
31 MAKEOPTS+=" -j1"
32
33 src_prepare() {
34 eautoreconf
35 }
36
37 src_configure() {
38 if use gwnum; then myconf="--with-gwnum=/usr/lib"; fi
39 # --enable-shellcmd is broken
40 econf $(use_enable openmp) $myconf
41 }
42
43 src_compile() {
44 append-ldflags "-Wl,-z,noexecstack"
45 # the custom-tune bits are obsoleted with sane defaults
46 default
47 }
48
49 src_install() {
50 default
51 mkdir -p "${D}/usr/include/${PN}/"
52 cp "${S}"/*.h "${D}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU
53 }

  ViewVC Help
Powered by ViewVC 1.1.20