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

dev-haskell/wxhaskell/files/wxhaskell-0.13.2.3-ghc-7.10.patch [new file with mode: 0644]
dev-haskell/wxhaskell/wxhaskell-0.13.2.3.ebuild
dev-haskell/wxhaskell/wxhaskell-0.90.1.0.ebuild

diff --git a/dev-haskell/wxhaskell/files/wxhaskell-0.13.2.3-ghc-7.10.patch b/dev-haskell/wxhaskell/files/wxhaskell-0.13.2.3-ghc-7.10.patch
new file mode 100644 (file)
index 0000000..0d13741
--- /dev/null
@@ -0,0 +1,8 @@
+diff --git a/src/Graphics/UI/WX/Window.hs b/src/Graphics/UI/WX/Window.hs
+index 0b04fa9..39c0505 100644
+--- a/src/Graphics/UI/WX/Window.hs
++++ b/src/Graphics/UI/WX/Window.hs
+@@ -1,2 +1,2 @@
+-{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
++{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, FlexibleContexts #-}
+ --------------------------------------------------------------------------------
index 56a388d21716c8153a298bcfaa0e6a8f8946cb74..491be5e431ec9c2f146430e31e224c40f2d6d10f 100644 (file)
@@ -31,6 +31,10 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}/${MY_P}"
 
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-0.13.2.3-ghc-7.10.patch
+}
+
 src_configure() {
        # ghc DCE bug: https://ghc.haskell.org/trac/ghc/ticket/9155
        [[ $(ghc-version) == 7.8.2 ]] && replace-hcflags -O[2-9] -O1
index 0ce4f06b3445196273187e17db098ec391a5c503..0b28b638bbdb10748507633c59d586548028f2d8 100644 (file)
@@ -31,6 +31,10 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}/${MY_P}"
 
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-0.13.2.3-ghc-7.10.patch
+}
+
 src_configure() {
        # ghc DCE bug: https://ghc.haskell.org/trac/ghc/ticket/9155
        [[ $(ghc-version) == 7.8.2 ]] && replace-hcflags -O[2-9] -O1