aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/Makefile2
-rw-r--r--x11-toolkits/hs-GLURaw/Makefile15
-rw-r--r--x11-toolkits/hs-GLURaw/distinfo2
-rw-r--r--x11-toolkits/hs-GLURaw/pkg-descr8
-rw-r--r--x11-toolkits/hs-GLUT/Makefile9
-rw-r--r--x11-toolkits/hs-GLUT/distinfo4
-rw-r--r--x11-toolkits/hs-GLUT/files/patch-Graphics__UI__GLUT__Types.hs16
-rw-r--r--x11-toolkits/hs-GLUT/pkg-descr6
-rw-r--r--x11-toolkits/hs-OpenGL/Makefile8
-rw-r--r--x11-toolkits/hs-OpenGL/distinfo4
-rw-r--r--x11-toolkits/hs-OpenGL/pkg-descr13
-rw-r--r--x11-toolkits/hs-OpenGLRaw/Makefile15
-rw-r--r--x11-toolkits/hs-OpenGLRaw/distinfo2
-rw-r--r--x11-toolkits/hs-OpenGLRaw/pkg-descr17
-rw-r--r--x11-toolkits/hs-gtk/Makefile5
-rw-r--r--x11-toolkits/hs-gtk2hs/Makefile4
-rw-r--r--x11-toolkits/hs-gtkglext/Makefile4
-rw-r--r--x11-toolkits/hs-gtksourceview2/Makefile4
-rw-r--r--x11-toolkits/hs-pango/Makefile5
-rw-r--r--x11-toolkits/hs-vte/Makefile4
-rw-r--r--x11-toolkits/hs-wx/Makefile2
-rw-r--r--x11-toolkits/hs-wxc/Makefile4
-rw-r--r--x11-toolkits/hs-wxcore/Makefile4
-rw-r--r--x11-toolkits/hs-wxcore/files/patch-src__haskell__Graphics__UI__WXCore__Events.hs10
-rw-r--r--x11-toolkits/hs-wxcore/files/patch-wxcore.cabal11
-rw-r--r--x11-toolkits/hs-wxdirect/Makefile4
-rw-r--r--x11-toolkits/hs-wxdirect/files/patch-src__CompileClassInfo.hs10
-rw-r--r--x11-toolkits/hs-wxdirect/files/patch-src__CompileClasses.hs10
-rw-r--r--x11-toolkits/hs-wxdirect/files/patch-wxdirect.cabal11
29 files changed, 144 insertions, 69 deletions
diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile
index 8a239cca4508..926820f8d2b9 100644
--- a/x11-toolkits/Makefile
+++ b/x11-toolkits/Makefile
@@ -76,8 +76,10 @@
SUBDIR += gtoolkit
SUBDIR += guile-gtk
SUBDIR += hippo-canvas
+ SUBDIR += hs-GLURaw
SUBDIR += hs-GLUT
SUBDIR += hs-OpenGL
+ SUBDIR += hs-OpenGLRaw
SUBDIR += hs-frantk
SUBDIR += hs-gtk
SUBDIR += hs-gtk2hs
diff --git a/x11-toolkits/hs-GLURaw/Makefile b/x11-toolkits/hs-GLURaw/Makefile
new file mode 100644
index 000000000000..47c642781bf7
--- /dev/null
+++ b/x11-toolkits/hs-GLURaw/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+PORTNAME= GLURaw
+PORTVERSION= 1.3.0.0
+CATEGORIES= x11-toolkits haskell
+
+MAINTAINER= haskell@FreeBSD.org
+COMMENT= Raw binding for the OpenGL graphics system
+
+LICENSE= BSD
+
+USE_CABAL= OpenGLRaw>=1.3
+
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
+.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-GLURaw/distinfo b/x11-toolkits/hs-GLURaw/distinfo
new file mode 100644
index 000000000000..9b072353f7e9
--- /dev/null
+++ b/x11-toolkits/hs-GLURaw/distinfo
@@ -0,0 +1,2 @@
+SHA256 (cabal/GLURaw-1.3.0.0.tar.gz) = e03905710043eb2e9878e5fc75f969c4f120321bc6a7709cde3a9890be3c08ea
+SIZE (cabal/GLURaw-1.3.0.0.tar.gz) = 7779
diff --git a/x11-toolkits/hs-GLURaw/pkg-descr b/x11-toolkits/hs-GLURaw/pkg-descr
new file mode 100644
index 000000000000..ab020ac46afa
--- /dev/null
+++ b/x11-toolkits/hs-GLURaw/pkg-descr
@@ -0,0 +1,8 @@
+GLURaw is a raw Haskell binding for the GLU 1.3 OpenGL utility library.
+It is basically a 1:1 mapping of GLU's C API, intended as a basis for a
+nicer interface. OpenGL is the industry's most widely used and
+supported 2D and 3D graphics application programming interface (API),
+incorporating a broad set of rendering, texture mapping, special
+effects, and other powerful visualization functions.
+
+WWW: http://www.haskell.org/haskellwiki/Opengl
diff --git a/x11-toolkits/hs-GLUT/Makefile b/x11-toolkits/hs-GLUT/Makefile
index 5916874a3780..5ad7c8bcc750 100644
--- a/x11-toolkits/hs-GLUT/Makefile
+++ b/x11-toolkits/hs-GLUT/Makefile
@@ -2,19 +2,16 @@
# $FreeBSD$
PORTNAME= GLUT
-PORTVERSION= 2.1.2.1
-PORTREVISION= 7
+PORTVERSION= 2.4.0.0
PORTEPOCH= 1
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
-COMMENT= A Haskell binding for the OpenGL Utility Toolkit
+COMMENT= Haskell binding for the OpenGL Utility Toolkit
LICENSE= BSD
-CABAL_SETUP= Setup.hs
-
-USE_CABAL= OpenGL>=2.2
+USE_CABAL= OpenGL>=2.8 OpenGLRaw>=1.3
USE_GL= glut
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
diff --git a/x11-toolkits/hs-GLUT/distinfo b/x11-toolkits/hs-GLUT/distinfo
index a1190aaca3ac..976142b55474 100644
--- a/x11-toolkits/hs-GLUT/distinfo
+++ b/x11-toolkits/hs-GLUT/distinfo
@@ -1,2 +1,2 @@
-SHA256 (cabal/GLUT-2.1.2.1.tar.gz) = 0230bfacbfb85c126f1fba45fcd8d02f20da9ee19180b5ada698224362d17264
-SIZE (cabal/GLUT-2.1.2.1.tar.gz) = 720222
+SHA256 (cabal/GLUT-2.4.0.0.tar.gz) = 100df2d724dfad26b0c8d47b17d4cef9dcbc12a75cce7a096046c27485b4cbbc
+SIZE (cabal/GLUT-2.4.0.0.tar.gz) = 643788
diff --git a/x11-toolkits/hs-GLUT/files/patch-Graphics__UI__GLUT__Types.hs b/x11-toolkits/hs-GLUT/files/patch-Graphics__UI__GLUT__Types.hs
deleted file mode 100644
index f25bc339120c..000000000000
--- a/x11-toolkits/hs-GLUT/files/patch-Graphics__UI__GLUT__Types.hs
+++ /dev/null
@@ -1,16 +0,0 @@
---- ./Graphics/UI/GLUT/Types.hs.orig 2009-05-02 18:14:39.000000000 +0200
-+++ ./Graphics/UI/GLUT/Types.hs 2012-05-17 00:04:47.000000000 +0200
-@@ -32,11 +32,10 @@
-
- -- | An opaque identifier for a top-level window or a subwindow.
-
--newtype Window = Window CInt
-- deriving ( Eq, Ord, Show )
-+type Window = CInt
-
- makeWindow :: CInt -> Window
--makeWindow = Window
-+makeWindow = id
-
- --------------------------------------------------------------------------------
-
diff --git a/x11-toolkits/hs-GLUT/pkg-descr b/x11-toolkits/hs-GLUT/pkg-descr
index 76b9b61e75b1..2cac6daac6db 100644
--- a/x11-toolkits/hs-GLUT/pkg-descr
+++ b/x11-toolkits/hs-GLUT/pkg-descr
@@ -1,4 +1,4 @@
-The GLUT package contains a Haskell binding for the OpenGL Utility Toolkit, a
-window system independent toolkit for writing OpenGL programs.
+A Haskell binding for the OpenGL Utility Toolkit, a window system
+independent toolkit for writing OpenGL programs.
-WWW: http://www.haskell.org/HOpenGL/
+WWW: http://www.haskell.org/haskellwiki/Opengl
diff --git a/x11-toolkits/hs-OpenGL/Makefile b/x11-toolkits/hs-OpenGL/Makefile
index 685b58e77dd7..e8b425180beb 100644
--- a/x11-toolkits/hs-OpenGL/Makefile
+++ b/x11-toolkits/hs-OpenGL/Makefile
@@ -2,18 +2,16 @@
# $FreeBSD$
PORTNAME= OpenGL
-PORTVERSION= 2.2.3.1
-PORTREVISION= 4
+PORTVERSION= 2.8.0.0
PORTEPOCH= 1
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
-COMMENT= A binding for the OpenGL graphics system
+COMMENT= Binding for the OpenGL graphics system
LICENSE= BSD
-CABAL_SETUP= Setup.hs
-USE_GL= gl glut
+USE_CABAL= GLURaw>=1.1.0.0 OpenGLRaw>=1.3.0.0
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-OpenGL/distinfo b/x11-toolkits/hs-OpenGL/distinfo
index 81626a748a80..f241d0a43850 100644
--- a/x11-toolkits/hs-OpenGL/distinfo
+++ b/x11-toolkits/hs-OpenGL/distinfo
@@ -1,2 +1,2 @@
-SHA256 (cabal/OpenGL-2.2.3.1.tar.gz) = 9f8425e36994f6602b66059490d00f5f7d7d59dbb97185c2054c5673688885ee
-SIZE (cabal/OpenGL-2.2.3.1.tar.gz) = 189728
+SHA256 (cabal/OpenGL-2.8.0.0.tar.gz) = ce753d8db75b5096e030422765193c4975779b42bfffa467408a40d8c43965f1
+SIZE (cabal/OpenGL-2.8.0.0.tar.gz) = 123107
diff --git a/x11-toolkits/hs-OpenGL/pkg-descr b/x11-toolkits/hs-OpenGL/pkg-descr
index 30a792f6dab2..6ae7c4bb7d35 100644
--- a/x11-toolkits/hs-OpenGL/pkg-descr
+++ b/x11-toolkits/hs-OpenGL/pkg-descr
@@ -1,8 +1,9 @@
A Haskell binding for the OpenGL graphics system (GL, version 2.1) and
-its accompanying utility library (GLU, version 1.3). OpenGL is the
-industry's most widely used and supported 2D and 3D graphics application
-programming interface (API), incorporating a broad set of rendering,
-texture mapping, special effects, and other powerful visualization
-functions.
+its accompanying utility library (GLU, version 1.3).
-WWW: http://www.haskell.org/HOpenGL/
+OpenGL is the industry's most widely used and supported 2D and 3D
+graphics application programming interface (API), incorporating a broad
+set of rendering, texture mapping, special effects, and other powerful
+visualization functions.
+
+WWW: http://www.haskell.org/haskellwiki/Opengl
diff --git a/x11-toolkits/hs-OpenGLRaw/Makefile b/x11-toolkits/hs-OpenGLRaw/Makefile
new file mode 100644
index 000000000000..186d31c653d1
--- /dev/null
+++ b/x11-toolkits/hs-OpenGLRaw/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+PORTNAME= OpenGLRaw
+PORTVERSION= 1.3.0.0
+CATEGORIES= x11-toolkits haskell
+
+MAINTAINER= haskell@FreeBSD.org
+COMMENT= Raw binding for the OpenGL graphics system
+
+LICENSE= BSD
+
+USE_GL= gl glut
+
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
+.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-OpenGLRaw/distinfo b/x11-toolkits/hs-OpenGLRaw/distinfo
new file mode 100644
index 000000000000..a170675a30fc
--- /dev/null
+++ b/x11-toolkits/hs-OpenGLRaw/distinfo
@@ -0,0 +1,2 @@
+SHA256 (cabal/OpenGLRaw-1.3.0.0.tar.gz) = 6228ca9ac967350fcb6abac25b8027660ad8599914a60ef0fd10919a6d2cd745
+SIZE (cabal/OpenGLRaw-1.3.0.0.tar.gz) = 75328
diff --git a/x11-toolkits/hs-OpenGLRaw/pkg-descr b/x11-toolkits/hs-OpenGLRaw/pkg-descr
new file mode 100644
index 000000000000..4c9981fb3664
--- /dev/null
+++ b/x11-toolkits/hs-OpenGLRaw/pkg-descr
@@ -0,0 +1,17 @@
+OpenGLRaw is a raw Haskell binding for the OpenGL 3.2 graphics system
+and lots of OpenGL extensions. It is basically a 1:1 mapping of
+OpenGL's C API, intended as a basis for a nicer interface. OpenGLRaw
+offers access to all necessary functions, tokens and types plus a
+general facility for loading extension entries. The module hierarchy
+closely mirrors the naming structure of the OpenGL extensions, making it
+easy to find the right module to import. All API entries are loaded
+dynamically, so no special C header files are needed for building this
+package. If an API entry is not found at runtime, a userError is
+thrown.
+
+OpenGL is the industry's most widely used and supported 2D and 3D
+graphics application programming interface (API), incorporating a broad
+set of rendering, texture mapping, special effects, and other powerful
+visualization functions.
+
+WWW: http://www.haskell.org/haskellwiki/Opengl
diff --git a/x11-toolkits/hs-gtk/Makefile b/x11-toolkits/hs-gtk/Makefile
index e7a0cc21a5e1..d0e5863cbd25 100644
--- a/x11-toolkits/hs-gtk/Makefile
+++ b/x11-toolkits/hs-gtk/Makefile
@@ -2,16 +2,13 @@
PORTNAME= gtk
PORTVERSION= 0.12.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= Binding to the Gtk+ graphical user interface library
LICENSE= LGPL21
-FILE_LICENSE= COPYING
-
-CABAL_SETUP= Setup.hs
USE_CABAL= cairo>=0.12.0 gio>=0.12.0 glib>=0.12.0 mtl pango>=0.12.0
USE_GNOME= gtk20
diff --git a/x11-toolkits/hs-gtk2hs/Makefile b/x11-toolkits/hs-gtk2hs/Makefile
index bb445bae6d7f..2c67b5bbb933 100644
--- a/x11-toolkits/hs-gtk2hs/Makefile
+++ b/x11-toolkits/hs-gtk2hs/Makefile
@@ -3,12 +3,12 @@
PORTNAME= gtk2hs
PORTVERSION= 0.12.4
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
-COMMENT= A GTK2 Binding for Haskell
+COMMENT= GTK2 Binding for Haskell
METAPORT= yes
USE_CABAL= glib gio cairo pango gtk
diff --git a/x11-toolkits/hs-gtkglext/Makefile b/x11-toolkits/hs-gtkglext/Makefile
index 68d68940b85c..03388ad2327c 100644
--- a/x11-toolkits/hs-gtkglext/Makefile
+++ b/x11-toolkits/hs-gtkglext/Makefile
@@ -2,7 +2,7 @@
PORTNAME= gtkglext
PORTVERSION= 0.12.1
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
@@ -11,9 +11,7 @@ COMMENT= Binding to the GTK+ OpenGL Extension
LIB_DEPENDS= gtkglext:${PORTSDIR}/x11-toolkits/gtkglext
LICENSE= LGPL21
-FILE_LICENSE= COPYING
-CABAL_SETUP= Setup.hs
USE_CABAL= glib>=0.12 gtk>=0.12 mtl pango>=0.12
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
diff --git a/x11-toolkits/hs-gtksourceview2/Makefile b/x11-toolkits/hs-gtksourceview2/Makefile
index 81fc71b513de..6b7758bedf66 100644
--- a/x11-toolkits/hs-gtksourceview2/Makefile
+++ b/x11-toolkits/hs-gtksourceview2/Makefile
@@ -2,16 +2,14 @@
PORTNAME= gtksourceview2
PORTVERSION= 0.12.3.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= Binding to the GtkSourceView library
LICENSE= LGPL21
-FILE_LICENSE= COPYING
-CABAL_SETUP= Setup.hs
USE_CABAL= glib>=0.12 gtk>=0.12 mtl
USE_GNOME= gtksourceview2
diff --git a/x11-toolkits/hs-pango/Makefile b/x11-toolkits/hs-pango/Makefile
index ca02c77519c3..9c377dc76779 100644
--- a/x11-toolkits/hs-pango/Makefile
+++ b/x11-toolkits/hs-pango/Makefile
@@ -2,16 +2,13 @@
PORTNAME= pango
PORTVERSION= 0.12.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= Binding to the Pango text rendering engine
LICENSE= LGPL21
-FILE_LICENSE= COPYING
-
-CABAL_SETUP= Setup.hs
USE_CABAL= cairo>=0.12.0 glib>=0.12.0 mtl
USE_GNOME= pango
diff --git a/x11-toolkits/hs-vte/Makefile b/x11-toolkits/hs-vte/Makefile
index 4f309de38991..3216d1157399 100644
--- a/x11-toolkits/hs-vte/Makefile
+++ b/x11-toolkits/hs-vte/Makefile
@@ -2,16 +2,14 @@
PORTNAME= vte
PORTVERSION= 0.12.1
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= Binding to the VTE library
LICENSE= LGPL21
-FILE_LICENSE= COPYING
-CABAL_SETUP= Setup.hs
USE_CABAL= glib>=0.12 gtk>=0.12 mtl pango>=0.12
USE_GNOME= vte
diff --git a/x11-toolkits/hs-wx/Makefile b/x11-toolkits/hs-wx/Makefile
index 02f9b70a0c68..713c52b14488 100644
--- a/x11-toolkits/hs-wx/Makefile
+++ b/x11-toolkits/hs-wx/Makefile
@@ -2,7 +2,7 @@
PORTNAME= wx
PORTVERSION= 0.90.0.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
diff --git a/x11-toolkits/hs-wxc/Makefile b/x11-toolkits/hs-wxc/Makefile
index 3cbecf8259be..d21fceb62e56 100644
--- a/x11-toolkits/hs-wxc/Makefile
+++ b/x11-toolkits/hs-wxc/Makefile
@@ -2,14 +2,12 @@
PORTNAME= wxc
PORTVERSION= 0.90.0.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= wxHaskell C++ wrapper
-CABAL_SETUP= Setup.hs
-
USE_CABAL= wxdirect>=0.90
USE_WX= 2.9
diff --git a/x11-toolkits/hs-wxcore/Makefile b/x11-toolkits/hs-wxcore/Makefile
index 5d146c9555a2..a06e04166ef4 100644
--- a/x11-toolkits/hs-wxcore/Makefile
+++ b/x11-toolkits/hs-wxcore/Makefile
@@ -2,14 +2,12 @@
PORTNAME= wxcore
PORTVERSION= 0.90.0.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= wxHaskell core
-CABAL_SETUP= Setup.hs
-
USE_CABAL= parsec stm wxc>=0.90.0.4 wxdirect>=0.90
USE_WX= 2.9
diff --git a/x11-toolkits/hs-wxcore/files/patch-src__haskell__Graphics__UI__WXCore__Events.hs b/x11-toolkits/hs-wxcore/files/patch-src__haskell__Graphics__UI__WXCore__Events.hs
new file mode 100644
index 000000000000..7bbb713f4812
--- /dev/null
+++ b/x11-toolkits/hs-wxcore/files/patch-src__haskell__Graphics__UI__WXCore__Events.hs
@@ -0,0 +1,10 @@
+--- ./src/haskell/Graphics/UI/WXCore/Events.hs.orig 2012-07-04 12:29:32.000000000 +0200
++++ ./src/haskell/Graphics/UI/WXCore/Events.hs 2013-05-04 03:24:48.030431193 +0200
+@@ -239,6 +239,7 @@
+
+ import Data.List( intersperse, findIndex )
+ import System.Environment( getProgName, getArgs )
++import Foreign.C.Types ( CInt(..) )
+ import Foreign.StablePtr
+ import Foreign.Ptr
+ import Foreign.C.String
diff --git a/x11-toolkits/hs-wxcore/files/patch-wxcore.cabal b/x11-toolkits/hs-wxcore/files/patch-wxcore.cabal
new file mode 100644
index 000000000000..f3eec8462d69
--- /dev/null
+++ b/x11-toolkits/hs-wxcore/files/patch-wxcore.cabal
@@ -0,0 +1,11 @@
+--- ./wxcore.cabal.orig 2012-07-04 12:29:33.000000000 +0200
++++ ./wxcore.cabal 2013-04-30 23:37:11.000000000 +0200
+@@ -80,7 +80,7 @@
+ build-depends:
+ array >= 0.2 && < 0.5,
+ base >= 4 && < 5,
+- containers >= 0.2 && < 0.5
++ containers >= 0.2 && < 0.6
+ else
+ build-depends:
+ array >= 0.1 && < 0.3,
diff --git a/x11-toolkits/hs-wxdirect/Makefile b/x11-toolkits/hs-wxdirect/Makefile
index fc94df2cd0f3..57191908ddc3 100644
--- a/x11-toolkits/hs-wxdirect/Makefile
+++ b/x11-toolkits/hs-wxdirect/Makefile
@@ -2,7 +2,7 @@
PORTNAME= wxdirect
PORTVERSION= 0.90.0.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11-toolkits haskell
MAINTAINER= haskell@FreeBSD.org
@@ -10,8 +10,6 @@ COMMENT= Helper tool for building wxHaskell
LICENSE= BSD
-CABAL_SETUP= Setup.hs
-
USE_CABAL= parsec>=2.1.0 strict
EXECUTABLE= wxdirect
diff --git a/x11-toolkits/hs-wxdirect/files/patch-src__CompileClassInfo.hs b/x11-toolkits/hs-wxdirect/files/patch-src__CompileClassInfo.hs
new file mode 100644
index 000000000000..c286a3cb265b
--- /dev/null
+++ b/x11-toolkits/hs-wxdirect/files/patch-src__CompileClassInfo.hs
@@ -0,0 +1,10 @@
+--- ./src/CompileClassInfo.hs.orig 2012-04-18 17:05:10.000000000 +0200
++++ ./src/CompileClassInfo.hs 2013-05-04 03:12:14.541798377 +0200
+@@ -45,6 +45,7 @@
+ , [ " ) where"
+ , ""
+ , "import System.IO.Unsafe( unsafePerformIO )"
++ , "import Foreign.C.Types ( CInt(..), CWchar(..), CDouble(..) )"
+ , "import " ++ moduleRoot ++ moduleClassTypesName
+ , "import " ++ moduleRoot ++ "WxcTypes"
+ , "import " ++ moduleRoot ++ moduleClassesName
diff --git a/x11-toolkits/hs-wxdirect/files/patch-src__CompileClasses.hs b/x11-toolkits/hs-wxdirect/files/patch-src__CompileClasses.hs
new file mode 100644
index 000000000000..5e78697528cd
--- /dev/null
+++ b/x11-toolkits/hs-wxdirect/files/patch-src__CompileClasses.hs
@@ -0,0 +1,10 @@
+--- ./src/CompileClasses.hs.orig 2012-04-18 17:05:10.000000000 +0200
++++ ./src/CompileClasses.hs 2013-05-04 03:12:06.682675621 +0200
+@@ -101,6 +101,7 @@
+ , "import qualified Data.ByteString as B (ByteString, useAsCStringLen)"
+ , "import qualified Data.ByteString.Lazy as LB (ByteString, length, unpack)"
+ , "import System.IO.Unsafe( unsafePerformIO )"
++ , "import Foreign.C.Types ( CInt(..), CWchar(..), CDouble(..) )"
+ , "import " ++ moduleRoot ++ "WxcTypes"
+ , "import " ++ moduleRoot ++ moduleClassTypesName
+ , ""
diff --git a/x11-toolkits/hs-wxdirect/files/patch-wxdirect.cabal b/x11-toolkits/hs-wxdirect/files/patch-wxdirect.cabal
new file mode 100644
index 000000000000..e8e10ac59a1b
--- /dev/null
+++ b/x11-toolkits/hs-wxdirect/files/patch-wxdirect.cabal
@@ -0,0 +1,11 @@
+--- ./wxdirect.cabal.orig 2012-04-18 17:05:11.000000000 +0200
++++ ./wxdirect.cabal 2013-04-30 22:35:06.000000000 +0200
+@@ -66,7 +66,7 @@
+ if flag(splitBase)
+ build-depends:
+ base >= 4 && < 5,
+- containers >= 0.2 && < 0.5
++ containers >= 0.2 && < 0.6
+ else
+ build-depends:
+ base >= 3 && < 4,