summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Coutts <dcoutts@gentoo.org>2005-05-08 14:49:25 +0000
committerDuncan Coutts <dcoutts@gentoo.org>2005-05-08 14:49:25 +0000
commita741e1ee7e10f28950ff886e665a979dd290457d (patch)
treefb66e2d782088c31977e0320658b59f64c0c4908 /eclass/ghc-package.eclass
parentusing toolchain-funcs. (diff)
downloadhistorical-a741e1ee7e10f28950ff886e665a979dd290457d.tar.gz
historical-a741e1ee7e10f28950ff886e665a979dd290457d.tar.bz2
historical-a741e1ee7e10f28950ff886e665a979dd290457d.zip
ghc-6.4 compatibility changes
Diffstat (limited to 'eclass/ghc-package.eclass')
-rw-r--r--eclass/ghc-package.eclass18
1 files changed, 8 insertions, 10 deletions
diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass
index f17344ac65ad..1b6b0543ae17 100644
--- a/eclass/ghc-package.eclass
+++ b/eclass/ghc-package.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/ghc-package.eclass,v 1.9 2005/04/08 01:13:39 araujo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.10 2005/05/08 14:49:25 dcoutts Exp $
#
# Author: Andres Loeh <kosmikus@gentoo.org>
#
@@ -89,21 +89,19 @@ ghc-makeghcilib() {
ghc-setup-pkg() {
local localpkgconf
localpkgconf="${S}/$(ghc-localpkgconf)"
- echo '[' > ${localpkgconf}
- while [ -n "$1" ]; do
- cat "$1" >> ${localpkgconf}
- shift
- [ -n "$1" ] && echo ',' >> ${localpkgconf}
+ echo '[]' > ${localpkgconf}
+ for pkg in $*; do
+ $(ghc-getghcpkgbin) -f ${localpkgconf} -u --force \
+ < ${pkg}
done
- echo ']' >> ${localpkgconf}
}
# fixes the library and import directories path
# of the package configuration file
ghc-fixlibpath() {
- sed -i "s|$1|$(ghc-libdir)|" ${S}/$(ghc-localpkgconf)
+ sed -i "s|$1|$(ghc-libdir)|g" ${S}/$(ghc-localpkgconf)
if [[ -n "$2" ]]; then
- sed -i "s|$2|$(ghc-libdir)/imports|" ${S}/$(ghc-localpkgconf)
+ sed -i "s|$2|$(ghc-libdir)/imports|g" ${S}/$(ghc-localpkgconf)
fi
}
@@ -111,7 +109,7 @@ ghc-fixlibpath() {
# file to its final destination
ghc-install-pkg() {
mkdir -p ${D}/$(ghc-confdir)
- cat ${S}/$(ghc-localpkgconf) | sed "s:${D}::" \
+ cat ${S}/$(ghc-localpkgconf) | sed "s|${D}||g" \
> ${D}/$(ghc-confdir)/$(ghc-localpkgconf)
}