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-5.0.1.ebuild
Date: Mon, 08 Feb 2010 23:42:27
Message-Id: E1NedFI-0006qI-NJ@stork.gentoo.org
1 vapier 10/02/08 23:42:24
2
3 Modified: ChangeLog
4 Added: gmp-5.0.1.ebuild
5 Log:
6 Version bump #304063 by Jeroen Roovers.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.126 dev-libs/gmp/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/ChangeLog?rev=1.126&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/ChangeLog?rev=1.126&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/ChangeLog?r1=1.125&r2=1.126
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v
19 retrieving revision 1.125
20 retrieving revision 1.126
21 diff -u -r1.125 -r1.126
22 --- ChangeLog 8 Jan 2010 14:13:44 -0000 1.125
23 +++ ChangeLog 8 Feb 2010 23:42:23 -0000 1.126
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-libs/gmp
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.125 2010/01/08 14:13:44 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.126 2010/02/08 23:42:23 vapier Exp $
29 +
30 +*gmp-5.0.1 (08 Feb 2010)
31 +
32 + 08 Feb 2010; Mike Frysinger <vapier@g.o> +gmp-5.0.1.ebuild:
33 + Version bump #304063 by Jeroen Roovers.
34
35 *gmp-5.0.0 (08 Jan 2010)
36
37
38
39
40 1.1 dev-libs/gmp/gmp-5.0.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/gmp-5.0.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gmp/gmp-5.0.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: gmp-5.0.1.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.0.1.ebuild,v 1.1 2010/02/08 23:42:23 vapier Exp $
50
51 inherit flag-o-matic eutils libtool flag-o-matic
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 ~x86 ~sparc-fbsd ~x86-fbsd"
61 IUSE="nocxx" #doc
62
63 src_unpack() {
64 unpack ${A}
65 cd "${S}"
66 [[ -d ${FILESDIR}/${PV} ]] && EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch "${FILESDIR}"/${PV}
67 epatch "${FILESDIR}"/${PN}-4.1.4-noexecstack.patch
68 epatch "${FILESDIR}"/${PN}-5.0.0-s390.diff
69
70 # GMP uses the "ABI" env var during configure as does Gentoo (econf)
71 mv configure configure.wrapped || die
72 cat <<-\EOF > configure
73 #!/bin/sh
74 export ABI=$GMPABI
75 exec "${0}.wrapped" "$@"
76 EOF
77 chmod a+rx configure
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) GMPABI=32;;
94 64|amd64|n64) GMPABI=64;;
95 o32|n32) GMPABI=${ABI};;
96 esac
97 export GMPABI
98
99 tc-export CC
100 econf \
101 --localstatedir=/var/state/gmp \
102 --disable-mpfr \
103 --disable-mpbsd \
104 $(use_enable !nocxx cxx) \
105 || die "configure failed"
106
107 # Fix the ABI for hppa2.0
108 if [[ -n ${is_hppa_2_0} ]] ; then
109 sed -i \
110 -e 's:pa32/hppa1_1:pa32/hppa2_0:' \
111 "${S}"/config.h || die
112 export CHOST=${CHOST/1.1/2.0}
113 fi
114
115 emake || die "emake failed"
116 }
117
118 src_install() {
119 emake DESTDIR="${D}" install || die "make install failed"
120
121 dodoc AUTHORS ChangeLog NEWS README
122 dodoc doc/configuration doc/isa_abi_headache
123 dohtml -r doc
124
125 #use doc && cp "${DISTDIR}"/gmp-man-${PV}.pdf "${D}"/usr/share/doc/${PF}/
126 }