ports/117490: [NEW PORT] x11/hs-x11extras-ghc: Missing bindings to the X11 graphics library (Haskell)
Matthieu GUEGAN
matt.guegan at free.fr
Thu Oct 25 15:50:02 UTC 2007
>Number: 117490
>Category: ports
>Synopsis: [NEW PORT] x11/hs-x11extras-ghc: Missing bindings to the X11 graphics library (Haskell)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 25 15:50:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Matthieu GUEGAN
>Release: FreeBSD 7.0-BETA1 i386
>Organization:
>Environment:
FreeBSD 7.0-BETA1 #0: Tue Oct 23 11:56:06 CEST 2007
>Description:
Missing bindings to the X11 graphics 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-extras
>How-To-Repeat:
>Fix:
See the attached shar file
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# hs-x11extras-ghc
# hs-x11extras-ghc/Makefile
# hs-x11extras-ghc/distinfo
# hs-x11extras-ghc/pkg-descr
# hs-x11extras-ghc/pkg-plist
#
echo c - hs-x11extras-ghc
mkdir -p hs-x11extras-ghc > /dev/null 2>&1
echo x - hs-x11extras-ghc/Makefile
sed 's/^X//' >hs-x11extras-ghc/Makefile << 'END-of-hs-x11extras-ghc/Makefile'
X# New ports collection makefile for: hs-x11extras-ghc
X# Date created: 2007-10-25
X# Whom: Matthieu Guegan <matt.guegan at free.fr>
X#
X# $FreeBSD$
X
XPORTNAME= x11extras
XPORTVERSION= 0.4
XPORTREVISION= 1
XCATEGORIES= x11 haskell
XMASTER_SITES= http://hackage.haskell.org/packages/archive/X11-extras/${PORTVERSION}/
XPKGNAMEPREFIX= hs-
XPKGNAMESUFFIX= -ghc
XDISTNAME= X11-extras-${PORTVERSION}
X
XMAINTAINER= matt.guegan at free.fr
XCOMMENT= Missing bindings to the X11 graphics library (Haskell)
X
XUSE_XLIB= yes
X
X# include the version verbatim. This will require a revision bump
X# on updates, but the correct quoting of `ghc --numeric-version` in the various
X# places is a real nightmare.
XGHC_VERSION= 6.6.1
XPLIST_SUB+= GHC_VERSION=${GHC_VERSION} \
X PORTVERSION=${PORTVERSION} \
X PORTNAME=${PORTNAME} \
X SUBDIR=lib/ghc-${GHC_VERSION}/cabal
X
X.include <bsd.port.pre.mk>
X
XBUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
XLIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
XRUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
X
X# 'owned' by lang/ghc:
XCABALDIR= ${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
XCABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs
XSUBDIR= ${PORTNAME}${PKGNAMESUFFIX}
X
XBUILD_DEPENDS+= ${CABALDIR}/libHSX11-1.2.3.a:${PORTSDIR}/x11/hs-x11-ghc
X
Xdo-configure:
X cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX} --libdir=${CABALDIR} \
X --libsubdir='' --datasubdir=''
X
Xdo-build:
X cd ${WRKSRC} && ${CABALCMD} build \
X && ${CABALCMD} --gen-script register
X
Xdo-install:
X cd ${WRKSRC} && ${CABALCMD} install \
X && ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${CABALDIR}/${PORTNAME}-register.sh
X
X.include <bsd.port.post.mk>
END-of-hs-x11extras-ghc/Makefile
echo x - hs-x11extras-ghc/distinfo
sed 's/^X//' >hs-x11extras-ghc/distinfo << 'END-of-hs-x11extras-ghc/distinfo'
XMD5 (X11-extras-0.4.tar.gz) = e68ce25e94477b054744001bbef41a34
XSHA256 (X11-extras-0.4.tar.gz) = ea08c3f71e2f14374c56bbb9050df3eec81ff6b44a6d8e396892b5f612c8f2b2
XSIZE (X11-extras-0.4.tar.gz) = 48853
END-of-hs-x11extras-ghc/distinfo
echo x - hs-x11extras-ghc/pkg-descr
sed 's/^X//' >hs-x11extras-ghc/pkg-descr << 'END-of-hs-x11extras-ghc/pkg-descr'
XMissing bindings to the X11 graphics library.
X
XThe binding is a direct translation of C binding;
Xfor documentation of these calls, refer to /The Xlib Programming Manual/,
Xavailable online at <http://tronche.com/gui/x/xlib/>.
X
XWWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11-extras
END-of-hs-x11extras-ghc/pkg-descr
echo x - hs-x11extras-ghc/pkg-plist
sed 's/^X//' >hs-x11extras-ghc/pkg-plist << 'END-of-hs-x11extras-ghc/pkg-plist'
Xlib/ghc-6.6.1/cabal/Graphics/X11/Xinerama.hi
Xlib/ghc-6.6.1/cabal/Graphics/X11/Xlib/Extras.hi
Xlib/ghc-6.6.1/cabal/HSX11-extras-0.4.o
Xlib/ghc-6.6.1/cabal/include/XlibExtras.h
Xlib/ghc-6.6.1/cabal/libHSX11-extras-0.4.a
Xlib/ghc-6.6.1/cabal/x11extras-register.sh
X at dirrmtry lib/ghc-6.6.1/cabal/include
X at dirrmtry lib/ghc-6.6.1/cabal/Graphics/X11/Xlib
X at dirrmtry lib/ghc-6.6.1/cabal/Graphics/X11
X at dirrmtry lib/ghc-6.6.1/cabal/Graphics
X at dirrmtry lib/ghc-6.6.1/cabal
X at dirrmtry lib/ghc-6.6.1
END-of-hs-x11extras-ghc/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list