Gentoo Archives: gentoo-commits

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