dev-haskell/wxhaskell: tweak for ghc-7.10, bug #561254

Package-Manager: portage-2.2.26
This commit is contained in:
Sergei Trofimovich
2016-01-16 22:27:30 +00:00
parent 0f09e4cef3
commit 867fdf18cc
3 changed files with 16 additions and 0 deletions

View File

@@ -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 #-}
--------------------------------------------------------------------------------

View 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

View 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