From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/mpfr: ChangeLog mpfr-3.1.0.ebuild |
Date: | Mon, 03 Oct 2011 17:43:10 |
Message-Id: | 20111003174300.C36772004B@flycatcher.gentoo.org |
1 | vapier 11/10/03 17:43:00 |
2 | |
3 | Modified: ChangeLog |
4 | Added: mpfr-3.1.0.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2.0_alpha59/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.142 dev-libs/mpfr/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/mpfr/ChangeLog?rev=1.142&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/mpfr/ChangeLog?rev=1.142&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/mpfr/ChangeLog?r1=1.141&r2=1.142 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-libs/mpfr/ChangeLog,v |
20 | retrieving revision 1.141 |
21 | retrieving revision 1.142 |
22 | diff -u -r1.141 -r1.142 |
23 | --- ChangeLog 3 Oct 2011 15:17:49 -0000 1.141 |
24 | +++ ChangeLog 3 Oct 2011 17:43:00 -0000 1.142 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-libs/mpfr |
27 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/ChangeLog,v 1.141 2011/10/03 15:17:49 vapier Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/ChangeLog,v 1.142 2011/10/03 17:43:00 vapier Exp $ |
30 | + |
31 | +*mpfr-3.1.0 (03 Oct 2011) |
32 | + |
33 | + 03 Oct 2011; Mike Frysinger <vapier@g.o> +mpfr-3.1.0.ebuild: |
34 | + Version bump. |
35 | |
36 | *mpfr-2.4.2_p3-r1 (03 Oct 2011) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 dev-libs/mpfr/mpfr-3.1.0.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/mpfr/mpfr-3.1.0.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/mpfr/mpfr-3.1.0.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: mpfr-3.1.0.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2011 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/mpfr-3.1.0.ebuild,v 1.1 2011/10/03 17:43:00 vapier Exp $ |
51 | |
52 | EAPI="3" |
53 | |
54 | # NOTE: we cannot depend on autotools here starting with gcc-4.3.x |
55 | inherit eutils multilib |
56 | |
57 | MY_PV=${PV/_p*} |
58 | MY_P=${PN}-${MY_PV} |
59 | PLEVEL=${PV/*p} |
60 | DESCRIPTION="library for multiple-precision floating-point computations with exact rounding" |
61 | HOMEPAGE="http://www.mpfr.org/" |
62 | SRC_URI="http://www.mpfr.org/mpfr-${MY_PV}/${MY_P}.tar.bz2" |
63 | |
64 | LICENSE="LGPL-2.1" |
65 | SLOT="0" |
66 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
67 | IUSE="static-libs" |
68 | |
69 | RDEPEND=">=dev-libs/gmp-4.1.4-r2[static-libs=]" |
70 | DEPEND="${RDEPEND}" |
71 | |
72 | S=${WORKDIR}/${MY_P} |
73 | |
74 | src_prepare() { |
75 | [[ -d ${FILESDIR}/${PV} ]] && epatch "${FILESDIR}"/${PV}/*.patch |
76 | [[ ${PLEVEL} == ${PV} ]] && return 0 |
77 | for ((i=1; i<=PLEVEL; ++i)) ; do |
78 | patch=patch$(printf '%02d' ${i}) |
79 | if [[ -f ${FILESDIR}/${MY_PV}/${patch} ]] ; then |
80 | epatch "${FILESDIR}"/${MY_PV}/${patch} |
81 | elif [[ -f ${DISTDIR}/${PN}-${MY_PV}_p${i} ]] ; then |
82 | epatch "${DISTDIR}"/${PN}-${MY_PV}_p${i} |
83 | else |
84 | ewarn "${DISTDIR}/${PN}-${MY_PV}_p${i}" |
85 | die "patch ${i} missing - please report to bugs.gentoo.org" |
86 | fi |
87 | done |
88 | sed -i '/if test/s:==:=:' configure #261016 |
89 | find . -type f -print0 | xargs -0 touch -r configure |
90 | } |
91 | |
92 | src_configure() { |
93 | econf \ |
94 | --docdir=/usr/share/doc/${PF} \ |
95 | $(use_enable static-libs static) |
96 | } |
97 | |
98 | src_install() { |
99 | emake install DESTDIR="${D}" || die |
100 | use static-libs || rm -f "${D}"/usr/$(get_libdir)/libmpfr.la |
101 | |
102 | # clean up html/license install |
103 | pushd "${D}"/usr/share/doc/${PF} >/dev/null |
104 | dohtml *.html && rm COPYING* *.html || die |
105 | popd >/dev/null |
106 | # some, but not all, are already installed |
107 | dodoc AUTHORS BUGS ChangeLog NEWS README TODO |
108 | prepalldocs |
109 | } |
110 | |
111 | pkg_preinst() { |
112 | preserve_old_lib /usr/$(get_libdir)/libmpfr.so.1 |
113 | } |
114 | |
115 | pkg_postinst() { |
116 | preserve_old_lib_notify /usr/$(get_libdir)/libmpfr.so.1 |
117 | } |