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/msieve: msieve-1.50-r3.ebuild ChangeLog
Date: Tue, 27 Nov 2012 15:10:54
Message-Id: 20121127133518.D4E4B20C65@flycatcher.gentoo.org
1 patrick 12/11/27 13:35:18
2
3 Modified: ChangeLog
4 Added: msieve-1.50-r3.ebuild
5 Log:
6 More improvements, quiet output for nfs
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.6 sci-mathematics/msieve/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/msieve/ChangeLog?rev=1.6&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/msieve/ChangeLog?rev=1.6&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/msieve/ChangeLog?r1=1.5&r2=1.6
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/msieve/ChangeLog,v
20 retrieving revision 1.5
21 retrieving revision 1.6
22 diff -u -r1.5 -r1.6
23 --- ChangeLog 25 Nov 2012 06:22:38 -0000 1.5
24 +++ ChangeLog 27 Nov 2012 13:35:18 -0000 1.6
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-mathematics/msieve
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/msieve/ChangeLog,v 1.5 2012/11/25 06:22:38 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/msieve/ChangeLog,v 1.6 2012/11/27 13:35:18 patrick Exp $
30 +
31 +*msieve-1.50-r3 (27 Nov 2012)
32 +
33 + 27 Nov 2012; Patrick Lauer <patrick@g.o> +files/reduce-printf.patch,
34 + +msieve-1.50-r3.ebuild:
35 + More improvements, quiet output for nfs
36
37 *msieve-1.50-r2 (25 Nov 2012)
38
39
40
41
42 1.1 sci-mathematics/msieve/msieve-1.50-r3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/msieve/msieve-1.50-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/msieve/msieve-1.50-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: msieve-1.50-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/msieve/msieve-1.50-r3.ebuild,v 1.1 2012/11/27 13:35:18 patrick Exp $
52
53 EAPI=4
54 DESCRIPTION="A C library implementing a suite of algorithms to factor large integers"
55 HOMEPAGE="http://sourceforge.net/projects/msieve/"
56 SRC_URI="mirror://sourceforge/${PN}/${PN}/Msieve%20v${PV}/${PN}${PV/./}src.tar.gz"
57
58 inherit eutils
59
60 LICENSE="public-domain"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="zlib +ecm mpi"
64
65 DEPEND="sci-mathematics/ggnfs
66 ecm? ( sci-mathematics/gmp-ecm )
67 mpi? ( virtual/mpi )
68 zlib? ( sys-libs/zlib )"
69 RDEPEND="${DEPEND}"
70
71 src_prepare() {
72 # TODO: Integrate ggnfs properly
73 epatch "${FILESDIR}/reduce-printf.patch" || die
74 sed -i -e 's/-march=k8//' Makefile || die
75 sed -i -e 's/CC =/#CC =/' Makefile || die
76 sed -i -e 's/CFLAGS =/CFLAGS +=/' Makefile || die
77 }
78
79 src_compile() {
80 if use ecm; then
81 export "ECM=1"
82 fi
83 if use mpi; then
84 export "MPI=1"
85 fi
86 if use zlib; then
87 export "ZLIB=1"
88 fi
89 if use amd64; then
90 emake x86_64 || die "Failed to build"
91 fi
92 if use x86; then
93 emake x86 || die "Failed to build"
94 fi
95 }
96
97 src_install() {
98 mkdir -p "${D}/usr/include/msieve"
99 mkdir -p "${D}/usr/lib/"
100 mkdir -p "${D}/usr/share/doc/${P}/"
101 cp include/* "${D}/usr/include/msieve" || die "Failed to install"
102 cp libmsieve.a "${D}/usr/lib/" || die "Failed to install"
103 dobin msieve || die "Failed to install"
104 cp Readme* "${D}/usr/share/doc/${P}/" || die "Failed to install"
105 }