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