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.3.ebuild ChangeLog
Date: Wed, 02 Oct 2013 22:36:50
Message-Id: 20131002223647.66DCE2004C@flycatcher.gentoo.org
1 vapier 13/10/02 22:36:47
2
3 Modified: ChangeLog
4 Added: gmp-5.1.3.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
9
10 Revision Changes Path
11 1.179 dev-libs/gmp/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/ChangeLog?rev=1.179&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/ChangeLog?rev=1.179&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/ChangeLog?r1=1.178&r2=1.179
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v
20 retrieving revision 1.178
21 retrieving revision 1.179
22 diff -u -r1.178 -r1.179
23 --- ChangeLog 26 May 2013 16:14:48 -0000 1.178
24 +++ ChangeLog 2 Oct 2013 22:36:47 -0000 1.179
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.178 2013/05/26 16:14:48 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.179 2013/10/02 22:36:47 vapier Exp $
30 +
31 +*gmp-5.1.3 (02 Oct 2013)
32 +
33 + 02 Oct 2013; Mike Frysinger <vapier@g.o> +gmp-5.1.3.ebuild:
34 + Version bump.
35
36 26 May 2013; Mike Frysinger <vapier@g.o> gmp-5.1.0.ebuild,
37 gmp-5.1.1.ebuild, gmp-5.1.2.ebuild:
38
39
40
41 1.1 dev-libs/gmp/gmp-5.1.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/gmp-5.1.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/gmp/gmp-5.1.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gmp-5.1.3.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.3.ebuild,v 1.1 2013/10/02 22:36:47 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 ebegin "Trying to generate tuned data"
124 ./tune/tuneup | tee gmp.mparam.h.new
125 if eend $(( 0 + ${PIPESTATUS[*]/#/+} )) ; then
126 mv gmp-mparam.h.new gmp-mparam.h
127 emake clean || die
128 emake || die
129 fi
130 fi
131 }
132
133 src_test() {
134 emake check
135 }
136
137 src_install() {
138 emake DESTDIR="${D}" install || die
139
140 # should be a standalone lib
141 rm -f "${D}"/usr/$(get_libdir)/libgmp.la
142 # this requires libgmp
143 local la="${D}/usr/$(get_libdir)/libgmpxx.la"
144 use static-libs \
145 && sed -i 's:/[^ ]*/libgmp.la:-lgmp:' "${la}" \
146 || rm -f "${la}"
147
148 dodoc AUTHORS ChangeLog NEWS README
149 dodoc doc/configuration doc/isa_abi_headache
150 dohtml -r doc
151
152 use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf "${D}"/usr/share/doc/${PF}/
153 }
154
155 pkg_preinst() {
156 preserve_old_lib /usr/$(get_libdir)/libgmp.so.3
157 }
158
159 pkg_postinst() {
160 preserve_old_lib_notify /usr/$(get_libdir)/libgmp.so.3
161 }