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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Thu Apr 26 13:07:54 2012 UTC (2 years, 8 months ago) by aballier
Branch: MAIN
Changes since 1.4: +2 -2 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)

1 vapier 1.4 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 aballier 1.5 # $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/libtool-2.4.2.ebuild,v 1.4 2012/04/09 00:32:11 vapier Exp $
4 vapier 1.1
5     EAPI="2" #356089
6    
7     LIBTOOLIZE="true" #225559
8     WANT_LIBTOOL="none"
9     inherit eutils autotools multilib
10    
11     if [[ ${PV} == "9999" ]] ; then
12     EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git
13     http://git.savannah.gnu.org/r/${PN}.git"
14     inherit git-2
15     else
16     SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
17 aballier 1.5 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
18 vapier 1.1 fi
19    
20     DESCRIPTION="A shared library tool for developers"
21     HOMEPAGE="http://www.gnu.org/software/libtool/"
22    
23     LICENSE="GPL-2"
24     SLOT="2"
25     IUSE="static-libs test vanilla"
26    
27     RDEPEND="sys-devel/gnuconfig
28     !<sys-devel/autoconf-2.62:2.5
29     !<sys-devel/automake-1.11.1:1.11
30     !=sys-devel/libtool-2*:1.5"
31     DEPEND="${RDEPEND}
32     test? ( !<sys-devel/binutils-2.20 )
33     app-arch/xz-utils"
34     [[ ${PV} == "9999" ]] && DEPEND+=" sys-apps/help2man"
35    
36     src_unpack() {
37     if [[ ${PV} == "9999" ]] ; then
38     git-2_src_unpack
39     cd "${S}"
40     ./bootstrap || die
41     else
42     xz -dc "${DISTDIR}"/${A} > ${P}.tar #356089
43     unpack ./${P}.tar
44     fi
45     }
46    
47     src_prepare() {
48     use vanilla && return 0
49    
50     cd libltdl/m4
51     epatch "${FILESDIR}"/1.5.20/${PN}-1.5.20-use-linux-version-in-fbsd.patch #109105
52     cd ..
53     AT_NOELIBTOOLIZE=yes eautoreconf
54     cd ..
55     AT_NOELIBTOOLIZE=yes eautoreconf
56     }
57    
58     src_configure() {
59     # the libtool script uses bash code in it and at configure time, tries
60     # to find a bash shell. if /bin/sh is bash, it uses that. this can
61     # cause problems for people who switch /bin/sh on the fly to other
62     # shells, so just force libtool to use /bin/bash all the time.
63     export CONFIG_SHELL=/bin/bash
64    
65     econf $(use_enable static-libs static)
66     }
67    
68     src_install() {
69     emake DESTDIR="${D}" install || die
70     dodoc AUTHORS ChangeLog* NEWS README THANKS TODO doc/PLATFORMS
71    
72     # While the libltdl.la file is not used directly, the m4 ltdl logic
73     # keys off of its existence when searching for ltdl support. #293921
74     #use static-libs || find "${D}" -name libltdl.la -delete
75    
76 vapier 1.2 # Building libtool with --disable-static will cause the installed
77     # helper to not build static objects by default. This is undesirable
78     # for crappy packages that utilize the system libtool, so undo that.
79     dosed '1,/^build_old_libs=/{/^build_old_libs=/{s:=.*:=yes:}}' /usr/bin/libtool || die
80    
81 vapier 1.1 for x in $(find "${D}" -name config.guess -o -name config.sub) ; do
82     rm -f "${x}" ; ln -sf /usr/share/gnuconfig/${x##*/} "${x}"
83     done
84     }
85    
86     pkg_preinst() {
87     preserve_old_lib /usr/$(get_libdir)/libltdl.so.3
88     }
89    
90     pkg_postinst() {
91     preserve_old_lib_notify /usr/$(get_libdir)/libltdl.so.3
92     }

  ViewVC Help
Powered by ViewVC 1.1.20