/[gentoo-x86]/sci-mathematics/cado-nfs/cado-nfs-2.0.ebuild
Gentoo

Contents of /sci-mathematics/cado-nfs/cado-nfs-2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 23 02:45:28 2014 UTC (6 years ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -6 lines
Add keywords and fix setting S

(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cado-nfs/cado-nfs-2.0.ebuild,v 1.1 2014/01/14 03:19:37 patrick Exp $
4
5 EAPI=4
6 DESCRIPTION="Number Field Sieve (NFS) implementation for factoring integers"
7 HOMEPAGE="http://cado-nfs.gforge.inria.fr/"
8 SRC_URI="https://gforge.inria.fr/frs/download.php/33131/${P}.tar.gz"
9
10 inherit eutils cmake-utils
11
12 LICENSE="LGPL-2.1"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE=""
16
17 RDEPEND="dev-libs/gmp
18 dev-lang/perl
19 !sci-mathematics/ggnfs
20 !sci-biology/shrimp
21 "
22 DEPEND="${RDEPEND}
23 "
24
25 src_prepare() {
26 # looks like packaging mistake
27 sed -i -e 's/add_executable (convert_rels convert_rels.c)//' misc/CMakeLists.txt || die
28 sed -i -e 's/target_link_libraries (convert_rels utils)//' misc/CMakeLists.txt || die
29 sed -i -e 's~install(TARGETS convert_rels RUNTIME DESTINATION bin/misc)~~' misc/CMakeLists.txt || die
30 }
31
32 src_configure() {
33 DESTINATION="/usr/libexec/cado-nfs" cmake-utils_src_configure
34 }
35 src_compile() {
36 # autodetection goes confused for gf2x
37 ABI=default cmake-utils_src_compile
38 }

  ViewVC Help
Powered by ViewVC 1.1.20