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