/[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.27 Revision 1.28
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.27 2009/03/23 20:06:19 kolmodin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.28 2010/06/24 13:50:10 kolmodin 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
293 293
294# show the packages in a package configuration file 294# show the packages in a package configuration file
295ghc-listpkg() { 295ghc-listpkg() {
296 local ghcpkgcall 296 local ghcpkgcall
297 local i 297 local i
298 local extra_flags
299 if version_is_at_least '6.12.3' "$(ghc-version)"; then
300 extra_flags="${extra_flags} -v0"
301 fi
298 for i in $*; do 302 for i in $*; do
299 if ghc-cabal; then 303 if ghc-cabal; then
300 echo $($(ghc-getghcpkg) list -f "${i}") \ 304 echo $($(ghc-getghcpkg) list ${extra_flags} -f "${i}") \
301 | sed \ 305 | sed \
302 -e "s|^.*${i}:\([^:]*\).*$|\1|" \ 306 -e "s|^.*${i}:\([^:]*\).*$|\1|" \
303 -e "s|/.*$||" \ 307 -e "s|/.*$||" \
304 -e "s|,| |g" -e "s|[(){}]||g" 308 -e "s|,| |g" -e "s|[(){}]||g"
305 else 309 else

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20