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