diff options
author | Duncan Coutts <dcoutts@gentoo.org> | 2007-12-13 05:46:34 +0000 |
---|---|---|
committer | Duncan Coutts <dcoutts@gentoo.org> | 2007-12-13 05:46:34 +0000 |
commit | dbbfde643e348ac020c4b2c15f93ea1c533c85cd (patch) | |
tree | e5b391fd1274fefaebf1296219fa4ecc2c490c8a /dev-haskell/missingh/missingh-0.18.6.ebuild | |
parent | Updates for upward compatability with cabal-1.2 and ghc-6.8 (diff) | |
download | gentoo-2-dbbfde643e348ac020c4b2c15f93ea1c533c85cd.tar.gz gentoo-2-dbbfde643e348ac020c4b2c15f93ea1c533c85cd.tar.bz2 gentoo-2-dbbfde643e348ac020c4b2c15f93ea1c533c85cd.zip |
Updates for upward compatability with cabal-1.2 and ghc-6.8
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-haskell/missingh/missingh-0.18.6.ebuild')
-rw-r--r-- | dev-haskell/missingh/missingh-0.18.6.ebuild | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/dev-haskell/missingh/missingh-0.18.6.ebuild b/dev-haskell/missingh/missingh-0.18.6.ebuild index c079cf383319..d5777a99576c 100644 --- a/dev-haskell/missingh/missingh-0.18.6.ebuild +++ b/dev-haskell/missingh/missingh-0.18.6.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/missingh/missingh-0.18.6.ebuild,v 1.1 2007/07/26 16:38:47 dcoutts Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/missingh/missingh-0.18.6.ebuild,v 1.2 2007/12/13 05:46:34 dcoutts Exp $ CABAL_FEATURES="lib profile haddock" -inherit base haskell-cabal +inherit haskell-cabal versionator DESCRIPTION="Collection of Haskell-related utilities" HOMEPAGE="http://software.complete.org/missingh" @@ -24,3 +24,19 @@ DEPEND=">=dev-lang/ghc-6.4.2 >=dev-haskell/hunit-1.1 >=dev-haskell/network-1.0 >=dev-haskell/quickcheck-1.0" + +src_unpack() { + unpack "${A}" + + cabal-mksetup + sed -i -e 's/GHC-Options: -O2/GHC-Options: -fglasgow-exts/' \ + -e 's/Build-Depends:/Build-Depends: unix,/' \ + "${S}/MissingH.cabal" + + if version_is_at_least "6.8" "$(ghc-version)"; then + sed -i -e '/Build-Depends:/a \ + directory, random, process, old-time, \ + containers, old-locale, array,' \ + "${S}/MissingH.cabal" + fi +} |