1 |
patrick 12/11/30 06:36:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ggnfs-0.77.1-r1.ebuild |
5 |
Removed: ggnfs-0.77.1.ebuild |
6 |
Log: |
7 |
Adding default parameter list file |
8 |
|
9 |
(Portage version: 2.2.0_alpha143/cvs/Linux x86_64, unsigned Manifest commit) |
10 |
|
11 |
Revision Changes Path |
12 |
1.3 sci-mathematics/ggnfs/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/ggnfs/ChangeLog?rev=1.3&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/ggnfs/ChangeLog?rev=1.3&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/ggnfs/ChangeLog?r1=1.2&r2=1.3 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/ggnfs/ChangeLog,v |
21 |
retrieving revision 1.2 |
22 |
retrieving revision 1.3 |
23 |
diff -u -r1.2 -r1.3 |
24 |
--- ChangeLog 28 Nov 2012 09:41:34 -0000 1.2 |
25 |
+++ ChangeLog 30 Nov 2012 06:36:46 -0000 1.3 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sci-mathematics/ggnfs |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/ggnfs/ChangeLog,v 1.2 2012/11/28 09:41:34 patrick Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/ggnfs/ChangeLog,v 1.3 2012/11/30 06:36:46 patrick Exp $ |
31 |
+ |
32 |
+*ggnfs-0.77.1-r1 (30 Nov 2012) |
33 |
+ |
34 |
+ 30 Nov 2012; Patrick Lauer <patrick@g.o> +ggnfs-0.77.1-r1.ebuild, |
35 |
+ -ggnfs-0.77.1.ebuild: |
36 |
+ Adding default parameter list file |
37 |
|
38 |
28 Nov 2012; Patrick Lauer <patrick@g.o> ggnfs-0.77.1.ebuild: |
39 |
Avoid parallel make failure |
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-mathematics/ggnfs/ggnfs-0.77.1-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/ggnfs/ggnfs-0.77.1-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/ggnfs/ggnfs-0.77.1-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ggnfs-0.77.1-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/ggnfs/ggnfs-0.77.1-r1.ebuild,v 1.1 2012/11/30 06:36:46 patrick Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
DESCRIPTION="A suite of algorithms to help factoring large integers" |
56 |
# inactive old homepage exists, this is a fork |
57 |
HOMEPAGE="https://github.com/radii/ggnfs" |
58 |
# snapshot because github makes people stupid |
59 |
SRC_URI="http://dev.gentooexperimental.org/~dreeevil/${P}.zip |
60 |
http://stuff.mit.edu/afs/sipb/project/pari-gp/ggnfs/Linux/src/def-par.txt" |
61 |
|
62 |
inherit eutils |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
# Need to test if it actually compiles on x86 |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
IUSE="" |
69 |
|
70 |
DEPEND="" |
71 |
RDEPEND="${DEPEND} |
72 |
!sci-mathematics/cado-nfs" # file collisions, fixable |
73 |
|
74 |
S=${WORKDIR}/${PN}-master |
75 |
|
76 |
src_prepare() { |
77 |
echo "#define GGNFS_VERSION \"0.77.1-$ARCH\"" > include/version.h |
78 |
# fix directory symlink, add missing targets, rewrite variable used by portage internally |
79 |
cd src/lasieve4 && rm -f -r asm && ln -s ppc32 asm || die |
80 |
sed -i -e 's/all: liblasieve.a/all: liblasieve.a liblasieveI11.a liblasieveI15.a liblasieveI16.a/' asm/Makefile || die |
81 |
cd "${S}" |
82 |
sed -i -e 's/ARCH/MARCH/g' Makefile src/Makefile || die |
83 |
sed -i -e 's/$(LSBINS) strip/$(LSBINS)/' src/Makefile || die #No stripping! |
84 |
} |
85 |
|
86 |
src_configure() { :; } |
87 |
|
88 |
src_compile() { |
89 |
# setting MARCH like this is fugly, but it uses -march=$ARCH - better fix welcome |
90 |
# it also assumes a recent-ish compiler |
91 |
cd src |
92 |
HOST="generic" MARCH="native" emake -j1 |
93 |
} |
94 |
|
95 |
src_install() { |
96 |
mkdir -p "${D}/usr/bin/" |
97 |
for i in gnfs-lasieve4I11e gnfs-lasieve4I12e gnfs-lasieve4I13e gnfs-lasieve4I14e \ |
98 |
gnfs-lasieve4I15e gnfs-lasieve4I16e makefb matbuild matprune matsolve pol51m0b pol51m0n \ |
99 |
pol51opt polyselect procrels sieve sqrt; do |
100 |
cp "${S}/bin/${i}" "${D}/usr/bin/" || die |
101 |
done |
102 |
mkdir -p "${D}/usr/share/doc/${PN}" |
103 |
cp "${DISTDIR}/def-par.txt" "${D}/usr/share/doc/${PN}" || die "FAIL" |
104 |
docompress -x "/usr/share/doc/${PN}/def-par.txt" || die |
105 |
# TODO: docs? File collisions? |
106 |
} |