dev-games/goatee: tweak tests for ghc-7.10
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 15 May 2016 09:07:15 +0000 (10:07 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 15 May 2016 09:26:17 +0000 (10:26 +0100)
Package-Manager: portage-2.2.28

dev-games/goatee/files/goatee-0.3.0-ghc-7.10.patch [new file with mode: 0644]
dev-games/goatee/goatee-0.3.0.ebuild

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 (file)
index 0000000..e288122
--- /dev/null
@@ -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.
index 00d0b9ca4d24ca39f4c9469898e94ed63d84c7e8..9d00fc1b4cb14eb3f04599d6bde480a8fcee703b 100644 (file)
@@ -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'
+}