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

Diff of /eclass/libtool.eclass

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

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

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

  ViewVC Help
Powered by ViewVC 1.1.20