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

Diff of /eclass/libtool.eclass

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

Revision 1.1 Revision 1.2
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.1 2002/06/05 22:53:11 azarah Exp $ 5# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.2 2002/06/05 23:11:49 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
9newdepend sys-devel/libtool 9newdepend sys-devel/libtool
10 10
14elibtoolize() { 14elibtoolize() {
15 15
16 local x="" 16 local x=""
17 local y="" 17 local y=""
18 local dopatch="no" 18 local dopatch="no"
19 local portage="no"
20
21 if [ "${1}" = "--portage" ]
22 then
23 portage="yes"
24 fi
19 25
20 for x in $(find_ltmain) 26 for x in $(find_ltmain)
21 do 27 do
22 cd ${x} 28 cd ${x}
23 einfo "Working directory: ${x}..." 29 einfo "Working directory: ${x}..."
24 dopatch="yes" 30 dopatch="yes"
31
32 if [ "${portage}" = "yes" ] || \
33 [ -n "$(grep -e "inst_prefix_dir" ltmain.sh)" ]
34 then
35 if eval portage_patch --test $>${T}/libtool.foo
36 then
37 einfo "Applying libtool-portage.patch..."
38 portage_patch $>${T}/libtool.foo
39 fi
40 continue
41 fi
25 42
26 for y in test_patch relink_patch portage_patch 43 for y in test_patch relink_patch portage_patch
27 do 44 do
28 if ! eval ${y} --test $>${T}/libtool.foo 45 if ! eval ${y} --test $>${T}/libtool.foo
29 then 46 then

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20