Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 499390
Collapse All | Expand All

(-)/usr/portage/sys-devel/libtool/libtool-2.4.2.ebuild (-8 / +11 lines)
Lines 2-12 Link Here
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/sys-devel/libtool/libtool-2.4.2.ebuild,v 1.18 2014/01/18 03:56:58 vapier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-devel/libtool/libtool-2.4.2.ebuild,v 1.18 2014/01/18 03:56:58 vapier Exp $
4
4
5
EAPI="2" #356089
5
EAPI="4"
6
6
7
LIBTOOLIZE="true" #225559
7
LIBTOOLIZE="true" #225559
8
WANT_LIBTOOL="none"
8
WANT_LIBTOOL="none"
9
inherit eutils autotools multilib unpacker
9
inherit eutils autotools multilib unpacker multilib-minimal
10
10
11
if [[ ${PV} == "9999" ]] ; then
11
if [[ ${PV} == "9999" ]] ; then
12
	EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git
12
	EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git
Lines 27-33 Link Here
27
RDEPEND="sys-devel/gnuconfig
27
RDEPEND="sys-devel/gnuconfig
28
	!<sys-devel/autoconf-2.62:2.5
28
	!<sys-devel/autoconf-2.62:2.5
29
	!<sys-devel/automake-1.11.1:1.11
29
	!<sys-devel/automake-1.11.1:1.11
30
	!=sys-devel/libtool-2*:1.5"
30
	!=sys-devel/libtool-2*:1.5
31
	abi_x86_32? (
32
		!<=app-emulation/emul-linux-x86-baselibs-20131008-r9
33
		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
34
	)"
31
DEPEND="${RDEPEND}
35
DEPEND="${RDEPEND}
32
	test? ( !<sys-devel/binutils-2.20 )
36
	test? ( !<sys-devel/binutils-2.20 )
33
	app-arch/xz-utils"
37
	app-arch/xz-utils"
Lines 55-72 Link Here
55
	epunt_cxx
59
	epunt_cxx
56
}
60
}
57
61
58
src_configure() {
62
multilib_src_configure() {
59
	# the libtool script uses bash code in it and at configure time, tries
63
	# 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
64
	# 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
65
	# 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.
66
	# shells, so just force libtool to use /bin/bash all the time.
63
	export CONFIG_SHELL=/bin/bash
67
	export CONFIG_SHELL=/bin/bash
64
68
	ECONF_SOURCE="${S}" \
65
	econf $(use_enable static-libs static)
69
	econf $(use_enable static-libs static)
66
}
70
}
67
71
68
src_install() {
72
multilib_src_install_all() {
69
	emake DESTDIR="${D}" install || die
70
	dodoc AUTHORS ChangeLog* NEWS README THANKS TODO doc/PLATFORMS
73
	dodoc AUTHORS ChangeLog* NEWS README THANKS TODO doc/PLATFORMS
71
74
72
	# While the libltdl.la file is not used directly, the m4 ltdl logic
75
	# While the libltdl.la file is not used directly, the m4 ltdl logic
Lines 76-82 Link Here
76
	# Building libtool with --disable-static will cause the installed
79
	# Building libtool with --disable-static will cause the installed
77
	# helper to not build static objects by default.  This is undesirable
80
	# helper to not build static objects by default.  This is undesirable
78
	# for crappy packages that utilize the system libtool, so undo that.
81
	# 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
82
	sed -i -e '1,/^build_old_libs=/{/^build_old_libs=/{s:=.*:=yes:}}' "${D}"/usr/bin/libtool || die
80
83
81
	local x
84
	local x
82
	for x in $(find "${D}" -name config.guess -o -name config.sub) ; do
85
	for x in $(find "${D}" -name config.guess -o -name config.sub) ; do

Return to bug 499390