/[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.24 Revision 1.25
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.24 2007/07/25 18:40:29 dcoutts Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.25 2007/12/13 04:42:48 dcoutts Exp $
4# 4#
5# Author: Andres Loeh <kosmikus@gentoo.org> 5# Author: Andres Loeh <kosmikus@gentoo.org>
6# Maintained by: Haskell herd <haskell@gentoo.org> 6# Maintained by: Haskell herd <haskell@gentoo.org>
7# 7#
8# This eclass helps with the Glasgow Haskell Compiler's package 8# This eclass helps with the Glasgow Haskell Compiler's package
265 if ghc-cabal; then 265 if ghc-cabal; then
266 echo $($(ghc-getghcpkg) list -f "${i}") \ 266 echo $($(ghc-getghcpkg) list -f "${i}") \
267 | sed \ 267 | sed \
268 -e "s|^.*${i}:\([^:]*\).*$|\1|" \ 268 -e "s|^.*${i}:\([^:]*\).*$|\1|" \
269 -e "s|/.*$||" \ 269 -e "s|/.*$||" \
270 -e "s|,| |g" -e "s|[()]||g" 270 -e "s|,| |g" -e "s|[(){}]||g"
271 else 271 else
272 echo $($(ghc-getghcpkgbin) -l -f "${i}") \ 272 echo $($(ghc-getghcpkgbin) -l -f "${i}") \
273 | cut -f2 -d':' \ 273 | cut -f2 -d':' \
274 | sed 's:,: :g' 274 | sed 's:,: :g'
275 fi 275 fi

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20