/[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.10 Revision 1.12
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.10 2005/05/08 14:49:25 dcoutts Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.12 2005/07/06 20:20:03 agriffis 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.
9 9
10inherit versionator 10inherit versionator
11 11
12ECLASS="ghc-package"
13INHERITED="${INHERITED} ${ECLASS}" 12INHERITED="${INHERITED} ${ECLASS}"
14 13
15# promote /opt/ghc/bin to a better position in the search path 14# promote /opt/ghc/bin to a better position in the search path
16PATH="/usr/bin:/opt/ghc/bin:${PATH}" 15PATH="/usr/bin:/opt/ghc/bin:${PATH}"
17 16
90 local localpkgconf 89 local localpkgconf
91 localpkgconf="${S}/$(ghc-localpkgconf)" 90 localpkgconf="${S}/$(ghc-localpkgconf)"
92 echo '[]' > ${localpkgconf} 91 echo '[]' > ${localpkgconf}
93 for pkg in $*; do 92 for pkg in $*; do
94 $(ghc-getghcpkgbin) -f ${localpkgconf} -u --force \ 93 $(ghc-getghcpkgbin) -f ${localpkgconf} -u --force \
95 < ${pkg} 94 < ${pkg} || die "failed to register ${pkg}"
96 done 95 done
97} 96}
98 97
99# fixes the library and import directories path 98# fixes the library and import directories path
100# of the package configuration file 99# of the package configuration file

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20