/[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.8 Revision 1.9
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.8 2005/04/07 22:00:20 kosmikus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.9 2005/04/08 01:13:39 araujo 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.
96 [ -n "$1" ] && echo ',' >> ${localpkgconf} 96 [ -n "$1" ] && echo ',' >> ${localpkgconf}
97 done 97 done
98 echo ']' >> ${localpkgconf} 98 echo ']' >> ${localpkgconf}
99} 99}
100 100
101# fixes the library and import directories path
102# of the package configuration file
103ghc-fixlibpath() {
104 sed -i "s|$1|$(ghc-libdir)|" ${S}/$(ghc-localpkgconf)
105 if [[ -n "$2" ]]; then
106 sed -i "s|$2|$(ghc-libdir)/imports|" ${S}/$(ghc-localpkgconf)
107 fi
108}
109
101# moves the local (package-specific) package configuration 110# moves the local (package-specific) package configuration
102# file to its final destination 111# file to its final destination
103ghc-install-pkg() { 112ghc-install-pkg() {
104 mkdir -p ${D}/$(ghc-confdir) 113 mkdir -p ${D}/$(ghc-confdir)
105 cat ${S}/$(ghc-localpkgconf) | sed "s:${D}::" \ 114 cat ${S}/$(ghc-localpkgconf) | sed "s:${D}::" \

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20