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

Diff of /eclass/libtool.eclass

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

Revision 1.40 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.40 2004/10/20 14:29:26 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
277} 277}
278 278
279uclibctoolize() { 279uclibctoolize() {
280 [ -n "${NO_UCLIBCTOOLIZE}" ] && return 0 280 [ -n "${NO_UCLIBCTOOLIZE}" ] && return 0
281 281
282 local errmsg=""
283 [ "${PORTAGE_LIBC}" = "uClibc" ] \
284 && errmsg="PLEASE CHECK" \
285 || errmsg="Already patched"
282 local targets="" 286 local targets=""
283 local x 287 local x
284 288
285 if [ -z "$@" ] ; then 289 if [ -z "$@" ] ; then
286 targets="$(find ${S} -name configure -o -name ltconfig)" 290 targets="$(find ${S} -name configure -o -name ltconfig)"
292 case $(basename "${x}") in 296 case $(basename "${x}") in
293 configure) 297 configure)
294 if grep 'Transform linux' "${x}" >/dev/null ; then 298 if grep 'Transform linux' "${x}" >/dev/null ; then
295 ebegin " Fixing \${S}${x/${S}}" 299 ebegin " Fixing \${S}${x/${S}}"
296 patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/configure.patch" > /dev/null 300 patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/configure.patch" > /dev/null
297 eend $? "PLEASE CHECK ${x}" 301 eend $? "${errmsg} ${x}"
298 fi 302 fi
299 ;; 303 ;;
300 304
301 ltconfig) 305 ltconfig)
302 local ver="$(grep '^VERSION=' ${x})" 306 local ver="$(grep '^VERSION=' ${x})"
303 ver="${ver/VERSION=}" 307 ver="${ver/VERSION=}"
304 [ "${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
305 ebegin " Fixing \${S}${x/${S}}" 309 ebegin " Fixing \${S}${x/${S}}"
306 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
307 eend $? "PLEASE CHECK ${x}" 311 eend $? "${errmsg} ${x}"
308 ;; 312 ;;
309 esac 313 esac
310 done 314 done
311} 315}
312 316

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

  ViewVC Help
Powered by ViewVC 1.1.20