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: gmp-5.1.2.ebuild ChangeLog
Date: Tue, 21 May 2013 18:48:06
Message-Id: 20130521184803.0A1E22171D@flycatcher.gentoo.org
1 vapier 13/05/21 18:48:02
2
3 Modified: ChangeLog
4 Added: gmp-5.1.2.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
9
10 Revision Changes Path
11 1.177 dev-libs/gmp/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/ChangeLog?rev=1.177&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/ChangeLog?rev=1.177&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/ChangeLog?r1=1.176&r2=1.177
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v
20 retrieving revision 1.176
21 retrieving revision 1.177
22 diff -u -r1.176 -r1.177
23 --- ChangeLog 21 Apr 2013 02:21:21 -0000 1.176
24 +++ ChangeLog 21 May 2013 18:48:02 -0000 1.177
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-libs/gmp
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.176 2013/04/21 02:21:21 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.177 2013/05/21 18:48:02 vapier Exp $
30 +
31 +*gmp-5.1.2 (21 May 2013)
32 +
33 + 21 May 2013; Mike Frysinger <vapier@g.o> +gmp-5.1.2.ebuild:
34 + Version bump.
35
36 21 Apr 2013; Mike Frysinger <vapier@g.o> +files/gmp-5.1.0-armv4.patch,
37 gmp-5.1.0.ebuild, gmp-5.1.1.ebuild:
38
39
40
41 1.1 dev-libs/gmp/gmp-5.1.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/gmp-5.1.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/gmp-5.1.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gmp-5.1.2.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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.1.2.ebuild,v 1.1 2013/05/21 18:48:02 vapier Exp $
51
52 inherit flag-o-matic eutils libtool unpacker toolchain-funcs
53
54 MY_PV=${PV/_p*}
55 MY_P=${PN}-${MY_PV}
56 PLEVEL=${PV/*p}
57 DESCRIPTION="Library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers"
58 HOMEPAGE="http://gmplib.org/"
59 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz
60 ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
61 doc? ( http://gmplib.org/${PN}-man-${MY_PV}.pdf )"
62
63 LICENSE="LGPL-3"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
66 IUSE="doc cxx pgo static-libs"
67
68 DEPEND="sys-devel/m4
69 app-arch/xz-utils"
70 RDEPEND=""
71
72 S=${WORKDIR}/${MY_P}
73
74 src_unpack() {
75 unpacker_src_unpack
76 cd "${S}"
77 [[ -d ${FILESDIR}/${PV} ]] && EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch "${FILESDIR}"/${PV}
78 epatch "${FILESDIR}"/${PN}-4.1.4-noexecstack.patch
79
80 # disable -fPIE -pie in the tests for x86 #236054
81 if use x86 && gcc-specs-pie ; then
82 epatch "${FILESDIR}"/${PN}-5.1.0-x86-nopie-tests.patch
83 fi
84
85 # note: we cannot run autotools here as gcc depends on this package
86 elibtoolize
87
88 # GMP uses the "ABI" env var during configure as does Gentoo (econf).
89 # So, to avoid patching the source constantly, wrap things up.
90 mv configure configure.wrapped || die
91 cat <<-\EOF > configure
92 #!/bin/sh
93 exec env ABI="$GMPABI" "$0.wrapped" "$@"
94 EOF
95 chmod a+rx configure
96 }
97
98 src_compile() {
99 # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
100 # http://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
101 if [[ ${CHOST} == hppa2.0-* ]] ; then
102 export GMPABI="1.0"
103 fi
104
105 # ABI mappings (needs all architectures supported)
106 case ${ABI} in
107 32|x86) GMPABI=32;;
108 64|amd64|n64) GMPABI=64;;
109 [onx]32) GMPABI=${ABI};;
110 esac
111 export GMPABI
112
113 tc-export CC
114 econf \
115 --localstatedir=/var/state/gmp \
116 $(use_enable cxx) \
117 $(use_enable static-libs static)
118
119 emake || die
120
121 if use pgo ; then
122 emake -j1 -C tune tuneup || die
123 rm gmp-mparam.h || die
124 ./tune/tuneup | tee gmp-mparam.h
125 emake clean || die
126 emake || die
127 fi
128 }
129
130 src_test() {
131 emake check
132 }
133
134 src_install() {
135 emake DESTDIR="${D}" install || die
136
137 # should be a standalone lib
138 rm -f "${D}"/usr/$(get_libdir)/libgmp.la
139 # this requires libgmp
140 local la="${D}/usr/$(get_libdir)/libgmpxx.la"
141 use static-libs \
142 && sed -i 's:/[^ ]*/libgmp.la:-lgmp:' "${la}" \
143 || rm -f "${la}"
144
145 dodoc AUTHORS ChangeLog NEWS README
146 dodoc doc/configuration doc/isa_abi_headache
147 dohtml -r doc
148
149 use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf "${D}"/usr/share/doc/${PF}/
150 }
151
152 pkg_preinst() {
153 preserve_old_lib /usr/$(get_libdir)/libgmp.so.3
154 }
155
156 pkg_postinst() {
157 preserve_old_lib_notify /usr/$(get_libdir)/libgmp.so.3
158 }