dev-haskell/filestore: allow ghc-8
authorSergei Trofimovich <slyfox@gentoo.org>
Tue, 10 May 2016 22:01:56 +0000 (23:01 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 11 May 2016 08:48:03 +0000 (09:48 +0100)
Package-Manager: portage-2.2.28

dev-haskell/filestore/files/filestore-0.6.1-ghc-8.patch [new file with mode: 0644]
dev-haskell/filestore/filestore-0.6.1.ebuild

diff --git a/dev-haskell/filestore/files/filestore-0.6.1-ghc-8.patch b/dev-haskell/filestore/files/filestore-0.6.1-ghc-8.patch
new file mode 100644 (file)
index 0000000..126a056
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/Data/FileStore/Types.hs b/Data/FileStore/Types.hs
+index e950c7a..e116761 100644
+--- a/Data/FileStore/Types.hs
++++ b/Data/FileStore/Types.hs
+@@ -152,3 +152,3 @@ data FileStore = FileStore {
+     -- | Save contents in the filestore.
+-  , save           :: Contents a
++  , save           :: forall a . Contents a
+                    => FilePath          -- Resource to save.
+@@ -160,3 +160,3 @@ data FileStore = FileStore {
+     -- | Retrieve the contents of the named resource.
+-  , retrieve       :: Contents a
++  , retrieve       :: forall a . Contents a
+                    => FilePath          -- Resource to retrieve.
index 944819418c1c9f3091650ea78936212c2552d582..61f23d46549abab8ffc9bc4dc576d4999e551443 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -40,6 +40,14 @@ DEPEND+="
        )
 "
 
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-ghc-8.patch
+
+       cabal_chdeps \
+               'time >= 1.1 && < 1.6' 'time >= 1.1' \
+               'process >= 1.0 && < 1.3' 'process >= 1.0'
+}
+
 src_configure() {
        haskell-cabal_src_configure \
                $(cabal_flag maxcount maxcount)