diff options
-rw-r--r-- | dev-games/goatee/files/goatee-0.3.0-ghc-7.10.patch | 14 | ||||
-rw-r--r-- | dev-games/goatee/goatee-0.3.0.ebuild | 9 |
2 files changed, 22 insertions, 1 deletions
diff --git a/dev-games/goatee/files/goatee-0.3.0-ghc-7.10.patch b/dev-games/goatee/files/goatee-0.3.0-ghc-7.10.patch new file mode 100644 index 000000000000..e2881220fec4 --- /dev/null +++ b/dev-games/goatee/files/goatee-0.3.0-ghc-7.10.patch @@ -0,0 +1,14 @@ +diff --git a/tests/Game/Goatee/CommonTest.hs b/tests/Game/Goatee/CommonTest.hs +index bf27662..33e4f24 100644 +--- a/tests/Game/Goatee/CommonTest.hs ++++ b/tests/Game/Goatee/CommonTest.hs +@@ -1 +1,2 @@ ++{-# LANGUAGE FlexibleContexts #-} + -- This file is part of Goatee. +diff --git a/tests/Game/Goatee/Lib/MonadTest.hs b/tests/Game/Goatee/Lib/MonadTest.hs +index c5b505f..bf10f4e 100644 +--- a/tests/Game/Goatee/Lib/MonadTest.hs ++++ b/tests/Game/Goatee/Lib/MonadTest.hs +@@ -1 +1,2 @@ ++{-# LANGUAGE FlexibleContexts #-} + -- This file is part of Goatee. diff --git a/dev-games/goatee/goatee-0.3.0.ebuild b/dev-games/goatee/goatee-0.3.0.ebuild index 00d0b9ca4d24..9d00fc1b4cb1 100644 --- a/dev-games/goatee/goatee-0.3.0.ebuild +++ b/dev-games/goatee/goatee-0.3.0.ebuild @@ -24,5 +24,12 @@ RDEPEND=">=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?] " DEPEND="${RDEPEND} >=dev-haskell/cabal-1.8 - test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.3 ) + test? ( >=dev-haskell/hunit-1.2 ) " + +src_prepare() { + epatch "${FILESDIR}"/${P}-ghc-7.10.patch + + cabal_chdeps \ + 'HUnit >= 1.2 && < 1.3' 'HUnit >= 1.2' +} |