Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/gmp-ecm: gmp-ecm-9999.ebuild gmp-ecm-6.4.3-r5.ebuild ChangeLog gmp-ecm-6.4.3-r4.ebuild
Date: Tue, 01 Jan 2013 17:08:58
Message-Id: 20130101170845.972A82171D@flycatcher.gentoo.org
1 patrick 13/01/01 17:08:45
2
3 Modified: gmp-ecm-9999.ebuild ChangeLog
4 Added: gmp-ecm-6.4.3-r5.ebuild
5 Removed: gmp-ecm-6.4.3-r4.ebuild
6 Log:
7 Add blas useflag
8
9 (Portage version: 2.2.0_alpha143/cvs/Linux x86_64, unsigned Manifest commit)
10
11 Revision Changes Path
12 1.2 sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild?r1=1.1&r2=1.2
17
18 Index: gmp-ecm-9999.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- gmp-ecm-9999.ebuild 1 Jan 2013 14:28:37 -0000 1.1
25 +++ gmp-ecm-9999.ebuild 1 Jan 2013 17:08:45 -0000 1.2
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2013 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild,v 1.1 2013/01/01 14:28:37 patrick Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild,v 1.2 2013/01/01 17:08:45 patrick Exp $
31
32 EAPI=4
33 DESCRIPTION="Elliptic Curve Method for Integer Factorization"
34 @@ -13,9 +13,10 @@
35 LICENSE="GPL-3 LGPL-3"
36 SLOT="0"
37 KEYWORDS=""
38 -IUSE="+custom-tune gwnum -openmp test"
39 +IUSE="blas +custom-tune gwnum -openmp test"
40
41 DEPEND="dev-libs/gmp
42 + blas? ( sci-libs/gsl )
43 gwnum? ( sci-mathematics/gwnum )
44 openmp? ( sys-devel/gcc[openmp] )"
45 RDEPEND="${DEPEND}"
46
47
48
49 1.7 sci-mathematics/gmp-ecm/ChangeLog
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gmp-ecm/ChangeLog?rev=1.7&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gmp-ecm/ChangeLog?rev=1.7&content-type=text/plain
53 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gmp-ecm/ChangeLog?r1=1.6&r2=1.7
54
55 Index: ChangeLog
56 ===================================================================
57 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/ChangeLog,v
58 retrieving revision 1.6
59 retrieving revision 1.7
60 diff -u -r1.6 -r1.7
61 --- ChangeLog 1 Jan 2013 14:28:37 -0000 1.6
62 +++ ChangeLog 1 Jan 2013 17:08:45 -0000 1.7
63 @@ -1,6 +1,12 @@
64 # ChangeLog for sci-mathematics/gmp-ecm
65 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
66 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/ChangeLog,v 1.6 2013/01/01 14:28:37 patrick Exp $
67 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/ChangeLog,v 1.7 2013/01/01 17:08:45 patrick Exp $
68 +
69 +*gmp-ecm-6.4.3-r5 (01 Jan 2013)
70 +
71 + 01 Jan 2013; Patrick Lauer <patrick@g.o> +gmp-ecm-6.4.3-r5.ebuild,
72 + -gmp-ecm-6.4.3-r4.ebuild, gmp-ecm-9999.ebuild:
73 + Add blas useflag
74
75 *gmp-ecm-6.4.3-r4 (01 Jan 2013)
76 *gmp-ecm-9999 (01 Jan 2013)
77
78
79
80 1.1 sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r5.ebuild
81
82 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r5.ebuild?rev=1.1&view=markup
83 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r5.ebuild?rev=1.1&content-type=text/plain
84
85 Index: gmp-ecm-6.4.3-r5.ebuild
86 ===================================================================
87 # Copyright 1999-2013 Gentoo Foundation
88 # Distributed under the terms of the GNU General Public License v2
89 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r5.ebuild,v 1.1 2013/01/01 17:08:45 patrick Exp $
90
91 EAPI=4
92 DESCRIPTION="Elliptic Curve Method for Integer Factorization"
93 HOMEPAGE="http://ecm.gforge.inria.fr/"
94 SRC_URI="https://gforge.inria.fr/frs/download.php/30965/${P}.tar.gz"
95
96 inherit eutils
97
98 LICENSE="GPL-3 LGPL-3"
99 SLOT="0"
100 KEYWORDS="~amd64 ~x86"
101 IUSE="+blas +custom-tune gwnum -openmp test"
102
103 # gmp 5.1 breaks a few things with this version
104 DEPEND="<dev-libs/gmp-5.1.0
105 blas? ( sci-libs/gsl )
106 gwnum? ( sci-mathematics/gwnum )
107 openmp? ( sys-devel/gcc[openmp] )"
108 RDEPEND="${DEPEND}"
109
110 # can't be both enabled
111 REQUIRED_USE="gwnum? ( !openmp )"
112
113 S=${WORKDIR}/ecm-${PV}
114
115 src_configure() {
116 if use gwnum; then myconf="--with-gwnum=/usr/lib"; fi
117 # --enable-shellcmd is broken
118 econf $(use_enable openmp) $myconf || die
119 }
120
121 src_compile() {
122 if use custom-tune; then
123 use amd64 && cd x86_64
124 use x86 && cd pentium4
125 emake -j1 || die # build libecm/libmulredc.la
126 cd .. && make bench_mulredc || die
127 sed -i -e 's:#define TUNE_MULREDC_TABLE://#define TUNE_MULREDC_TABLE:g' `readlink ecm-params.h` || die
128 sed -i -e 's:#define TUNE_SQRREDC_TABLE://#define TUNE_SQRREDC_TABLE:g' `readlink ecm-params.h` || die
129 ./bench_mulredc | tail -n 4 >> `readlink ecm-params.h` || die
130 fi
131 emake -j1 || die
132 }
133
134 src_install() {
135 emake DESTDIR="${D}" install || die
136 mkdir -p "${D}/usr/include/${PN}/"
137 cp "${S}"/*.h "${D}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU
138 }
139
140 src_test() {
141 make check || die
142 }