aboutsummaryrefslogtreecommitdiffstats
path: root/x11/hs-X11
diff options
context:
space:
mode:
Diffstat (limited to 'x11/hs-X11')
-rw-r--r--x11/hs-X11/Makefile58
-rw-r--r--x11/hs-X11/distinfo6
-rw-r--r--x11/hs-X11/pkg-descr7
-rw-r--r--x11/hs-X11/pkg-plist27
4 files changed, 98 insertions, 0 deletions
diff --git a/x11/hs-X11/Makefile b/x11/hs-X11/Makefile
new file mode 100644
index 000000000000..80eb8382b390
--- /dev/null
+++ b/x11/hs-X11/Makefile
@@ -0,0 +1,58 @@
+# New ports collection makefile for: hs-x11-ghc
+# Date created: 2007-09-03
+# Whom: Volker Stolz <vs@FreeBSD.org>
+#
+# $FreeBSD$
+
+PORTNAME= x11
+PORTVERSION= 1.2.1
+CATEGORIES= x11 haskell
+MASTER_SITES= http://www.haskell.org/ghc/dist/${GHC_VERSION}/
+PKGNAMEPREFIX= hs-
+PKGNAMESUFFIX= -ghc
+DISTNAME= ghc-${GHC_VERSION}-src-extralibs
+
+PATCH_SITES= http://lambda.foldr.org/~vs/FreeBSD/ghc-cabal-${GHC_VERSION}/
+PATCHFILES= patch-cabal-${GHC_VERSION}-Setup.hs
+
+MAINTAINER= haskell@FreeBSD.org
+COMMENT= X11 bindings for Haskell programs
+
+USE_BZIP2= yes
+USE_XLIB= yes
+
+# include the version verbatim. This will require a revision bump
+# on updates, but the correct quoting of `ghc --numeric-version` in the various
+# places is a real nightmare.
+GHC_VERSION= 6.6.1
+PLIST_SUB+= GHC_VERSION=${GHC_VERSION} \
+ PORTVERSION=${PORTVERSION} \
+ PORTNAME=${PORTNAME} \
+ SUBDIR=lib/ghc-${GHC_VERSION}/cabal
+
+.include <bsd.port.pre.mk>
+
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+
+# 'owned' by lang/ghc:
+CABALDIR= ${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
+CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs
+SUBDIR= ${PORTNAME}${PKGNAMESUFFIX}
+
+WRKSRC= ${WRKDIR}/ghc-${GHC_VERSION}/libraries/X11
+
+do-configure:
+ cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX} --libdir=${CABALDIR} \
+ --libsubdir='' --datasubdir=''
+
+do-build:
+ cd ${WRKSRC} && ${CABALCMD} build \
+ && ${CABALCMD} --gen-script register
+
+do-install:
+ cd ${WRKSRC} && ${CABALCMD} install \
+ && ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${CABALDIR}/${PORTNAME}-register.sh
+
+.include <bsd.port.post.mk>
diff --git a/x11/hs-X11/distinfo b/x11/hs-X11/distinfo
new file mode 100644
index 000000000000..e8ef1338aa34
--- /dev/null
+++ b/x11/hs-X11/distinfo
@@ -0,0 +1,6 @@
+MD5 (ghc-6.6.1-src-extralibs.tar.bz2) = 43a26b81608b206c056adc3032f7da2a
+SHA256 (ghc-6.6.1-src-extralibs.tar.bz2) = d162a82fc388fdd48c327b09bb6d778f2313d12d5282f3b120ac08a5d4e78902
+SIZE (ghc-6.6.1-src-extralibs.tar.bz2) = 1928527
+MD5 (patch-cabal-6.6.1-Setup.hs) = 060eea0c5871bbe67a2b96e60a5b2e91
+SHA256 (patch-cabal-6.6.1-Setup.hs) = d88a54c1edda7a07d331a60d5c26335c1de1efce4a4433fff21f89ab3070e8ea
+SIZE (patch-cabal-6.6.1-Setup.hs) = 371
diff --git a/x11/hs-X11/pkg-descr b/x11/hs-X11/pkg-descr
new file mode 100644
index 000000000000..ddccc4439150
--- /dev/null
+++ b/x11/hs-X11/pkg-descr
@@ -0,0 +1,7 @@
+A Haskell binding to the X11 library.
+
+The binding is a direct translation of C binding;
+for documentation of these calls, refer to /The Xlib Programming Manual/,
+available online at <http://tronche.com/gui/x/xlib/>.
+
+WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11
diff --git a/x11/hs-X11/pkg-plist b/x11/hs-X11/pkg-plist
new file mode 100644
index 000000000000..c0df5e721808
--- /dev/null
+++ b/x11/hs-X11/pkg-plist
@@ -0,0 +1,27 @@
+%%SUBDIR%%/Graphics/X11/Xlib/Atom.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Color.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Context.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Display.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Event.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Font.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Misc.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Region.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Screen.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Types.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Window.hi
+%%SUBDIR%%/Graphics/X11/Xlib/Image.hi
+%%SUBDIR%%/Graphics/X11/Types.hi
+%%SUBDIR%%/Graphics/X11/Xlib.hi
+%%SUBDIR%%/Graphics/X11.hi
+%%SUBDIR%%/libHSX11-%%PORTVERSION%%.a
+%%SUBDIR%%/HSX11-%%PORTVERSION%%.o
+%%SUBDIR%%/include/HsXlib.h
+%%SUBDIR%%/%%PORTNAME%%-register.sh
+@dirrm %%SUBDIR%%/Graphics/X11/Xlib
+@dirrm %%SUBDIR%%/Graphics/X11
+@dirrmtry %%SUBDIR%%/Graphics
+@dirrmtry %%SUBDIR%%/include
+@exec /bin/sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister X11
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old