dev-haskell/wxdirect: tweak for ghc-7.10, bug #561254
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 16 Jan 2016 22:25:28 +0000 (22:25 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 16 Jan 2016 22:25:28 +0000 (22:25 +0000)
Package-Manager: portage-2.2.26

dev-haskell/wxdirect/files/wxdirect-0.13.1.3-ghc-7.10.patch [new file with mode: 0644]
dev-haskell/wxdirect/wxdirect-0.13.1.3.ebuild
dev-haskell/wxdirect/wxdirect-0.90.1.1.ebuild

diff --git a/dev-haskell/wxdirect/files/wxdirect-0.13.1.3-ghc-7.10.patch b/dev-haskell/wxdirect/files/wxdirect-0.13.1.3-ghc-7.10.patch
new file mode 100644 (file)
index 0000000..38889be
--- /dev/null
@@ -0,0 +1,25 @@
+diff --git a/src/HaskellNames.hs b/src/HaskellNames.hs
+index 6e1910e..bd61137 100644
+--- a/src/HaskellNames.hs
++++ b/src/HaskellNames.hs
+@@ -147,6 +147,7 @@ isBuiltin name
+ {-----------------------------------------------------------------------------------------
+  Haddock prologue
+ -----------------------------------------------------------------------------------------}
++getPrologue :: [Char] -> [Char] -> [Char] -> [String] -> IO [String]
+ getPrologue moduleName content contains inputFiles
+   = do time <- getCurrentTime
+        return (prologue time)
+diff --git a/wxdirect.cabal b/wxdirect.cabal
+index 83be4af..02b56af 100644
+--- a/wxdirect.cabal
++++ b/wxdirect.cabal
+@@ -61,7 +61,7 @@ executable wxdirect-2.8
+ 
+   build-depends:
+     parsec     >= 2.1.0 && < 4,
+-    time       >= 1.0   && < 1.5,
++    time       >= 1.0,
+     strict     >= 0.3   && < 1.0,
+     directory  >= 1.0   && < 2.0
+ 
index 9ef5ed2755f9f347dd7be954838bc916784a97e4..116f193fdc999490235d0b6f8f850911eefc7505 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -28,7 +28,10 @@ DEPEND="${RDEPEND}
        >=dev-haskell/cabal-1.8.0.2
 "
 
-PATCHES=("${FILESDIR}/${PN}-0.13.1.3-ghc-7.6.patch")
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.13.1.3-ghc-7.6.patch
+       "${FILESDIR}"/${PN}-0.13.1.3-ghc-7.10.patch
+)
 
 src_prepare() {
        base_src_prepare
index 5dfb9b3d514e6961427d229d540782de3af09395..74e259d0e503d8b35abc80c8b9c2f1e2797c9856 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -36,5 +36,7 @@ src_prepare() {
                -i "${S}/${PN}.cabal" \
                || die "Could not change ${PN}.cabal for wxdirect slot ${WX_GTK_VER}"
        cabal_chdeps \
-               'process    >= 1.1   && < 1.2' 'process    >= 1.1'
+               'process    >= 1.1   && < 1.2' 'process    >= 1.1' \
+               'time       >= 1.0   && < 1.5' 'time       >= 1.0' \
+               'filepath   <  1.4' 'filepath'
 }