/[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.31 Revision 1.32
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.31 2011/08/22 04:46:31 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.32 2011/11/24 00:04:13 vapier Exp $
4 4
5# @ECLASS: ghc-package.eclass 5# @ECLASS: ghc-package.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# "Gentoo's Haskell Language team" <haskell@gentoo.org> 7# "Gentoo's Haskell Language team" <haskell@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
176 local outfile 176 local outfile
177 outfile="$(dirname $1)/$(basename $1 | sed 's:^lib\?\(.*\)\.a$:\1.o:')" 177 outfile="$(dirname $1)/$(basename $1 | sed 's:^lib\?\(.*\)\.a$:\1.o:')"
178 ld --relocatable --discard-all --output="${outfile}" --whole-archive "$1" 178 ld --relocatable --discard-all --output="${outfile}" --whole-archive "$1"
179} 179}
180 180
181# @FUNCTION: ghc-makeghcilib 181# @FUNCTION: ghc-package-exists
182# @DESCRIPTION: 182# @DESCRIPTION:
183# tests if a ghc package exists 183# tests if a ghc package exists
184ghc-package-exists() { 184ghc-package-exists() {
185 local describe_flag 185 local describe_flag
186 if version_is_at_least "6.4" "$(ghc-version)"; then 186 if version_is_at_least "6.4" "$(ghc-version)"; then

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.20