/[gentoo-x86]/eclass/libtool.eclass
Gentoo

Diff of /eclass/libtool.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.36 Revision 1.37
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/eclass/libtool.eclass,v 1.36 2004/10/10 17:11:37 usata Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.37 2004/10/19 19:51:12 vapier Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass patches ltmain.sh distributed with libtoolized packages with the 7# This eclass patches ltmain.sh distributed with libtoolized packages with the
8# relink and portage patch among others 8# relink and portage patch among others
51 local patch="$2" 51 local patch="$2"
52 52
53 # We only support patchlevel of 0 - why worry if its static patches? 53 # We only support patchlevel of 0 - why worry if its static patches?
54 if patch -p0 --dry-run $1 < ${patch} &>${T}/elibtool.log 54 if patch -p0 --dry-run $1 < ${patch} &>${T}/elibtool.log
55 then 55 then
56 einfo " Applying $(basename "$(dirname "${patch}")")-${patch##*/}.patch..." 56 einfo " Applying $(basename "$(dirname "${patch}")")-${patch##*/}.patch ..."
57 patch -p0 $1 < ${patch} &>${T}/elibtool.log 57 patch -p0 $1 < ${patch} &>${T}/elibtool.log
58 ret=$? 58 ret=$?
59 export ELT_APPLIED_PATCHES="${ELT_APPLIED_PATCHES} ${patch##*/}" 59 export ELT_APPLIED_PATCHES="${ELT_APPLIED_PATCHES} ${patch##*/}"
60 else 60 else
61 ret=1 61 ret=1
170 do 170 do
171 local tmp="$(echo "${x}" | sed -e "s|${S}||")" 171 local tmp="$(echo "${x}" | sed -e "s|${S}||")"
172 export ELT_APPLIED_PATCHES= 172 export ELT_APPLIED_PATCHES=
173 173
174 cd ${x} 174 cd ${x}
175 einfo "Patching \${S}$(echo "/${tmp}/ltmain.sh" | sed -e 's|//|/|g')..." 175 einfo "Patching \${S}$(echo "/${tmp}/ltmain.sh" | sed -e 's|//|/|g') ..."
176 176
177 for y in ${elt_patches} 177 for y in ${elt_patches}
178 do 178 do
179 local ret=0 179 local ret=0
180 180

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.20