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

Diff of /eclass/libtool.eclass

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

Revision 1.96 Revision 1.102
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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.96 2011/11/18 17:32:14 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.102 2012/09/15 16:16:53 zmedico Exp $
4 4
5# @ECLASS: libtool.eclass 5# @ECLASS: libtool.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: quickly update bundled libtool code 8# @BLURB: quickly update bundled libtool code
11# relink and portage patch among others 11# relink and portage patch among others
12# 12#
13# Note, this eclass does not require libtool as it only applies patches to 13# Note, this eclass does not require libtool as it only applies patches to
14# generated libtool files. We do not run the libtoolize program because that 14# generated libtool files. We do not run the libtoolize program because that
15# requires a regeneration of the main autotool files in order to work properly. 15# requires a regeneration of the main autotool files in order to work properly.
16
17if [[ ${___ECLASS_ONCE_LIBTOOL} != "recur -_+^+_- spank" ]] ; then
18___ECLASS_ONCE_LIBTOOL="recur -_+^+_- spank"
16 19
17# If an overlay has eclass overrides, but doesn't actually override the 20# If an overlay has eclass overrides, but doesn't actually override the
18# libtool.eclass, we'll have ECLASSDIR pointing to the active overlay's 21# libtool.eclass, we'll have ECLASSDIR pointing to the active overlay's
19# eclass/ dir, but libtool.eclass is still in the main Gentoo tree. So 22# eclass/ dir, but libtool.eclass is still in the main Gentoo tree. So
20# add a check to locate the ELT-patches/ regardless of what's going on. 23# add a check to locate the ELT-patches/ regardless of what's going on.
24 if [[ ! -d ${d} ]] ; then 27 if [[ ! -d ${d} ]] ; then
25 d="${ECLASSDIR_LOCAL}/ELT-patches" 28 d="${ECLASSDIR_LOCAL}/ELT-patches"
26 fi 29 fi
27 echo "${d}" 30 echo "${d}"
28} 31}
29
30DESCRIPTION="Based on the ${ECLASS} eclass"
31 32
32inherit multilib toolchain-funcs 33inherit multilib toolchain-funcs
33 34
34# 35#
35# See if we can apply $2 on $1, and if so, do it 36# See if we can apply $2 on $1, and if so, do it
177 [[ ${do_uclibc} == "yes" ]] && elt_patches+=" uclibc-conf uclibc-ltconf" 178 [[ ${do_uclibc} == "yes" ]] && elt_patches+=" uclibc-conf uclibc-ltconf"
178 179
179 case ${CHOST} in 180 case ${CHOST} in
180 *-aix*) elt_patches+=" hardcode aixrtl aix-noundef" ;; #213277 181 *-aix*) elt_patches+=" hardcode aixrtl aix-noundef" ;; #213277
181 *-darwin*) elt_patches+=" darwin-ltconf darwin-ltmain darwin-conf" ;; 182 *-darwin*) elt_patches+=" darwin-ltconf darwin-ltmain darwin-conf" ;;
183 *-solaris*) elt_patches+=" sol2-conf sol2-ltmain" ;;
182 *-freebsd*) elt_patches+=" fbsd-conf fbsd-ltconf" ;; 184 *-freebsd*) elt_patches+=" fbsd-conf fbsd-ltconf" ;;
183 *-hpux*) elt_patches+=" hpux-conf deplibs hc-flag-ld hardcode hardcode-relink relink-prog no-lc" ;; 185 *-hpux*) elt_patches+=" hpux-conf deplibs hc-flag-ld hardcode hardcode-relink relink-prog no-lc" ;;
184 *-irix*) elt_patches+=" irix-ltmain" ;; 186 *-irix*) elt_patches+=" irix-ltmain" ;;
185 *-mint*) elt_patches+=" mint-conf" ;; 187 *-mint*) elt_patches+=" mint-conf" ;;
186 esac 188 esac
203 205
204 if [[ -f ${d}/.elibtoolized ]] ; then 206 if [[ -f ${d}/.elibtoolized ]] ; then
205 ${force} || continue 207 ${force} || continue
206 fi 208 fi
207 209
210 local outfunc="einfo"
211 [[ -f ${d}/.elibtoolized ]] && outfunc="ewarn"
208 einfo "Running elibtoolize in: ${d#${WORKDIR}/}/" 212 ${outfunc} "Running elibtoolize in: ${d#${WORKDIR}/}/"
209 if [[ -f ${d}/.elibtoolized ]] ; then 213 if [[ ${outfunc} == "ewarn" ]] ; then
210 ewarn " We've already been run in this tree; you should" 214 ewarn " We've already been run in this tree; you should"
211 ewarn " avoid this if possible (perhaps by filing a bug)" 215 ewarn " avoid this if possible (perhaps by filing a bug)"
212 fi 216 fi
213 217
214 for p in ${elt_patches} ; do 218 for p in ${elt_patches} ; do
325 # have at least one patch succeeded. 329 # have at least one patch succeeded.
326 ret=0 330 ret=0
327 fi 331 fi
328 done 332 done
329 ;; 333 ;;
330 mint-conf|gold-conf) 334 mint-conf|gold-conf|sol2-conf)
331 ret=1 335 ret=1
332 local subret=1 336 local subret=1
333 if [[ -e ${d}/configure ]]; then 337 if [[ -e ${d}/configure ]]; then
334 ELT_walk_patches "${d}/configure" "${p}" 338 ELT_walk_patches "${d}/configure" "${p}"
335 subret=$? 339 subret=$?
495 fi 499 fi
496 500
497 echo 1 501 echo 1
498 return 1 502 return 1
499} 503}
504
505fi

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.102

  ViewVC Help
Powered by ViewVC 1.1.20