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

Diff of /eclass/libtool.eclass

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

Revision 1.11 Revision 1.14
1#!/bin/bash 1#!/bin/bash
2# Copyright 1999-2002 Gentoo Technologies, Inc. 2# Copyright 1999-2002 Gentoo Technologies, Inc.
3# Distributed under the terms of the GNU General Public License, v2 or later 3# Distributed under the terms of the GNU General Public License, v2 or later
4# Author: Martin Schlemmer <azarah@gentoo.org> 4# Author: Martin Schlemmer <azarah@gentoo.org>
5# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.11 2002/07/03 19:11:27 azarah Exp $ 5# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.14 2002/10/20 10:43:04 azarah Exp $
6# This eclass patches ltmain.sh distributed with libtoolized packages with the 6# This eclass patches ltmain.sh distributed with libtoolized packages with the
7# relink and portage patch 7# relink and portage patch
8ECLASS=libtool 8ECLASS=libtool
9INHERITED="$INHERITED $ECLASS"
10
9newdepend sys-devel/libtool 11newdepend sys-devel/libtool
10 12
11DESCRIPTION="Based on the ${ECLASS} eclass" 13DESCRIPTION="Based on the ${ECLASS} eclass"
12 14
13ELIBTOOL_VERSION=1.8.1 15ELIBTOOL_VERSION=1.8.1
65 dotmp="yes" 67 dotmp="yes"
66 doportage="yes" 68 doportage="yes"
67 69
68 for y in test_patch relink_patch tmp_patch portage_patch 70 for y in test_patch relink_patch tmp_patch portage_patch
69 do 71 do
70 if ! eval ${y} --test $>${T}/libtool.foo 72 if ! eval ${y} --test $>${T}/elibtool.log
71 then 73 then
72 case ${y} in 74 case ${y} in
73 test_patch) 75 test_patch)
74 # non critical patch 76 # non critical patch
75 dotest="no" 77 dotest="no"
140 fi 142 fi
141 ;; 143 ;;
142 esac 144 esac
143 145
144 einfo "Applying libtool-${y/_patch/}.patch..." 146 einfo "Applying libtool-${y/_patch/}.patch..."
145 eval ${y} $>${T}/libtool.foo 147 eval ${y} $>${T}/elibtool.log
146 elif [ "${portage}" = "no" ] && [ "${reversedeps}" = "no" ] 148 elif [ "${portage}" = "no" ] && [ "${reversedeps}" = "no" ]
147 then 149 then
148 ewarn "Cannot apply any patch, running libtoolize..." 150 ewarn "Cannot apply any patch, running libtoolize..."
149 libtoolize --copy --force 151 libtoolize --copy --force
150 break 152 break
382 fi 384 fi
383 fi 385 fi
384 386
385 ENDPATCH 387 ENDPATCH
386 388
387 retval=$? 389 retval=$?
388 390
389 # This one dont apply clean to libtool-1.4.2a, so do it manually. 391 # This one dont apply clean to libtool-1.4.2a, so do it manually.
390 if [ "${1}" != "--test" ] && [ "${retval}" -eq 0 ] 392 if [ "${1}" != "--test" ] && [ "${retval}" -eq 0 ]
391 then 393 then
392 cp ltmain.sh ltmain.sh.orig 394 cp ltmain.sh ltmain.sh.orig
393 sed -e 's:cd `pwd`; $SHELL $0 --mode=relink $libtool_args:cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@:' \ 395 sed -e 's:cd `pwd`; $SHELL $0 --mode=relink $libtool_args:cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@:' \
394 ltmain.sh.orig > ltmain.sh 396 ltmain.sh.orig > ltmain.sh
395 rm -f ltmain.sh.orig 397 rm -f ltmain.sh.orig
396 fi 398 fi
397 399
398 return ${retval} 400 return ${retval}
399} 401}
400 402
401tmp_patch() { 403tmp_patch() {
402 404
403 local opts="" 405 local opts=""

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20