/[gentoo-x86]/eclass/ghc-package.eclass
Gentoo

Diff of /eclass/ghc-package.eclass

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

Revision 1.13 Revision 1.14
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.13 2005/07/06 20:23:20 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.14 2005/07/11 15:08:06 swegener Exp $
4# 4#
5# Author: Andres Loeh <kosmikus@gentoo.org> 5# Author: Andres Loeh <kosmikus@gentoo.org>
6# 6#
7# This eclass helps with the Glasgow Haskell Compiler's package 7# This eclass helps with the Glasgow Haskell Compiler's package
8# configuration utility. 8# configuration utility.
95} 95}
96 96
97# fixes the library and import directories path 97# fixes the library and import directories path
98# of the package configuration file 98# of the package configuration file
99ghc-fixlibpath() { 99ghc-fixlibpath() {
100 sed -i "s|$1|$(ghc-libdir)|g" ${S}/$(ghc-localpkgconf) 100 sed -i "s|$1|$(ghc-libdir)|g" ${S}/$(ghc-localpkgconf)
101 if [[ -n "$2" ]]; then 101 if [[ -n "$2" ]]; then
102 sed -i "s|$2|$(ghc-libdir)/imports|g" ${S}/$(ghc-localpkgconf) 102 sed -i "s|$2|$(ghc-libdir)/imports|g" ${S}/$(ghc-localpkgconf)
103 fi 103 fi
104} 104}
105 105

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

  ViewVC Help
Powered by ViewVC 1.1.20