From 9af2c1faee50f20cf89a62ab03a8253d00f5ce14 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 10 May 2016 23:01:56 +0100 Subject: dev-haskell/filestore: allow ghc-8 Package-Manager: portage-2.2.28 --- dev-haskell/filestore/files/filestore-0.6.1-ghc-8.patch | 14 ++++++++++++++ dev-haskell/filestore/filestore-0.6.1.ebuild | 10 +++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 dev-haskell/filestore/files/filestore-0.6.1-ghc-8.patch (limited to 'dev-haskell/filestore') 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 index 000000000000..126a0564b4db --- /dev/null +++ b/dev-haskell/filestore/files/filestore-0.6.1-ghc-8.patch @@ -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. diff --git a/dev-haskell/filestore/filestore-0.6.1.ebuild b/dev-haskell/filestore/filestore-0.6.1.ebuild index 944819418c1c..61f23d46549a 100644 --- a/dev-haskell/filestore/filestore-0.6.1.ebuild +++ b/dev-haskell/filestore/filestore-0.6.1.ebuild @@ -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) -- cgit v1.2.3-65-gdbad