1 |
vapier 08/05/02 04:23:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gmp-4.2.2-r1.ebuild |
5 |
Log: |
6 |
Add fix from upstream. |
7 |
(Portage version: 2.2_pre5) |
8 |
|
9 |
Revision Changes Path |
10 |
1.93 dev-libs/gmp/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/ChangeLog?rev=1.93&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/ChangeLog?rev=1.93&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/ChangeLog?r1=1.92&r2=1.93 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v |
19 |
retrieving revision 1.92 |
20 |
retrieving revision 1.93 |
21 |
diff -u -r1.92 -r1.93 |
22 |
--- ChangeLog 26 Dec 2007 07:49:48 -0000 1.92 |
23 |
+++ ChangeLog 2 May 2008 04:23:52 -0000 1.93 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-libs/gmp |
26 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.92 2007/12/26 07:49:48 drac Exp $ |
28 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.93 2008/05/02 04:23:52 vapier Exp $ |
30 |
+ |
31 |
+*gmp-4.2.2-r1 (02 May 2008) |
32 |
+ |
33 |
+ 02 May 2008; Mike Frysinger <vapier@g.o> |
34 |
+ +files/4.2.2/mpf_set_str.c.diff, +gmp-4.2.2-r1.ebuild: |
35 |
+ Add fix from upstream. |
36 |
|
37 |
26 Dec 2007; Samuli Suominen <drac@g.o> gmp-4.2.2.ebuild: |
38 |
amd64 stable wrt #202665 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-libs/gmp/gmp-4.2.2-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/gmp-4.2.2-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/gmp-4.2.2-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: gmp-4.2.2-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-4.2.2-r1.ebuild,v 1.1 2008/05/02 04:23:52 vapier Exp $ |
52 |
|
53 |
inherit flag-o-matic eutils libtool |
54 |
|
55 |
DESCRIPTION="Library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers" |
56 |
HOMEPAGE="http://gmplib.org/" |
57 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2 |
58 |
doc? ( http://gmplib.org/${PN}-man-${PV}.pdf )" |
59 |
|
60 |
LICENSE="LGPL-3" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
63 |
IUSE="doc nocxx" |
64 |
|
65 |
RDEPEND="" |
66 |
DEPEND="" |
67 |
|
68 |
src_unpack () { |
69 |
unpack ${A} |
70 |
cd "${S}" |
71 |
[[ -d ${FILESDIR}/${PV} ]] && EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch "${FILESDIR}"/${PV} |
72 |
epatch "${FILESDIR}"/${PN}-4.1.4-noexecstack.patch |
73 |
epatch "${FILESDIR}"/${PN}-4.2.2-ABI-multilib.patch |
74 |
epatch "${FILESDIR}"/${PN}-4.2.1-s390.diff |
75 |
|
76 |
sed -i -e 's:ABI = @ABI@:GMPABI = @GMPABI@:' \ |
77 |
Makefile.in */Makefile.in */*/Makefile.in |
78 |
|
79 |
# note: we cannot run autotools here as gcc depends on this package |
80 |
elibtoolize |
81 |
} |
82 |
|
83 |
src_compile() { |
84 |
# GMP believes hppa2.0 is 64bit |
85 |
local is_hppa_2_0 |
86 |
if [[ ${CHOST} == hppa2.0-* ]] ; then |
87 |
is_hppa_2_0=1 |
88 |
export CHOST=${CHOST/2.0/1.1} |
89 |
fi |
90 |
|
91 |
# ABI mappings (needs all architectures supported) |
92 |
case ${ABI} in |
93 |
32|x86) export GMPABI=32;; |
94 |
64|amd64|n64) export GMPABI=64;; |
95 |
o32|n32) export GMPABI=${ABI};; |
96 |
esac |
97 |
|
98 |
econf \ |
99 |
--localstatedir=/var/state/gmp \ |
100 |
--disable-mpfr \ |
101 |
--disable-mpbsd \ |
102 |
$(use_enable !nocxx cxx) \ |
103 |
|| die "configure failed" |
104 |
|
105 |
# Fix the ABI for hppa2.0 |
106 |
if [[ -n ${is_hppa_2_0} ]] ; then |
107 |
sed -i \ |
108 |
-e 's:pa32/hppa1_1:pa32/hppa2_0:' \ |
109 |
"${S}"/config.h || die |
110 |
export CHOST=${CHOST/1.1/2.0} |
111 |
fi |
112 |
|
113 |
emake || die "emake failed" |
114 |
} |
115 |
|
116 |
src_install() { |
117 |
emake DESTDIR="${D}" install || die "make install failed" |
118 |
|
119 |
dodoc AUTHORS ChangeLog NEWS README |
120 |
dodoc doc/configuration doc/isa_abi_headache |
121 |
dohtml -r doc |
122 |
|
123 |
use doc && cp "${DISTDIR}"/gmp-man-${PV}.pdf "${D}"/usr/share/doc/${PF}/ |
124 |
} |
125 |
|
126 |
|
127 |
|
128 |
-- |
129 |
gentoo-commits@l.g.o mailing list |