diff options
author | vs <vs@FreeBSD.org> | 2007-09-17 13:56:38 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2007-09-17 13:56:38 +0800 |
commit | b0389178984058c5f94ce0d822fe103a842b8625 (patch) | |
tree | a54ea8cf9dcc03edb4bedbe19c27359e6d2b4560 /x11 | |
parent | 36aaf118d234c211486571628a6170c68bfe42d2 (diff) | |
download | freebsd-ports-gnome-b0389178984058c5f94ce0d822fe103a842b8625.tar.gz freebsd-ports-gnome-b0389178984058c5f94ce0d822fe103a842b8625.tar.zst freebsd-ports-gnome-b0389178984058c5f94ce0d822fe103a842b8625.zip |
Add x11/hs-x11-ghc, which provides x11 bindings for Haskell programs
compiled through lang/ghc. As of lang/ghc version 6.6.1_1, x11 and other
libraries are no longer part of the base ghc port.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/Makefile | 1 | ||||
-rw-r--r-- | x11/hs-X11/Makefile | 58 | ||||
-rw-r--r-- | x11/hs-X11/distinfo | 6 | ||||
-rw-r--r-- | x11/hs-X11/pkg-descr | 7 | ||||
-rw-r--r-- | x11/hs-X11/pkg-plist | 27 | ||||
-rw-r--r-- | x11/hs-x11-ghc/Makefile | 58 | ||||
-rw-r--r-- | x11/hs-x11-ghc/distinfo | 6 | ||||
-rw-r--r-- | x11/hs-x11-ghc/pkg-descr | 7 | ||||
-rw-r--r-- | x11/hs-x11-ghc/pkg-plist | 27 |
9 files changed, 197 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile index 820c32cc65c0..10a6d8c2d941 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -127,6 +127,7 @@ SUBDIR += gtkterm2 SUBDIR += gtstarter SUBDIR += gxset + SUBDIR += hs-x11-ghc SUBDIR += iceauth SUBDIR += ico SUBDIR += idesk 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 diff --git a/x11/hs-x11-ghc/Makefile b/x11/hs-x11-ghc/Makefile new file mode 100644 index 000000000000..80eb8382b390 --- /dev/null +++ b/x11/hs-x11-ghc/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-ghc/distinfo b/x11/hs-x11-ghc/distinfo new file mode 100644 index 000000000000..e8ef1338aa34 --- /dev/null +++ b/x11/hs-x11-ghc/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-ghc/pkg-descr b/x11/hs-x11-ghc/pkg-descr new file mode 100644 index 000000000000..ddccc4439150 --- /dev/null +++ b/x11/hs-x11-ghc/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-ghc/pkg-plist b/x11/hs-x11-ghc/pkg-plist new file mode 100644 index 000000000000..c0df5e721808 --- /dev/null +++ b/x11/hs-x11-ghc/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 |