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

Diff of /eclass/libtool.eclass

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

Revision 1.37 Revision 1.41
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.37 2004/10/19 19:51:12 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.41 2004/11/22 14:55:57 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
155 then 155 then
156 my_dirlist="${S}" 156 my_dirlist="${S}"
157 else 157 else
158 my_dirlist= 158 my_dirlist=
159 fi 159 fi
160 ;;
161 "--no-uclibc")
162 NO_UCLIBCTOOLIZE=1
160 ;; 163 ;;
161 esac 164 esac
162 done 165 done
163 166
164 if use ppc-macos ; then 167 if use ppc-macos ; then
272 275
273 uclibctoolize 276 uclibctoolize
274} 277}
275 278
276uclibctoolize() { 279uclibctoolize() {
280 [ -n "${NO_UCLIBCTOOLIZE}" ] && return 0
281
282 local errmsg=""
283 [ "${PORTAGE_LIBC}" = "uClibc" ] \
284 && errmsg="PLEASE CHECK" \
285 || errmsg="Already patched"
277 local targets="" 286 local targets=""
278 local x 287 local x
279 288
280 if [ -z "$@" ] ; then 289 if [ -z "$@" ] ; then
281 targets="$(find ${S} -name configure -o -name ltconfig)" 290 targets="$(find ${S} -name configure -o -name ltconfig)"
287 case $(basename "${x}") in 296 case $(basename "${x}") in
288 configure) 297 configure)
289 if grep 'Transform linux' "${x}" >/dev/null ; then 298 if grep 'Transform linux' "${x}" >/dev/null ; then
290 ebegin " Fixing \${S}${x/${S}}" 299 ebegin " Fixing \${S}${x/${S}}"
291 patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/configure.patch" > /dev/null 300 patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/configure.patch" > /dev/null
292 eend $? "PLEASE CHECK ${x}" 301 eend $? "${errmsg} ${x}"
293 fi 302 fi
294 ;; 303 ;;
295 304
296 ltconfig) 305 ltconfig)
297 local ver="$(grep '^VERSION=' ${x})" 306 local ver="$(grep '^VERSION=' ${x})"
298 ver="${ver/VERSION=}" 307 ver="${ver/VERSION=}"
299 [ "${ver:0:3}" == "1.4" ] && ver="1.3" # 1.4 and 1.3 are compat 308 [ "${ver:0:3}" == "1.4" ] && ver="1.3" # 1.4 and 1.3 are compat
300 ebegin " Fixing \${S}${x/${S}}" 309 ebegin " Fixing \${S}${x/${S}}"
301 patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/ltconfig-${ver:0:3}.patch" > /dev/null 310 patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/ltconfig-${ver:0:3}.patch" > /dev/null
302 eend $? "PLEASE CHECK ${x}" 311 eend $? "${errmsg} ${x}"
303 ;; 312 ;;
304 esac 313 esac
305 done 314 done
306} 315}
307 316

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

  ViewVC Help
Powered by ViewVC 1.1.20