+++ /dev/null
---- wxdirect-0.90.1.1-orig/src/Classes.hs 2014-03-23 01:08:59.000000000 +1100
-+++ wxdirect-0.90.1.1/src/Classes.hs 2014-03-23 15:43:57.402011540 +1100
-@@ -1,3 +1,4 @@
-+{-# LANGUAGE CPP #-}
- -----------------------------------------------------------------------------------------
- {-| Module : Classes
- Copyright : (c) Daan Leijen 2003
-@@ -24,6 +25,9 @@
-
- import qualified Data.Set as Set
- import qualified Data.Map as Map
-+#if !MIN_VERSION_base(4,6,0)
-+import Prelude hiding ( catch )
-+#endif
- import Text.Parsec.Prim hiding ( try )
- import HaskellNames( haskellTypeName, isBuiltin )
- import Types
---- wxdirect-0.90.1.1-orig/src/CompileClasses.hs 2014-03-23 01:08:59.000000000 +1100
-+++ wxdirect-0.90.1.1/src/CompileClasses.hs 2014-03-23 15:42:14.123894206 +1100
-@@ -96,7 +96,7 @@
- (exportsStatic,exportsClassClasses,classCount) = exportDefs decls exportsClass []
-
- methodCount = length decls
-- ghcoptions = [ "{-# LANGUAGE ForeignFunctionInterface #-}"]
-+ ghcoptions = [ "{-# LANGUAGE CPP, ForeignFunctionInterface #-}"]
-
- export = concat [ ["module " ++ moduleRoot ++ moduleName
- , " ( -- * Global" ]
-@@ -111,6 +111,9 @@
- , "import Foreign.C.Types(CInt(..), CWchar(..), CChar(..), CDouble(..))"
- , "import " ++ moduleRoot ++ "WxcTypes"
- , "import " ++ moduleRoot ++ moduleClassTypesName
-+ , "#if (__GLASGOW_HASKELL__>=705)"
-+ , "import Foreign.C.Types(CDouble(..), CInt(..), CWchar(..))"
-+ , "#endif"
- , ""
- ]
- ]
+++ /dev/null
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-# ebuild generated by hackport 0.3.6.9999
-
-WX_GTK_VER="2.9"
-
-CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
-inherit base haskell-cabal
-
-DESCRIPTION="helper tool for building wxHaskell"
-HOMEPAGE="http://haskell.org/haskellwiki/WxHaskell"
-SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="${WX_GTK_VER}/${PV}"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-IUSE=""
-
-RDEPEND=">=dev-haskell/parsec-2.1.0:=[profile?] <dev-haskell/parsec-4:=[profile?]
- dev-haskell/strict:=[profile?]
- >=dev-lang/ghc-7.4.1:=
-"
-DEPEND="${RDEPEND}
- >=dev-haskell/cabal-1.2
-"
-
-PATCHES=("${FILESDIR}/${PN}-0.90.1.1-ghc-7.5.patch")
-
-src_prepare() {
- base_src_prepare
- sed -e "s@executable wxdirect@executable wxdirect-${WX_GTK_VER}@" \
- -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' \
- 'time >= 1.0 && < 1.5' 'time >= 1.0' \
- 'filepath < 1.4' 'filepath'
-}