summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorLuis Francisco Araujo <araujo@gentoo.org>2005-04-08 01:13:39 +0000
committerLuis Francisco Araujo <araujo@gentoo.org>2005-04-08 01:13:39 +0000
commitbb0aafd88fa09310b86567b93bda08818384b229 (patch)
treeddda5c2ffb03f6336abd5e7e32d07557324da4e1 /eclass
parentNew version + minor fix (diff)
downloadhistorical-bb0aafd88fa09310b86567b93bda08818384b229.tar.gz
historical-bb0aafd88fa09310b86567b93bda08818384b229.tar.bz2
historical-bb0aafd88fa09310b86567b93bda08818384b229.zip
Added new ghc-fixlibpath eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ghc-package.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass
index 3820d8920fbf..f17344ac65ad 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.8 2005/04/07 22:00:20 kosmikus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.9 2005/04/08 01:13:39 araujo Exp $
#
# Author: Andres Loeh <kosmikus@gentoo.org>
#
@@ -98,6 +98,15 @@ ghc-setup-pkg() {
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)
+ if [[ -n "$2" ]]; then
+ sed -i "s|$2|$(ghc-libdir)/imports|" ${S}/$(ghc-localpkgconf)
+ fi
+}
+
# moves the local (package-specific) package configuration
# file to its final destination
ghc-install-pkg() {