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