The X11 extra bindings for GHC expose more of X11 to the Haskell
world than the X11 libraries shipped with GHC.
This commit is contained in:
parent
c1ff722c4b
commit
7ead46ad50
66
x11/hs-x11-extras/Makefile
Normal file
66
x11/hs-x11-extras/Makefile
Normal file
@ -0,0 +1,66 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/09/01 22:13:42 kili Exp $
|
||||
|
||||
COMMENT= missing bindings to the X11 graphics library for GHC
|
||||
|
||||
V= 0.2
|
||||
DISTNAME= X11-extras-$V
|
||||
PKGNAME= hs-x11-extras-$V
|
||||
|
||||
CATEGORIES= x11
|
||||
|
||||
HOMEPAGE= http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11-extras-0.2
|
||||
|
||||
MAINTAINER= Matthias Kilian <kili@openbsd.org>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://hackage.haskell.org/packages/archive/X11-extras/$V/
|
||||
|
||||
MODULES= lang/ghc
|
||||
|
||||
BUILD_DEPENDS= ::devel/haddock
|
||||
|
||||
SETUP_CONF_ARGS= configure -g --prefix=${PREFIX}
|
||||
SETUP_CONF_ENV= HOME=${PORTHOME} ${CONFIGURE_ENV}
|
||||
SETUP_PROG= ${WRKSRC}/Setup
|
||||
SUBST_VARS= V
|
||||
|
||||
USE_X11= Yes
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC} && ghc --make -o ${SETUP_PROG} Setup.lhs
|
||||
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
|
||||
${SETUP_PROG} ${SETUP_CONF_ARGS}
|
||||
|
||||
do-build:
|
||||
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
||||
${SETUP_PROG} build
|
||||
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
||||
${SETUP_PROG} haddock
|
||||
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
||||
${SETUP_PROG} register --gen-script
|
||||
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
||||
${SETUP_PROG} unregister --gen-script
|
||||
perl -pi -e 's!/share/${DISTNAME}/doc/html!/share/doc/${DISTNAME}!' \
|
||||
${WRKBUILD}/register.sh
|
||||
|
||||
do-install:
|
||||
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
||||
${SETUP_PROG} copy --destdir=${DESTDIR}
|
||||
|
||||
post-install:
|
||||
mv ${PREFIX}/share/${DISTNAME}/doc/html ${PREFIX}/share/doc/${DISTNAME}
|
||||
rm -rf ${PREFIX}/share/${DISTNAME}
|
||||
.for f in register.sh unregister.sh
|
||||
${INSTALL_SCRIPT} ${WRKBUILD}/$f ${PREFIX}/lib/${DISTNAME}
|
||||
.endfor
|
||||
|
||||
do-regress:
|
||||
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
||||
${SETUP_PROG} test
|
||||
|
||||
.include <bsd.port.mk>
|
5
x11/hs-x11-extras/distinfo
Normal file
5
x11/hs-x11-extras/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (X11-extras-0.2.tar.gz) = PKUY2t7SgE+/bAKBv/JT3g==
|
||||
RMD160 (X11-extras-0.2.tar.gz) = sXR5eJCjRrE7HFmpLRLXG82hCt0=
|
||||
SHA1 (X11-extras-0.2.tar.gz) = ZoJTFICJ9qPsKDxDn/gPehCVvj8=
|
||||
SHA256 (X11-extras-0.2.tar.gz) = vwkAQyxAteQwJtj/LVJYILxR2HXqgVqMjHOqeRmJ4jk=
|
||||
SIZE (X11-extras-0.2.tar.gz) = 44799
|
2
x11/hs-x11-extras/pkg/DESCR
Normal file
2
x11/hs-x11-extras/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
The X11 extra bindings for GHC expose more of X11 to the Haskell
|
||||
world than the X11 libraries shipped with GHC.
|
44
x11/hs-x11-extras/pkg/PLIST
Normal file
44
x11/hs-x11-extras/pkg/PLIST
Normal file
@ -0,0 +1,44 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/09/01 22:13:42 kili Exp $
|
||||
lib/X11-extras-${V}/
|
||||
lib/X11-extras-${V}/ghc-6.6.1/
|
||||
lib/X11-extras-${V}/ghc-6.6.1/Graphics/
|
||||
lib/X11-extras-${V}/ghc-6.6.1/Graphics/X11/
|
||||
lib/X11-extras-${V}/ghc-6.6.1/Graphics/X11/Xinerama.hi
|
||||
lib/X11-extras-${V}/ghc-6.6.1/Graphics/X11/Xlib/
|
||||
lib/X11-extras-${V}/ghc-6.6.1/Graphics/X11/Xlib/Extras.hi
|
||||
lib/X11-extras-${V}/ghc-6.6.1/HSX11-extras-${V}.o
|
||||
lib/X11-extras-${V}/ghc-6.6.1/include/
|
||||
lib/X11-extras-${V}/ghc-6.6.1/include/XlibExtras.h
|
||||
lib/X11-extras-${V}/ghc-6.6.1/libHSX11-extras-${V}.a
|
||||
lib/X11-extras-${V}/register.sh
|
||||
@exec /usr/bin/env HOME=/nonexistent %D/lib/X11-extras-${V}/register.sh
|
||||
@unexec /usr/bin/env HOME=/nonexistent %D/lib/X11-extras-${V}/unregister.sh
|
||||
lib/X11-extras-${V}/unregister.sh
|
||||
share/doc/X11-extras-${V}/
|
||||
share/doc/X11-extras-${V}/Graphics-X11-Xinerama.html
|
||||
share/doc/X11-extras-${V}/Graphics-X11-Xlib-Extras.html
|
||||
share/doc/X11-extras-${V}/X11-extras.haddock
|
||||
share/doc/X11-extras-${V}/doc-index-A.html
|
||||
share/doc/X11-extras-${V}/doc-index-B.html
|
||||
share/doc/X11-extras-${V}/doc-index-C.html
|
||||
share/doc/X11-extras-${V}/doc-index-D.html
|
||||
share/doc/X11-extras-${V}/doc-index-E.html
|
||||
share/doc/X11-extras-${V}/doc-index-F.html
|
||||
share/doc/X11-extras-${V}/doc-index-G.html
|
||||
share/doc/X11-extras-${V}/doc-index-K.html
|
||||
share/doc/X11-extras-${V}/doc-index-M.html
|
||||
share/doc/X11-extras-${V}/doc-index-N.html
|
||||
share/doc/X11-extras-${V}/doc-index-P.html
|
||||
share/doc/X11-extras-${V}/doc-index-Q.html
|
||||
share/doc/X11-extras-${V}/doc-index-R.html
|
||||
share/doc/X11-extras-${V}/doc-index-S.html
|
||||
share/doc/X11-extras-${V}/doc-index-U.html
|
||||
share/doc/X11-extras-${V}/doc-index-W.html
|
||||
share/doc/X11-extras-${V}/doc-index-X.html
|
||||
share/doc/X11-extras-${V}/doc-index.html
|
||||
share/doc/X11-extras-${V}/haddock.css
|
||||
share/doc/X11-extras-${V}/haddock.js
|
||||
share/doc/X11-extras-${V}/haskell_icon.gif
|
||||
share/doc/X11-extras-${V}/index.html
|
||||
share/doc/X11-extras-${V}/minus.gif
|
||||
share/doc/X11-extras-${V}/plus.gif
|
Loading…
Reference in New Issue
Block a user