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

Diff of /eclass/libtool.eclass

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

Revision 1.51 Revision 1.52
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.51 2005/09/02 09:35:17 azarah Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.52 2005/09/02 10:02:50 azarah 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
174 fi 174 fi
175 175
176 for x in ${my_dirlist} ; do 176 for x in ${my_dirlist} ; do
177 local tmp=$(echo "${x}" | sed -e "s|${WORKDIR}||") 177 local tmp=$(echo "${x}" | sed -e "s|${WORKDIR}||")
178 export ELT_APPLIED_PATCHES= 178 export ELT_APPLIED_PATCHES=
179
180 [[ -f ${x}/.elibtoolized ]] && continue
179 181
180 cd ${x} 182 cd ${x}
181 einfo "Running elibtoolize in: $(echo "/${tmp}" | sed -e 's|//|/|g; s|^/||')" 183 einfo "Running elibtoolize in: $(echo "/${tmp}" | sed -e 's|//|/|g; s|^/||')"
182 184
183 for y in ${elt_patches} ; do 185 for y in ${elt_patches} ; do
244 ELT_APPLIED_PATCHES="portage" 246 ELT_APPLIED_PATCHES="portage"
245 fi 247 fi
246 ;; 248 ;;
247 esac 249 esac
248 fi 250 fi
251 done
249 252
250 if [[ -z ${ELT_APPLIED_PATCHES} ]] ; then 253 if [[ -z ${ELT_APPLIED_PATCHES} ]] ; then
251 if [[ ${do_portage} == "no" && \ 254 if [[ ${do_portage} == "no" && \
252 ${do_reversedeps} == "no" && \ 255 ${do_reversedeps} == "no" && \
253 ${do_only_patches} == "no" && \ 256 ${do_only_patches} == "no" && \
254 ${deptoremove} == "" ]] 257 ${deptoremove} == "" ]]
255 then 258 then
256 ewarn "Cannot apply any patches, please file a bug about this" 259 ewarn "Cannot apply any patches, please file a bug about this"
257 break 260 break
258 261
259 # Sometimes ltmain.sh is in a subdirectory ... 262 # Sometimes ltmain.sh is in a subdirectory ...
260 if [[ ! -f ${x}/configure.in && ! -f ${x}/configure.ac ]] ; then 263 if [[ ! -f ${x}/configure.in && ! -f ${x}/configure.ac ]] ; then
261 if [[ -f ${x}/../configure.in || -f ${x}/../configure.ac ]] ; then 264 if [[ -f ${x}/../configure.in || -f ${x}/../configure.ac ]] ; then
262 cd "${x}"/../ 265 cd "${x}"/../
263 fi
264 fi 266 fi
265
266 if type -p libtoolize &> /dev/null ; then
267 ewarn "Cannot apply any patches, running libtoolize..."
268 libtoolize --copy --force
269 fi
270 cd "${x}"
271 break
272 fi 267 fi
268
269 if type -p libtoolize &> /dev/null ; then
270 ewarn "Cannot apply any patches, running libtoolize..."
271 libtoolize --copy --force
272 fi
273 cd "${x}"
274 break
273 fi 275 fi
274 done 276 fi
277
278 [[ -f ${x}/libtool ]] && rm -f "${x}/libtool"
279
280 touch "${x}/.elibtoolized"
275 done 281 done
276
277 if [[ -f libtool ]] ; then
278 rm -f libtool
279 fi
280 282
281 cd "${start_dir}" 283 cd "${start_dir}"
282 284
283 uclibctoolize 285 uclibctoolize
284} 286}

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

  ViewVC Help
Powered by ViewVC 1.1.20