1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

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.
This commit is contained in:
Volker Stolz 2007-09-17 05:56:38 +00:00
parent 35dbe93c84
commit 9c4f802cd7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199588
9 changed files with 197 additions and 0 deletions

View File

@ -127,6 +127,7 @@
SUBDIR += gtkterm2
SUBDIR += gtstarter
SUBDIR += gxset
SUBDIR += hs-x11-ghc
SUBDIR += iceauth
SUBDIR += ico
SUBDIR += idesk

58
x11/hs-X11/Makefile Normal file
View File

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

6
x11/hs-X11/distinfo Normal file
View File

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

7
x11/hs-X11/pkg-descr Normal file
View File

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

27
x11/hs-X11/pkg-plist Normal file
View File

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

58
x11/hs-x11-ghc/Makefile Normal file
View File

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

6
x11/hs-x11-ghc/distinfo Normal file
View File

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

7
x11/hs-x11-ghc/pkg-descr Normal file
View File

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

27
x11/hs-x11-ghc/pkg-plist Normal file
View File

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