diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-06-05 23:11:49 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-06-05 23:11:49 +0000 |
commit | 0bd19e24c15d655e2da14dda250e75650d04a726 (patch) | |
tree | 35bb872eb726f757fd853ceeaf81a673be6d42ac /eclass/libtool.eclass | |
parent | some confusion, these have now been removed,.. :) (diff) | |
download | gentoo-2-0bd19e24c15d655e2da14dda250e75650d04a726.tar.gz gentoo-2-0bd19e24c15d655e2da14dda250e75650d04a726.tar.bz2 gentoo-2-0bd19e24c15d655e2da14dda250e75650d04a726.zip |
small fixes
Diffstat (limited to 'eclass/libtool.eclass')
-rw-r--r-- | eclass/libtool.eclass | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index 732907663645..5284a75f70e4 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -2,7 +2,7 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Martin Schlemmer <azarah@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.1 2002/06/05 22:53:11 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.2 2002/06/05 23:11:49 azarah Exp $ # This eclass patches ltmain.sh distributed with libtoolized packages with the # relink and portage patch ECLASS=libtool @@ -16,12 +16,29 @@ elibtoolize() { local x="" local y="" local dopatch="no" + local portage="no" + + if [ "${1}" = "--portage" ] + then + portage="yes" + fi for x in $(find_ltmain) do cd ${x} einfo "Working directory: ${x}..." dopatch="yes" + + if [ "${portage}" = "yes" ] || \ + [ -n "$(grep -e "inst_prefix_dir" ltmain.sh)" ] + then + if eval portage_patch --test $>${T}/libtool.foo + then + einfo "Applying libtool-portage.patch..." + portage_patch $>${T}/libtool.foo + fi + continue + fi for y in test_patch relink_patch portage_patch do |