Lines 1-11
Link Here
|
1 |
# Copyright 1999-2013 Gentoo Foundation |
1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/mpfr-3.1.2.ebuild,v 1.2 2013/04/29 16:08:45 bicatali Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/mpfr-3.1.2.ebuild,v 1.2 2013/04/29 16:08:45 bicatali Exp $ |
4 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI="3" |
6 |
|
6 |
|
7 |
# NOTE: we cannot depend on autotools here starting with gcc-4.3.x |
7 |
# NOTE: we cannot depend on autotools here starting with gcc-4.3.x |
8 |
inherit eutils multilib |
8 |
inherit eutils libtool multilib |
9 |
|
9 |
|
10 |
MY_PV=${PV/_p*} |
10 |
MY_PV=${PV/_p*} |
11 |
MY_P=${PN}-${MY_PV} |
11 |
MY_P=${PN}-${MY_PV} |
Lines 39-49
Link Here
|
39 |
done |
39 |
done |
40 |
sed -i '/if test/s:==:=:' configure #261016 |
40 |
sed -i '/if test/s:==:=:' configure #261016 |
41 |
find . -type f -print0 | xargs -0 touch -r configure |
41 |
find . -type f -print0 | xargs -0 touch -r configure |
|
|
42 |
|
43 |
# needed for FreeMiNT |
44 |
[[ ${CHOST} == *-mint* ]] && elibtoolize |
42 |
} |
45 |
} |
43 |
|
46 |
|
44 |
src_configure() { |
47 |
src_configure() { |
45 |
econf \ |
48 |
econf \ |
46 |
--docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
49 |
--docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
|
|
50 |
--with-gmp-lib="${EPREFIX}"/usr/$(get_libdir) \ |
51 |
--with-gmp-include="${EPREFIX}"/usr/include || die |
47 |
$(use_enable static-libs static) |
52 |
$(use_enable static-libs static) |
48 |
} |
53 |
} |
49 |
|
54 |
|
Lines 61-69
Link Here
|
61 |
} |
66 |
} |
62 |
|
67 |
|
63 |
pkg_preinst() { |
68 |
pkg_preinst() { |
64 |
preserve_old_lib /usr/$(get_libdir)/libmpfr.so.1 |
69 |
preserve_old_lib /usr/$(get_libdir)/libmpfr$(get_libname 1) |
65 |
} |
70 |
} |
66 |
|
71 |
|
67 |
pkg_postinst() { |
72 |
pkg_postinst() { |
68 |
preserve_old_lib_notify /usr/$(get_libdir)/libmpfr.so.1 |
73 |
preserve_old_lib_notify /usr/$(get_libdir)/libmpfr$(get_libname 1) |
69 |
} |
74 |
} |