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

Diff of /eclass/libtool.eclass

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

Revision 1.35 Revision 1.36
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.35 2004/09/29 03:49:59 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.36 2004/10/10 17:11:37 usata 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
158 my_dirlist= 158 my_dirlist=
159 fi 159 fi
160 ;; 160 ;;
161 esac 161 esac
162 done 162 done
163
164 if use ppc-macos ; then
165 glibtoolize --copy --force
166 darwintoolize
167 fi
163 168
164 for x in ${my_dirlist} 169 for x in ${my_dirlist}
165 do 170 do
166 local tmp="$(echo "${x}" | sed -e "s|${S}||")" 171 local tmp="$(echo "${x}" | sed -e "s|${S}||")"
167 export ELT_APPLIED_PATCHES= 172 export ELT_APPLIED_PATCHES=
297 eend $? "PLEASE CHECK ${x}" 302 eend $? "PLEASE CHECK ${x}"
298 ;; 303 ;;
299 esac 304 esac
300 done 305 done
301} 306}
307
308darwintoolize() {
309 local targets=""
310 local x
311
312 if [ -z "$@" ] ; then
313 targets="$(find ${S} -name ltmain.sh -o -name ltconfig)"
314 fi
315
316 einfo "Applying Darwin/libtool patches ..."
317 for x in ${targets} ; do
318 [ ! -s "${x}" ] && continue
319 case $(basename "${x}") in
320 ltmain.sh|ltconfig)
321 local ver="$(grep '^VERSION=' ${x})"
322 ver="${ver/VERSION=}"
323 if [ "${ver:0:3}" == "1.4" -o "${ver:0:3}" == "1.5" ];
324 then
325 ver="1.3" # 1.4, 1.5 and 1.3 are compat
326 fi
327
328 ebegin " Fixing \${S}${x/${S}}"
329 patch -p0 "${x}" "${ELT_PATCH_DIR}/darwin/$(basename "${x}")-${ver:0:3}.patch" > /dev/null
330 eend $? "PLEASE CHECK ${x}"
331 ;;
332 esac
333 done
334}

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20