summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-10-10 17:11:37 +0000
committerMamoru Komachi <usata@gentoo.org>2004-10-10 17:11:37 +0000
commit8940e90940e1561b09ad2b9d79fe99502975801c (patch)
tree8d87daac8f4f7d07bb1ee02971b8a583c053e9b6 /eclass/libtool.eclass
parentRevision bump with compiler fix. Nemerle now works with monodevelop. See bug ... (diff)
downloadhistorical-8940e90940e1561b09ad2b9d79fe99502975801c.tar.gz
historical-8940e90940e1561b09ad2b9d79fe99502975801c.tar.bz2
historical-8940e90940e1561b09ad2b9d79fe99502975801c.zip
Added darwintoolize. This closes bug #65272.
Diffstat (limited to 'eclass/libtool.eclass')
-rw-r--r--eclass/libtool.eclass35
1 files changed, 34 insertions, 1 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index 7cf56cf97e15..f44d798b53b4 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.35 2004/09/29 03:49:59 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.36 2004/10/10 17:11:37 usata Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -161,6 +161,11 @@ elibtoolize() {
esac
done
+ if use ppc-macos ; then
+ glibtoolize --copy --force
+ darwintoolize
+ fi
+
for x in ${my_dirlist}
do
local tmp="$(echo "${x}" | sed -e "s|${S}||")"
@@ -299,3 +304,31 @@ uclibctoolize() {
esac
done
}
+
+darwintoolize() {
+ local targets=""
+ local x
+
+ if [ -z "$@" ] ; then
+ targets="$(find ${S} -name ltmain.sh -o -name ltconfig)"
+ fi
+
+ einfo "Applying Darwin/libtool patches ..."
+ for x in ${targets} ; do
+ [ ! -s "${x}" ] && continue
+ case $(basename "${x}") in
+ ltmain.sh|ltconfig)
+ local ver="$(grep '^VERSION=' ${x})"
+ ver="${ver/VERSION=}"
+ if [ "${ver:0:3}" == "1.4" -o "${ver:0:3}" == "1.5" ];
+ then
+ ver="1.3" # 1.4, 1.5 and 1.3 are compat
+ fi
+
+ ebegin " Fixing \${S}${x/${S}}"
+ patch -p0 "${x}" "${ELT_PATCH_DIR}/darwin/$(basename "${x}")-${ver:0:3}.patch" > /dev/null
+ eend $? "PLEASE CHECK ${x}"
+ ;;
+ esac
+ done
+}