1 |
patrick 12/11/25 07:42:37 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: yafu-1.33-r1.ebuild |
5 |
Log: |
6 |
Adding msieve support |
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/yafu/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/yafu/metadata.xml?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/yafu/metadata.xml?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/yafu/metadata.xml?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/yafu/metadata.xml,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- metadata.xml 19 Nov 2012 07:41:56 -0000 1.1 |
24 |
+++ metadata.xml 25 Nov 2012 07:42:37 -0000 1.2 |
25 |
@@ -5,4 +5,7 @@ |
26 |
<email>patrick@g.o</email> |
27 |
<name>Patrick Lauer</name> |
28 |
</maintainer> |
29 |
+ <use> |
30 |
+ <flag name="sieve">Use msieve for the sieving steps of NFS</flag> |
31 |
+ </use> |
32 |
</pkgmetadata> |
33 |
|
34 |
|
35 |
|
36 |
1.2 sci-mathematics/yafu/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/yafu/ChangeLog?rev=1.2&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/yafu/ChangeLog?rev=1.2&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/yafu/ChangeLog?r1=1.1&r2=1.2 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/yafu/ChangeLog,v |
45 |
retrieving revision 1.1 |
46 |
retrieving revision 1.2 |
47 |
diff -u -r1.1 -r1.2 |
48 |
--- ChangeLog 19 Nov 2012 07:41:56 -0000 1.1 |
49 |
+++ ChangeLog 25 Nov 2012 07:42:37 -0000 1.2 |
50 |
@@ -1,6 +1,12 @@ |
51 |
# ChangeLog for sci-mathematics/yafu |
52 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/yafu/ChangeLog,v 1.1 2012/11/19 07:41:56 patrick Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/yafu/ChangeLog,v 1.2 2012/11/25 07:42:37 patrick Exp $ |
55 |
+ |
56 |
+*yafu-1.33-r1 (25 Nov 2012) |
57 |
+ |
58 |
+ 25 Nov 2012; Patrick Lauer <patrick@g.o> +yafu-1.33-r1.ebuild, |
59 |
+ metadata.xml: |
60 |
+ Adding msieve support |
61 |
|
62 |
*yafu-1.33 (19 Nov 2012) |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
1.1 sci-mathematics/yafu/yafu-1.33-r1.ebuild |
68 |
|
69 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/yafu/yafu-1.33-r1.ebuild?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/yafu/yafu-1.33-r1.ebuild?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: yafu-1.33-r1.ebuild |
73 |
=================================================================== |
74 |
# Copyright 1999-2012 Gentoo Foundation |
75 |
# Distributed under the terms of the GNU General Public License v2 |
76 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/yafu/yafu-1.33-r1.ebuild,v 1.1 2012/11/25 07:42:37 patrick Exp $ |
77 |
|
78 |
EAPI=4 |
79 |
DESCRIPTION="Yet another factoring utility" |
80 |
HOMEPAGE="http://sourceforge.net/projects/yafu/" |
81 |
SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip" |
82 |
|
83 |
inherit eutils |
84 |
|
85 |
LICENSE="public-domain" |
86 |
SLOT="0" |
87 |
KEYWORDS="~amd64 ~x86" |
88 |
# nfs is overloaded, so using less confusing sieve here |
89 |
IUSE="sieve" |
90 |
|
91 |
DEPEND="dev-libs/gmp |
92 |
sci-mathematics/gmp-ecm |
93 |
sieve? ( sci-mathematics/msieve )" |
94 |
RDEPEND="${DEPEND}" |
95 |
|
96 |
src_prepare() { |
97 |
# This is not nice. But then the Makefile is quite special :) |
98 |
sed -i -e 's:../gmp/include:gmp:' Makefile || die "Failed to rectify things" |
99 |
sed -i -e 's:../gmp-ecm/include:gmp-ecm:' Makefile || die "Failed to rectify things" |
100 |
sed -i -e 's:LIBS += -L../:# LIBS += -L../:g' Makefile || die "Failed to rectify things" |
101 |
sed -i -e 's:\"config.h\":<gmp-ecm/config.h>:g' top/driver.c || die "Failed to rectify things" |
102 |
sed -i -e 's:# LIBS += -L../msieve/lib/linux/x86_64:LIBS += -lmsieve -lz:' Makefile || die "Failed to rectify things" |
103 |
sed -i -e 's:CFLAGS = -g:#CFLAGS = -g:' Makefile || die "Failed to rectify things" |
104 |
} |
105 |
|
106 |
src_compile() { |
107 |
# hmm, not that useful: |
108 |
#VAR="TIMING=1 " |
109 |
if use sieve; then |
110 |
VAR+="NFS=1" |
111 |
fi |
112 |
if use amd64; then |
113 |
emake $VAR x86_64 || die "Failed to build" |
114 |
fi |
115 |
if use x86; then |
116 |
emake $VAR x86 || die "Failed to build" |
117 |
fi |
118 |
} |
119 |
|
120 |
src_install() { |
121 |
mkdir -p "${D}/usr/bin/" |
122 |
cp "${S}/yafu" "${D}/usr/bin/" || die "Failed to install" |
123 |
mkdir -p "${D}/usr/share/doc/${PN}" |
124 |
cp "${S}/docfile.txt" "${D}/usr/share/doc/${PN}/yafu.txt" || die "Failed to install" |
125 |
cp "${S}/README" "${D}/usr/share/doc/${PN}/" || die "Failed to install" |
126 |
cp "${S}/yafu.ini" "${D}/usr/share/doc/${PN}/yafu.ini.example" || die "Failed to install" |
127 |
} |