/[gentoo-x86]/sys-devel/libtool/libtool-1.5.26.ebuild
Gentoo

Contents of /sys-devel/libtool/libtool-1.5.26.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Sep 26 21:23:14 2010 UTC (3 years, 6 months ago) by ssuominen
Branch: MAIN
Changes since 1.10: +2 -2 lines
Shorten the already too long repoman output by couple of lines

(Portage version: 2.2_rc87/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/libtool-1.5.26.ebuild,v 1.10 2010/06/08 21:45:57 vapier Exp $
4
5 inherit eutils
6
7 DESCRIPTION="A shared library tool for developers"
8 HOMEPAGE="http://www.gnu.org/software/libtool/"
9 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="1.5"
13 # Keep around for a bit in case someone really needs libtool-1.x
14 #KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
15 IUSE="vanilla"
16
17 RDEPEND="sys-devel/gnuconfig
18 >=sys-devel/autoconf-2.60
19 >=sys-devel/automake-1.10"
20 DEPEND="${RDEPEND}
21 sys-apps/help2man"
22
23 gen_ltmain_sh() {
24 local date=
25 local PACKAGE=
26 local VERSION=
27
28 rm -f ltmain.shT
29 date=`./mkstamp < ./ChangeLog` && \
30 eval `egrep '^[[:space:]]*PACKAGE.*=' configure` && \
31 eval `egrep '^[[:space:]]*VERSION.*=' configure` && \
32 sed -e "s/@PACKAGE@/${PACKAGE}/" -e "s/@VERSION@/${VERSION}/" \
33 -e "s%@TIMESTAMP@%$date%" ./ltmain.in > ltmain.shT || return 1
34
35 mv -f ltmain.shT ltmain.sh || {
36 (rm -f ltmain.sh && cp ltmain.shT ltmain.sh && rm -f ltmain.shT)
37 return 1
38 }
39
40 return 0
41 }
42
43 src_unpack() {
44 unpack ${A}
45 cd "${S}"
46
47 use vanilla && return 0
48
49 # Make sure non of the patches touch ltmain.sh, but rather ltmain.in
50 rm -f ltmain.sh*
51
52 epatch "${FILESDIR}"/1.5.20/${PN}-1.5.20-use-linux-version-in-fbsd.patch #109105
53 epatch "${FILESDIR}"/1.5.10/libtool-1.5.10-locking.patch #40992
54
55 # Note: The following patches should be dropped with libtool-2+
56 epatch "${FILESDIR}"/1.5.20/${PN}-1.5.20-version-checking.patch #73140
57 sed -i "s:@_LT_VERSION@:${PV}:" libtool.m4 || die "sed libtool.m4"
58 epatch "${FILESDIR}"/1.5.6/libtool-1.5-filter-host-tags.patch
59 epatch "${FILESDIR}"/1.5.20/libtool-1.5.20-override-LD_LIBRARY_PATH.patch
60
61 ebegin "Generating ltmain.sh"
62 gen_ltmain_sh || die "Failed to generate ltmain.sh!"
63 eend 0
64
65 # Now let's run all our autotool stuff so that files we patch
66 # below don't get regenerated on us later
67 einfo "Ignore any warnings below about QA/autotools"
68 cp libtool.m4 acinclude.m4
69 local d p
70 for d in . libltdl ; do
71 ebegin "Running autotools in '${d}'"
72 cd "${S}"/${d}
73 touch acinclude.m4
74 for p in aclocal "automake -c -a" autoconf ; do
75 ${p} || die "${p}"
76 done
77 eend 0
78 done
79 cd "${S}"
80
81 epunt_cxx
82 }
83
84 src_install() {
85 emake DESTDIR="${D}" install || die
86 dodoc AUTHORS ChangeLog* NEWS README THANKS TODO doc/PLATFORMS
87
88 local x
89 for x in libtool libtoolize ; do
90 help2man ${x} > ${x}.1
91 doman ${x}.1 || die
92 done
93
94 for x in $(find "${D}" -name config.guess -o -name config.sub) ; do
95 rm -f "${x}" ; ln -sf ../gnuconfig/$(basename "${x}") "${x}"
96 done
97 cd "${D}"/usr/share/libtool/libltdl
98 for x in config.guess config.sub ; do
99 rm -f ${x} ; ln -sfn ../${x} ${x}
100 done
101 }

  ViewVC Help
Powered by ViewVC 1.1.20