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

Diff of /eclass/libtool.eclass

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

Revision 1.29 Revision 1.30
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.29 2004/09/22 16:00:42 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.30 2004/09/22 18:33:47 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
113 local elt_patches="portage relink max_cmd_len sed test tmp" 113 local elt_patches="portage relink max_cmd_len sed test tmp"
114 local start_dir="${PWD}" 114 local start_dir="${PWD}"
115 115
116 my_dirlist="$(ELT_find_ltmain_sh)" 116 my_dirlist="$(ELT_find_ltmain_sh)"
117 117
118 for x in $* 118 for x in "$@"
119 do 119 do
120 case "${x}" in 120 case "${x}" in
121 "--portage") 121 "--portage")
122 # Only apply portage patch, and don't 122 # Only apply portage patch, and don't
123 # 'libtoolize --copy --force' if all patches fail. 123 # 'libtoolize --copy --force' if all patches fail.
254 then 254 then
255 rm -f libtool 255 rm -f libtool
256 fi 256 fi
257 257
258 cd "${start_dir}" 258 cd "${start_dir}"
259
260 uclibctoolize
259} 261}
262
263uclibctoolize() {
264 local targets=""
265 local x
266
267 if [ -z "$@" ] ; then
268 targets="$(find ${S} -name configure)"
269 fi
270
271 einfo "Applying uClibc/libtool patches ..."
272 for x in ${targets} ; do
273 if grep 'Transform linux' "${x}" >/dev/null ; then
274 ebegin " Fixing \${S}${x/${S}}"
275 patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/configure.patch" > /dev/null
276 eend $? "PLEASE CHECK ${x}"
277 fi
278 done
279}

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20