aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2010-05-12 16:33:59 +0000
committerGabor Pali <pgj@FreeBSD.org>2010-05-12 16:33:59 +0000
commitec29a59ec3d0472e808e9907b2f18dce2e9fe68c (patch)
treebd2ff04188a74e09a51bfecae86236b3684491e5
parentba00ef6b8cc071eb53bf9287bfbc328da82f7eb8 (diff)
downloadports-ec29a59ec3d0472e808e9907b2f18dce2e9fe68c.tar.gz
ports-ec29a59ec3d0472e808e9907b2f18dce2e9fe68c.zip
Notes
-rw-r--r--archivers/hs-zip-archive-ghc/Makefile69
-rw-r--r--archivers/hs-zip-archive-ghc/pkg-plist20
-rw-r--r--archivers/hs-zip-archive/Makefile69
-rw-r--r--archivers/hs-zip-archive/pkg-plist20
-rw-r--r--archivers/hs-zlib/Makefile62
-rw-r--r--archivers/hs-zlib/pkg-plist30
-rw-r--r--audio/hs-ALUT/Makefile77
-rw-r--r--audio/hs-ALUT/pkg-plist38
-rw-r--r--audio/hs-OpenAL/Makefile80
-rw-r--r--audio/hs-OpenAL/pkg-plist86
-rw-r--r--benchmarks/hs-criterion/Makefile88
-rw-r--r--benchmarks/hs-criterion/pkg-plist38
-rw-r--r--converters/hs-json/Makefile61
-rw-r--r--converters/hs-json/pkg-plist32
-rw-r--r--devel/hs-DeepArrow/Makefile63
-rw-r--r--devel/hs-DeepArrow/pkg-plist38
-rw-r--r--devel/hs-FileManip/Makefile67
-rw-r--r--devel/hs-FileManip/pkg-plist26
-rw-r--r--devel/hs-MemoTrie/Makefile61
-rw-r--r--devel/hs-MemoTrie/pkg-plist18
-rw-r--r--devel/hs-MissingH/Makefile66
-rw-r--r--devel/hs-MissingH/pkg-plist174
-rw-r--r--devel/hs-MonadCatchIO-mtl/Makefile61
-rw-r--r--devel/hs-MonadCatchIO-mtl/pkg-plist20
-rw-r--r--devel/hs-ObjectName/Makefile61
-rw-r--r--devel/hs-ObjectName/pkg-plist18
-rw-r--r--devel/hs-QuickCheck/Makefile61
-rw-r--r--devel/hs-QuickCheck/pkg-plist42
-rw-r--r--devel/hs-StateVar/Makefile61
-rw-r--r--devel/hs-StateVar/pkg-plist18
-rw-r--r--devel/hs-Stream/Makefile67
-rw-r--r--devel/hs-Stream/pkg-plist18
-rw-r--r--devel/hs-Tensor/Makefile61
-rw-r--r--devel/hs-Tensor/pkg-plist18
-rw-r--r--devel/hs-TypeCompose/Makefile61
-rw-r--r--devel/hs-TypeCompose/pkg-plist38
-rw-r--r--devel/hs-alex/Makefile55
-rw-r--r--devel/hs-alex/pkg-plist19
-rw-r--r--devel/hs-arrows/Makefile64
-rw-r--r--devel/hs-arrows/pkg-plist44
-rw-r--r--devel/hs-binary-ghc/Makefile62
-rw-r--r--devel/hs-binary-ghc/pkg-plist26
-rw-r--r--devel/hs-binary/Makefile62
-rw-r--r--devel/hs-binary/pkg-plist26
-rw-r--r--devel/hs-c2hs/Makefile61
-rw-r--r--devel/hs-c2hs/pkg-plist2
-rw-r--r--devel/hs-checkers/Makefile63
-rw-r--r--devel/hs-checkers/pkg-plist58
-rw-r--r--devel/hs-convertible/Makefile61
-rw-r--r--devel/hs-convertible/pkg-plist36
-rw-r--r--devel/hs-cpphs/Makefile71
-rw-r--r--devel/hs-cpphs/pkg-plist51
-rw-r--r--devel/hs-datetime/Makefile61
-rw-r--r--devel/hs-datetime/pkg-plist18
-rw-r--r--devel/hs-deepseq/Makefile61
-rw-r--r--devel/hs-deepseq/pkg-plist18
-rw-r--r--devel/hs-dlist/Makefile62
-rw-r--r--devel/hs-dlist/pkg-plist18
-rw-r--r--devel/hs-fgl/Makefile70
-rw-r--r--devel/hs-fgl/pkg-plist84
-rw-r--r--devel/hs-filemanip/Makefile67
-rw-r--r--devel/hs-filemanip/pkg-plist26
-rw-r--r--devel/hs-ghc-mtl/Makefile63
-rw-r--r--devel/hs-ghc-mtl/pkg-plist20
-rw-r--r--devel/hs-ghc-paths-docs/Makefile33
-rw-r--r--devel/hs-ghc-paths-docs/pkg-plist18
-rw-r--r--devel/hs-ghc-paths/Makefile43
-rw-r--r--devel/hs-ghc-paths/pkg-plist18
-rw-r--r--devel/hs-haddock-docs/Makefile56
-rw-r--r--devel/hs-haddock-docs/pkg-message4
-rw-r--r--devel/hs-haddock-docs/pkg-plist123
-rw-r--r--devel/hs-haddock/Makefile58
-rw-r--r--devel/hs-haddock/pkg-plist43
-rw-r--r--devel/hs-happy/Makefile52
-rw-r--r--devel/hs-happy/pkg-plist18
-rw-r--r--devel/hs-haskeline/Makefile66
-rw-r--r--devel/hs-haskeline/pkg-plist78
-rw-r--r--devel/hs-haskell-src-exts/Makefile66
-rw-r--r--devel/hs-haskell-src-exts/pkg-plist64
-rw-r--r--devel/hs-hint/Makefile87
-rw-r--r--devel/hs-hint/pkg-plist62
-rw-r--r--devel/hs-hoogle/Makefile72
-rw-r--r--devel/hs-hslogger/Makefile61
-rw-r--r--devel/hs-hslogger/pkg-plist34
-rw-r--r--devel/hs-language-c-ghc/Makefile64
-rw-r--r--devel/hs-language-c-ghc/pkg-plist92
-rw-r--r--devel/hs-language-c/Makefile64
-rw-r--r--devel/hs-language-c/pkg-plist92
-rw-r--r--devel/hs-lazysmallcheck-ghc/Makefile69
-rw-r--r--devel/hs-lazysmallcheck-ghc/pkg-plist18
-rw-r--r--devel/hs-lazysmallcheck/Makefile69
-rw-r--r--devel/hs-lazysmallcheck/pkg-plist18
-rw-r--r--devel/hs-mmap/Makefile61
-rw-r--r--devel/hs-mmap/pkg-plist20
-rw-r--r--devel/hs-mueval/Makefile79
-rw-r--r--devel/hs-mueval/pkg-message2
-rw-r--r--devel/hs-mueval/pkg-plist26
-rw-r--r--devel/hs-pcre-light-ghc/Makefile62
-rw-r--r--devel/hs-pcre-light-ghc/pkg-plist28
-rw-r--r--devel/hs-pcre-light/Makefile62
-rw-r--r--devel/hs-pcre-light/pkg-plist28
-rw-r--r--devel/hs-reactive/Makefile77
-rw-r--r--devel/hs-reactive/pkg-plist72
-rw-r--r--devel/hs-readline/Makefile61
-rw-r--r--devel/hs-readline/pkg-plist28
-rw-r--r--devel/hs-safe/Makefile61
-rw-r--r--devel/hs-safe/pkg-plist16
-rw-r--r--devel/hs-show/Makefile64
-rw-r--r--devel/hs-show/pkg-plist22
-rw-r--r--devel/hs-smallcheck/Makefile77
-rw-r--r--devel/hs-smallcheck/pkg-plist18
-rw-r--r--devel/hs-split/Makefile61
-rw-r--r--devel/hs-split/pkg-plist24
-rw-r--r--devel/hs-testpack/Makefile63
-rw-r--r--devel/hs-testpack/pkg-plist26
-rw-r--r--devel/hs-transformers/Makefile61
-rw-r--r--devel/hs-transformers/pkg-plist60
-rw-r--r--devel/hs-unamb/Makefile61
-rw-r--r--devel/hs-unamb/pkg-plist18
-rw-r--r--devel/hs-uniplate/Makefile68
-rw-r--r--devel/hs-uniplate/pkg-plist42
-rw-r--r--devel/hs-unix-compat/Makefile61
-rw-r--r--devel/hs-unix-compat/pkg-plist30
-rw-r--r--devel/hs-utf8-string-ghc/Makefile61
-rw-r--r--devel/hs-utf8-string-ghc/pkg-plist48
-rw-r--r--devel/hs-utf8-string/Makefile61
-rw-r--r--devel/hs-utf8-string/pkg-plist48
-rw-r--r--devel/hs-utility-ht/Makefile61
-rw-r--r--devel/hs-utility-ht/pkg-plist100
-rw-r--r--devel/hs-uuagc/Makefile66
-rw-r--r--devel/hs-uuagc/pkg-plist30
-rw-r--r--devel/hs-uulib/Makefile61
-rw-r--r--devel/hs-uulib/pkg-plist98
-rw-r--r--devel/hs-uvector-algorithms/Makefile63
-rw-r--r--devel/hs-uvector-algorithms/pkg-plist38
-rw-r--r--devel/hs-uvector/Makefile70
-rw-r--r--devel/hs-uvector/pkg-plist54
-rw-r--r--graphics/hs-HGL-ghc/Makefile62
-rw-r--r--graphics/hs-HGL-ghc/pkg-plist78
-rw-r--r--graphics/hs-HGL/Makefile62
-rw-r--r--graphics/hs-HGL/pkg-plist78
-rw-r--r--lang/ghc/bsd.cabal.mk267
-rw-r--r--lang/ghc/bsd.hackage.mk116
-rw-r--r--lang/hs-brainfuck/Makefile62
-rw-r--r--lang/hs-brainfuck/pkg-plist22
-rw-r--r--lang/hs-unlambda/Makefile62
-rw-r--r--lang/hs-unlambda/pkg-plist18
-rw-r--r--mail/hs-mime/Makefile61
-rw-r--r--mail/hs-mime/pkg-plist30
-rw-r--r--math/hs-Agda-executable/Makefile61
-rw-r--r--math/hs-Agda/Makefile99
-rw-r--r--math/hs-Agda/pkg-plist422
-rw-r--r--math/hs-category-extras/Makefile61
-rw-r--r--math/hs-category-extras/pkg-plist250
-rw-r--r--math/hs-erf/Makefile61
-rw-r--r--math/hs-erf/pkg-plist20
-rw-r--r--math/hs-mwc-random/Makefile70
-rw-r--r--math/hs-mwc-random/pkg-plist20
-rw-r--r--math/hs-probability/Makefile69
-rw-r--r--math/hs-probability/pkg-plist74
-rw-r--r--math/hs-statistics/Makefile76
-rw-r--r--math/hs-statistics/pkg-plist64
-rw-r--r--math/hs-vector-space/Makefile63
-rw-r--r--math/hs-vector-space/pkg-plist34
-rw-r--r--ports-mgmt/hs-porte/Makefile66
-rw-r--r--ports-mgmt/hs-porte/pkg-plist22
-rw-r--r--ports-mgmt/porte/Makefile66
-rw-r--r--ports-mgmt/porte/pkg-plist22
-rw-r--r--print/hs-hscolour-docs/Makefile34
-rw-r--r--print/hs-hscolour-docs/pkg-plist105
-rw-r--r--print/hs-hscolour/Makefile47
-rw-r--r--print/hs-hscolour/pkg-plist53
-rw-r--r--science/hs-bio/Makefile72
-rw-r--r--science/hs-bio/pkg-plist112
-rw-r--r--security/hs-SHA/Makefile65
-rw-r--r--security/hs-SHA/pkg-plist22
-rw-r--r--security/hs-digest-ghc/Makefile61
-rw-r--r--security/hs-digest-ghc/pkg-plist22
-rw-r--r--security/hs-digest/Makefile61
-rw-r--r--security/hs-digest/pkg-plist22
-rw-r--r--textproc/hs-Diff/Makefile61
-rw-r--r--textproc/hs-Diff/pkg-plist20
-rw-r--r--textproc/hs-HaXml/Makefile69
-rw-r--r--textproc/hs-HaXml/pkg-plist90
-rw-r--r--textproc/hs-bytestring-csv/Makefile64
-rw-r--r--textproc/hs-bytestring-csv/pkg-plist24
-rw-r--r--textproc/hs-feed/Makefile66
-rw-r--r--textproc/hs-feed/pkg-plist74
-rw-r--r--textproc/hs-haxml/Makefile69
-rw-r--r--textproc/hs-haxml/pkg-plist90
-rw-r--r--textproc/hs-highlighting-kate-ghc/Makefile63
-rw-r--r--textproc/hs-highlighting-kate-ghc/pkg-plist146
-rw-r--r--textproc/hs-highlighting-kate/Makefile63
-rw-r--r--textproc/hs-highlighting-kate/pkg-plist146
-rw-r--r--textproc/hs-pandoc/Makefile86
-rw-r--r--textproc/hs-pandoc/pkg-plist79
-rw-r--r--textproc/hs-polyparse-ghc/Makefile61
-rw-r--r--textproc/hs-polyparse-ghc/pkg-plist44
-rw-r--r--textproc/hs-polyparse/Makefile61
-rw-r--r--textproc/hs-polyparse/pkg-plist44
-rw-r--r--textproc/hs-stringsearch/Makefile62
-rw-r--r--textproc/hs-stringsearch/pkg-plist24
-rw-r--r--textproc/hs-tagsoup/Makefile73
-rw-r--r--textproc/hs-tagsoup/pkg-plist36
-rw-r--r--textproc/hs-texmath/Makefile74
-rw-r--r--textproc/hs-texmath/pkg-plist24
-rw-r--r--textproc/hs-xml/Makefile61
-rw-r--r--textproc/hs-xml/pkg-plist32
-rw-r--r--textproc/pandoc/Makefile86
-rw-r--r--textproc/pandoc/pkg-plist79
-rw-r--r--www/hs-HTTP/Makefile63
-rw-r--r--www/hs-HTTP/pkg-plist54
-rw-r--r--www/hs-cgi/Makefile61
-rw-r--r--www/hs-cgi/pkg-plist34
-rw-r--r--www/hs-fastcgi/Makefile68
-rw-r--r--www/hs-fastcgi/pkg-plist18
-rw-r--r--www/hs-http-server/Makefile88
-rw-r--r--www/hs-http-server/pkg-plist30
-rw-r--r--www/hs-oeis/Makefile69
-rw-r--r--www/hs-oeis/pkg-plist18
-rw-r--r--www/hs-scgi/Makefile63
-rw-r--r--www/hs-scgi/pkg-plist18
-rw-r--r--www/hs-url/Makefile65
-rw-r--r--www/hs-url/pkg-plist18
-rw-r--r--x11-toolkits/hs-GLURaw-ghc/Makefile67
-rw-r--r--x11-toolkits/hs-GLURaw-ghc/pkg-plist36
-rw-r--r--x11-toolkits/hs-GLURaw/Makefile67
-rw-r--r--x11-toolkits/hs-GLURaw/pkg-plist36
-rw-r--r--x11-toolkits/hs-GLUT/Makefile74
-rw-r--r--x11-toolkits/hs-GLUT/pkg-plist74
-rw-r--r--x11-toolkits/hs-OpenGL/Makefile75
-rw-r--r--x11-toolkits/hs-OpenGL/pkg-plist192
-rw-r--r--x11-toolkits/hs-OpenGLRaw-ghc/Makefile64
-rw-r--r--x11-toolkits/hs-OpenGLRaw-ghc/pkg-plist400
-rw-r--r--x11-toolkits/hs-OpenGLRaw/Makefile64
-rw-r--r--x11-toolkits/hs-OpenGLRaw/pkg-plist400
-rw-r--r--x11-toolkits/hs-glut-ghc/Makefile74
-rw-r--r--x11-toolkits/hs-glut-ghc/pkg-plist74
-rw-r--r--x11-toolkits/hs-opengl-ghc/Makefile75
-rw-r--r--x11-toolkits/hs-opengl-ghc/pkg-plist192
-rw-r--r--x11-wm/hs-xmonad-contrib/Makefile80
-rw-r--r--x11-wm/hs-xmonad-contrib/pkg-plist392
-rw-r--r--x11-wm/hs-xmonad/Makefile77
-rw-r--r--x11-wm/hs-xmonad/pkg-plist33
-rw-r--r--x11-wm/xmonad-contrib/Makefile80
-rw-r--r--x11-wm/xmonad-contrib/pkg-plist392
-rw-r--r--x11-wm/xmonad/Makefile77
-rw-r--r--x11-wm/xmonad/pkg-plist33
-rw-r--r--x11/hs-X11-xft/Makefile68
-rw-r--r--x11/hs-X11-xft/pkg-plist22
-rw-r--r--x11/hs-X11/Makefile72
-rw-r--r--x11/hs-X11/pkg-plist80
-rw-r--r--x11/hs-x11-ghc/Makefile72
-rw-r--r--x11/hs-x11-ghc/pkg-plist80
-rw-r--r--x11/hs-x11-xft-ghc/Makefile68
-rw-r--r--x11/hs-x11-xft-ghc/pkg-plist22
-rw-r--r--x11/hs-xmobar/Makefile57
-rw-r--r--x11/hs-xmobar/pkg-plist4
-rw-r--r--x11/xmobar/Makefile57
-rw-r--r--x11/xmobar/pkg-plist4
260 files changed, 4577 insertions, 12066 deletions
diff --git a/archivers/hs-zip-archive-ghc/Makefile b/archivers/hs-zip-archive-ghc/Makefile
index f98559e52009..4e71810b3865 100644
--- a/archivers/hs-zip-archive-ghc/Makefile
+++ b/archivers/hs-zip-archive-ghc/Makefile
@@ -8,77 +8,12 @@
PORTNAME= zip-archive
PORTVERSION= 0.1.1.4
CATEGORIES= archivers haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Haskell library for working with zip archives
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc \
- hs-zlib>=0.5:${PORTSDIR}/archivers/hs-zlib \
- hs-binary-ghc>=0.4:${PORTSDIR}/devel/hs-binary-ghc \
- hs-utf8-string-ghc>=0.3.1:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-digest-ghc>=0.0.0.1:${PORTSDIR}/security/hs-digest-ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc \
- hs-zlib>=0.5:${PORTSDIR}/archivers/hs-zlib \
- hs-binary-ghc>=0.4:${PORTSDIR}/devel/hs-binary-ghc \
- hs-utf8-string-ghc>=0.3.1:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-digest-ghc>=0.0.0.1:${PORTSDIR}/security/hs-digest-ghc
-
-GHC_VERSION= 6.10.4
-ZIPARCHIVE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-ZIPARCHIVE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- ZIPARCHIVE_VERSION=${ZIPARCHIVE_VERSION} \
- ZIPARCHIVE_LIBDIR_REL=${ZIPARCHIVE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${ZIPARCHIVE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= binary digest>=0.0.0.1 utf8-string>=0.3.1 zlib
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/archivers/hs-zip-archive-ghc/pkg-plist b/archivers/hs-zip-archive-ghc/pkg-plist
index fb78819dffb1..a0019a765670 100644
--- a/archivers/hs-zip-archive-ghc/pkg-plist
+++ b/archivers/hs-zip-archive-ghc/pkg-plist
@@ -1,15 +1,15 @@
@comment $FreeBSD$
-%%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Archive/Zip.hi
-%%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSzip-archive-%%ZIPARCHIVE_VERSION%%.o
-%%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSzip-archive-%%ZIPARCHIVE_VERSION%%.a
-%%ZIPARCHIVE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Archive/Zip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Archive
-@dirrm %%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
-@dirrm %%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%ZIPARCHIVE_LIBDIR_REL%%
-@exec /bin/sh %D/%%ZIPARCHIVE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Archive
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister zip-archive
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/archivers/hs-zip-archive/Makefile b/archivers/hs-zip-archive/Makefile
index f98559e52009..4e71810b3865 100644
--- a/archivers/hs-zip-archive/Makefile
+++ b/archivers/hs-zip-archive/Makefile
@@ -8,77 +8,12 @@
PORTNAME= zip-archive
PORTVERSION= 0.1.1.4
CATEGORIES= archivers haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Haskell library for working with zip archives
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc \
- hs-zlib>=0.5:${PORTSDIR}/archivers/hs-zlib \
- hs-binary-ghc>=0.4:${PORTSDIR}/devel/hs-binary-ghc \
- hs-utf8-string-ghc>=0.3.1:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-digest-ghc>=0.0.0.1:${PORTSDIR}/security/hs-digest-ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc \
- hs-zlib>=0.5:${PORTSDIR}/archivers/hs-zlib \
- hs-binary-ghc>=0.4:${PORTSDIR}/devel/hs-binary-ghc \
- hs-utf8-string-ghc>=0.3.1:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-digest-ghc>=0.0.0.1:${PORTSDIR}/security/hs-digest-ghc
-
-GHC_VERSION= 6.10.4
-ZIPARCHIVE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-ZIPARCHIVE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- ZIPARCHIVE_VERSION=${ZIPARCHIVE_VERSION} \
- ZIPARCHIVE_LIBDIR_REL=${ZIPARCHIVE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${ZIPARCHIVE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= binary digest>=0.0.0.1 utf8-string>=0.3.1 zlib
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/archivers/hs-zip-archive/pkg-plist b/archivers/hs-zip-archive/pkg-plist
index fb78819dffb1..a0019a765670 100644
--- a/archivers/hs-zip-archive/pkg-plist
+++ b/archivers/hs-zip-archive/pkg-plist
@@ -1,15 +1,15 @@
@comment $FreeBSD$
-%%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Archive/Zip.hi
-%%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSzip-archive-%%ZIPARCHIVE_VERSION%%.o
-%%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSzip-archive-%%ZIPARCHIVE_VERSION%%.a
-%%ZIPARCHIVE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Archive/Zip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Archive
-@dirrm %%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
-@dirrm %%ZIPARCHIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%ZIPARCHIVE_LIBDIR_REL%%
-@exec /bin/sh %D/%%ZIPARCHIVE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Archive
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister zip-archive
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/archivers/hs-zlib/Makefile b/archivers/hs-zlib/Makefile
index f2a7c63e3f66..9a9282f5e2af 100644
--- a/archivers/hs-zlib/Makefile
+++ b/archivers/hs-zlib/Makefile
@@ -8,69 +8,11 @@ PORTNAME= zlib
PORTVERSION= 0.5.2.0
PORTREVISION= 1
CATEGORIES= archivers haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
- http://kerneled.org/tmp/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= Pure Haskell interface to the C zlib library
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-ZLIB_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-ZLIB_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- ZLIB_VERSION=${ZLIB_VERSION} \
- ZLIB_LIBDIR_REL=${ZLIB_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${ZLIB_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/archivers/hs-zlib/pkg-plist b/archivers/hs-zlib/pkg-plist
index 53ee34210146..91c098e372c4 100644
--- a/archivers/hs-zlib/pkg-plist
+++ b/archivers/hs-zlib/pkg-plist
@@ -1,20 +1,20 @@
@comment $FreeBSD$
-%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSzlib-%%ZLIB_VERSION%%.a
-%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSzlib-%%ZLIB_VERSION%%.o
-%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/GZip.hi
-%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib.hi
-%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Internal.hi
-%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Raw.hi
-%%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Stream.hi
-%%ZLIB_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/GZip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Internal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Raw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Stream.hi
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib
-@dirrm %%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression
-@dirrm %%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
-@dirrm %%ZLIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%ZLIB_LIBDIR_REL%%
-@exec /bin/sh %D/%%ZLIB_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Compression
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister zlib
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/audio/hs-ALUT/Makefile b/audio/hs-ALUT/Makefile
index e992ee842989..0edf1d3cef1a 100644
--- a/audio/hs-ALUT/Makefile
+++ b/audio/hs-ALUT/Makefile
@@ -9,83 +9,16 @@ PORTNAME= ALUT
PORTVERSION= 2.2.0.0
PORTREVISION= 1
CATEGORIES= audio haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell binding for the OpenAL Utility Toolkit
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-OpenAL>=1.4.0.0:${PORTSDIR}/audio/hs-OpenAL
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-OpenAL>=1.4.0.0:${PORTSDIR}/audio/hs-OpenAL
-
-GHC_VERSION= 6.10.4
-HSALUT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= OpenAL StateVar
USE_OPENAL= al alut
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-CPPFLAGS+= -I${LOCALBASE}/include
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSALUT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSALUT_VERSION=${HSALUT_VERSION} \
- HSALUT_LIBDIR_REL=${HSALUT_LIBDIR_REL}
-
-PORTEXAMPLES= *
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETENV} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"\
- ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSALUT_LIBDIR_REL}/register.sh
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/audio/hs-ALUT/pkg-plist b/audio/hs-ALUT/pkg-plist
index 8c05a491ae2e..d0da62656eae 100644
--- a/audio/hs-ALUT/pkg-plist
+++ b/audio/hs-ALUT/pkg-plist
@@ -1,24 +1,24 @@
@comment $FreeBSD$
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSALUT-%%HSALUT_VERSION%%.o
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Config.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Constants.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Errors.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Initialization.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Loaders.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Sleep.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Version.hi
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsALUT.h
-%%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSALUT-%%HSALUT_VERSION%%.a
-%%HSALUT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Config.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Constants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Errors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Initialization.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Loaders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Sleep.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT/Version.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsALUT.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
-@dirrm %%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT
-@dirrm %%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound
-@dirrm %%HSALUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSALUT_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSALUT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/ALUT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister ALUT
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/audio/hs-OpenAL/Makefile b/audio/hs-OpenAL/Makefile
index e5ed4c0776bb..5ed544333262 100644
--- a/audio/hs-OpenAL/Makefile
+++ b/audio/hs-OpenAL/Makefile
@@ -9,86 +9,16 @@ PORTNAME= OpenAL
PORTVERSION= 1.4.0.0
PORTREVISION= 1
CATEGORIES= audio haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell binding to the OpenAL cross-platform 3D audio API
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor \
- hs-ObjectName>=1.0.0.0:${PORTSDIR}/devel/hs-ObjectName
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor \
- hs-ObjectName>=1.0.0.0:${PORTSDIR}/devel/hs-ObjectName
-
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= ObjectName StateVar Tensor
USE_OPENAL= al
-GHC_VERSION= 6.10.4
-HSOPENAL_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-CPPFLAGS+= -I${LOCALBASE}/include
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSOPENAL_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSOPENAL_VERSION=${HSOPENAL_VERSION} \
- HSOPENAL_LIBDIR_REL=${HSOPENAL_LIBDIR_REL}
-
-PORTEXAMPLES= *
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETENV} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"\
- ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSOPENAL_LIBDIR_REL}/register.sh
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-.endif
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/audio/hs-OpenAL/pkg-plist b/audio/hs-OpenAL/pkg-plist
index 0df69d603283..fb57d33a2e8d 100644
--- a/audio/hs-OpenAL/pkg-plist
+++ b/audio/hs-OpenAL/pkg-plist
@@ -1,48 +1,48 @@
@comment $FreeBSD$
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSOpenAL-%%HSOPENAL_VERSION%%.o
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/ALboolean.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Attenuation.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/BasicTypes.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Buffer.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/BufferInternal.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Doppler.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Errors.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Extensions.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Format.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Listener.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/PeekPoke.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/QueryUtils.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Source.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/SourceState.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/String.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/StringQueries.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/ALCboolean.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/BasicTypes.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Capture.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Context.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Device.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Errors.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Extensions.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/QueryUtils.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/String.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/Config.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/Constants.hi
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsOpenAL.h
-%%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSOpenAL-%%HSOPENAL_VERSION%%.a
-%%HSOPENAL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/ALboolean.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Attenuation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/BasicTypes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Buffer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/BufferInternal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Doppler.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Errors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Extensions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Format.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Listener.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/PeekPoke.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/QueryUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/Source.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/SourceState.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/String.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL/StringQueries.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/ALCboolean.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/BasicTypes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Capture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Context.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Device.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Errors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/Extensions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/QueryUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC/String.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/Config.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/Constants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsOpenAL.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
-@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC
-@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL
-@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL
-@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound
-@dirrm %%HSOPENAL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSOPENAL_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSOPENAL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/ALC
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL/AL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound/OpenAL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Sound
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister OpenAL
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/benchmarks/hs-criterion/Makefile b/benchmarks/hs-criterion/Makefile
index 48b2d0a890ba..2bc4b0eb868b 100644
--- a/benchmarks/hs-criterion/Makefile
+++ b/benchmarks/hs-criterion/Makefile
@@ -8,88 +8,20 @@
PORTNAME= criterion
PORTVERSION= 0.4.1.0
CATEGORIES= benchmarks haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Robust, reliable performance measurement and analysis for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-deepseq>=1.1.0.0:${PORTSDIR}/devel/hs-deepseq \
- hs-statistics>=0.3.5:${PORTSDIR}/math/hs-statistics \
- hs-uvector>=0.1.0.5:${PORTSDIR}/devel/hs-uvector \
- hs-uvector-algorithms>=0.2:${PORTSDIR}/devel/hs-uvector-algorithms
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-deepseq>=1.1.0.0:${PORTSDIR}/devel/hs-deepseq \
- hs-statistics>=0.3.5:${PORTSDIR}/math/hs-statistics \
- hs-uvector>=0.1.0.5:${PORTSDIR}/devel/hs-uvector \
- hs-uvector-algorithms>=0.2:${PORTSDIR}/devel/hs-uvector-algorithms
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= deepseq>=1.1.0.0 statistics>=0.3.5 uvector>=0.1.0.5 \
+ uvector-algorithms>=0.2
-GHC_VERSION= 6.10.4
-CRITERION_VERSION= ${PORTVERSION}
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= \
+ cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
+PORTDATA= *
+INSTALL_PORTDATA= ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
-EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
-PORTEXAMPLES= *
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-CRITERION_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- CRITERION_VERSION=${CRITERION_VERSION} \
- CRITERION_LIBDIR_REL=${CRITERION_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${CRITERION_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
-.endif
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
-.include <bsd.port.mk>
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
+.include <bsd.port.mk> \ No newline at end of file
diff --git a/benchmarks/hs-criterion/pkg-plist b/benchmarks/hs-criterion/pkg-plist
index da96dde591c5..5c13f5b4bb36 100644
--- a/benchmarks/hs-criterion/pkg-plist
+++ b/benchmarks/hs-criterion/pkg-plist
@@ -1,24 +1,24 @@
@comment $FreeBSD$
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Analysis.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Config.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Environment.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/IO.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Main.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Measurement.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Monad.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/MultiMap.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Plot.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Types.hi
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HScriterion-%%CRITERION_VERSION%%.o
-%%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHScriterion-%%CRITERION_VERSION%%.a
-%%CRITERION_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Analysis.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Config.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Environment.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/IO.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Main.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Measurement.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/MultiMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Plot.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion
-@dirrm %%CRITERION_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%CRITERION_LIBDIR_REL%%
-@exec /bin/sh %D/%%CRITERION_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Criterion
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister criterion
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/converters/hs-json/Makefile b/converters/hs-json/Makefile
index a7e5fba283ed..c374428a1af3 100644
--- a/converters/hs-json/Makefile
+++ b/converters/hs-json/Makefile
@@ -8,68 +8,11 @@
PORTNAME= json
PORTVERSION= 0.4.3
CATEGORIES= converters haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Support for serialising Haskell to and from JSON
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-HSJSON_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSJSON_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSJSON_VERSION=${HSJSON_VERSION} \
- HSJSON_LIBDIR_REL=${HSJSON_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSJSON_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/converters/hs-json/pkg-plist b/converters/hs-json/pkg-plist
index e3be3739b6c2..e905410654af 100644
--- a/converters/hs-json/pkg-plist
+++ b/converters/hs-json/pkg-plist
@@ -1,21 +1,21 @@
@comment $FreeBSD$
-%%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSjson-%%HSJSON_VERSION%%.o
-%%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON.hi
-%%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/Generic.hi
-%%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/Parsec.hi
-%%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/Pretty.hi
-%%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/ReadP.hi
-%%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/String.hi
-%%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/Types.hi
-%%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSjson-%%HSJSON_VERSION%%.a
-%%HSJSON_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/Generic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/Parsec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/ReadP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/String.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON
-@dirrm %%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%HSJSON_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSJSON_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSJSON_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/JSON
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister json
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-DeepArrow/Makefile b/devel/hs-DeepArrow/Makefile
index 7986814601a4..5a345dab9d17 100644
--- a/devel/hs-DeepArrow/Makefile
+++ b/devel/hs-DeepArrow/Makefile
@@ -8,70 +8,11 @@
PORTNAME= DeepArrow
PORTVERSION= 0.3.3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell arrows for deep application
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-TypeCompose>=0.6.7:${PORTSDIR}/devel/hs-TypeCompose
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-TypeCompose>=0.6.7:${PORTSDIR}/devel/hs-TypeCompose
-
-GHC_VERSION= 6.10.4
-DEEPARROW_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-DEEPARROW_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- DEEPARROW_VERSION=${DEEPARROW_VERSION} \
- DEEPARROW_LIBDIR_REL=${DEEPARROW_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${DEEPARROW_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= TypeCompose>=0.6.7
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-DeepArrow/pkg-plist b/devel/hs-DeepArrow/pkg-plist
index c8f5b02a8337..5885a7d1c0b9 100644
--- a/devel/hs-DeepArrow/pkg-plist
+++ b/devel/hs-DeepArrow/pkg-plist
@@ -1,23 +1,23 @@
@comment $FreeBSD$
-%%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/DeepArrow.hi
-%%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/DeepArrow/Examples.hi
-%%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/DDeepArrow.hi
-%%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/FunArr.hi
-%%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSDeepArrow-%%DEEPARROW_VERSION%%.o
-%%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Parens.hi
-%%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/ToHs.hi
-%%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSDeepArrow-%%DEEPARROW_VERSION%%.a
-%%DEEPARROW_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/DeepArrow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/DeepArrow/Examples.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/DDeepArrow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/FunArr.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Parens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/ToHs.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell
-@dirrm %%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
-@dirrm %%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/DeepArrow
-@dirrm %%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow
-@dirrm %%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%DEEPARROW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%DEEPARROW_LIBDIR_REL%%
-@exec /bin/sh %D/%%DEEPARROW_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/DeepArrow
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister DeepArrow
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-FileManip/Makefile b/devel/hs-FileManip/Makefile
index 84ba76c16a1d..65603aa0f909 100644
--- a/devel/hs-FileManip/Makefile
+++ b/devel/hs-FileManip/Makefile
@@ -8,74 +8,11 @@
PORTNAME= FileManip
PORTVERSION= 0.3.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Expressive file and directory manipulation for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-FILEMANIP_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-FILEMANIP_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- FILEMANIP_VERSION=${FILEMANIP_VERSION} \
- FILEMANIP_LIBDIR_REL=${FILEMANIP_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} --constraint='base<4'
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${FILEMANIP_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CONFIGURE_ARGS+= --constraint='base<4'
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-FileManip/pkg-plist b/devel/hs-FileManip/pkg-plist
index 6f8cfc4b8762..c910327bf7e6 100644
--- a/devel/hs-FileManip/pkg-plist
+++ b/devel/hs-FileManip/pkg-plist
@@ -1,18 +1,18 @@
@comment $FreeBSD$
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSFileManip-%%FILEMANIP_VERSION%%.o
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Find.hi
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Glob.hi
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/GlobPattern.hi
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Manip.hi
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSFileManip-%%FILEMANIP_VERSION%%.a
-%%FILEMANIP_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Find.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Glob.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/GlobPattern.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Manip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath
-@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%FILEMANIP_LIBDIR_REL%%
-@exec /bin/sh %D/%%FILEMANIP_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister FileManip
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-MemoTrie/Makefile b/devel/hs-MemoTrie/Makefile
index 37007d6d7dd4..4ddaed6d28d7 100644
--- a/devel/hs-MemoTrie/Makefile
+++ b/devel/hs-MemoTrie/Makefile
@@ -8,68 +8,9 @@
PORTNAME= MemoTrie
PORTVERSION= 0.4.7
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Trie-based memo functions for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-MEMOTRIE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-MEMOTRIE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- MEMOTRIE_VERSION=${MEMOTRIE_VERSION} \
- MEMOTRIE_LIBDIR_REL=${MEMOTRIE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${MEMOTRIE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-MemoTrie/pkg-plist b/devel/hs-MemoTrie/pkg-plist
index 367c5e82489d..53e8a7a7baa3 100644
--- a/devel/hs-MemoTrie/pkg-plist
+++ b/devel/hs-MemoTrie/pkg-plist
@@ -1,13 +1,13 @@
@comment $FreeBSD$
-%%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/MemoTrie.hi
-%%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSMemoTrie-%%MEMOTRIE_VERSION%%.o
-%%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSMemoTrie-%%MEMOTRIE_VERSION%%.a
-%%MEMOTRIE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/MemoTrie.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%MEMOTRIE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%MEMOTRIE_LIBDIR_REL%%
-@exec /bin/sh %D/%%MEMOTRIE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister MemoTrie
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-MissingH/Makefile b/devel/hs-MissingH/Makefile
index fdc0f941617e..91bdfbe6ac93 100644
--- a/devel/hs-MissingH/Makefile
+++ b/devel/hs-MissingH/Makefile
@@ -8,72 +8,12 @@
PORTNAME= MissingH
PORTVERSION= 1.1.0.1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Large Haskell utility library
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-testpack>=1.0.2:${PORTSDIR}/devel/hs-testpack \
- hs-hslogger>=1.0.7:${PORTSDIR}/devel/hs-hslogger
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-testpack>=1.0.2:${PORTSDIR}/devel/hs-testpack \
- hs-hslogger>=1.0.7:${PORTSDIR}/devel/hs-hslogger
-
-GHC_VERSION= 6.10.4
-MISSINGH_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-MISSINGH_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- MISSINGH_VERSION=${MISSINGH_VERSION} \
- MISSINGH_LIBDIR_REL=${MISSINGH_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${MISSINGH_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= hslogger testpack
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-MissingH/pkg-plist b/devel/hs-MissingH/pkg-plist
index 9605609a76a6..34b84a4df01e 100644
--- a/devel/hs-MissingH/pkg-plist
+++ b/devel/hs-MissingH/pkg-plist
@@ -1,92 +1,92 @@
@comment $FreeBSD$
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Concurrent/Thread/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/BinPacking.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bits/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/CSV.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Compression/Inflate.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Either/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/CRC32/GZip.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/CRC32/Posix.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/MD5.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/MD5/Zord64_HARD.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/MIME/Types.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Map/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maybe/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Progress/Meter.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Progress/Tracker.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Quantity.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tuple/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSMissingH-%%MISSINGH_VERSION%%.o
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Email/Mailbox.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Email/Sendmail.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/SocketServer.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Cmd/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/GetOpt/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Daemon.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Debian.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Debian/ControlParser.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FileArchive/GZip.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/Binary.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS/Combinators.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS/InstanceHelpers.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVIO.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/PlafCompat.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/StatCompat.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/WindowsCompat.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path/Glob.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path/NameManip.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path/WildMatch.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Posix/Consts.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Time/ParseDate.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Time/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Parsec/Utils.hi
-%%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSMissingH-%%MISSINGH_VERSION%%.a
-%%MISSINGH_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Concurrent/Thread/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/BinPacking.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bits/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/CSV.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Compression/Inflate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Either/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/CRC32/GZip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/CRC32/Posix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/MD5.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/MD5/Zord64_HARD.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/MIME/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Map/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maybe/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Progress/Meter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Progress/Tracker.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Quantity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tuple/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Email/Mailbox.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Email/Sendmail.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/SocketServer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Cmd/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/GetOpt/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Daemon.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Debian.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Debian/ControlParser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FileArchive/GZip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/Binary.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS/Combinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS/InstanceHelpers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVIO.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/PlafCompat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/StatCompat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/WindowsCompat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path/Glob.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path/NameManip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path/WildMatch.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Posix/Consts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Time/ParseDate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Time/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Parsec/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Parsec
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Time
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Posix
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FileArchive
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Debian
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/GetOpt
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Cmd
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Email
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tuple
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Progress
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maybe
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Map
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/MIME
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/MD5
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/CRC32
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Either
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Compression
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bits
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Concurrent/Thread
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Concurrent
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%MISSINGH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%MISSINGH_LIBDIR_REL%%
-@exec /bin/sh %D/%%MISSINGH_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Parsec
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Time
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Posix
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Path
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/HVFS
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FileArchive
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Debian
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/GetOpt
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Cmd
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Email
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tuple
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Progress
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maybe
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Map
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/MIME
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/MD5
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash/CRC32
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Hash
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Either
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Compression
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bits
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Concurrent/Thread
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Concurrent
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister MissingH
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-MonadCatchIO-mtl/Makefile b/devel/hs-MonadCatchIO-mtl/Makefile
index 4602325a56a1..5147dba6e38a 100644
--- a/devel/hs-MonadCatchIO-mtl/Makefile
+++ b/devel/hs-MonadCatchIO-mtl/Makefile
@@ -8,68 +8,9 @@
PORTNAME= MonadCatchIO-mtl
PORTVERSION= 0.2.0.0
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Monad-transformer version of the Control.Exception Haskell module
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-MONADCATCHIOMTL_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-MONADCATCHIOMTL_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- MONADCATCHIOMTL_VERSION=${MONADCATCHIOMTL_VERSION} \
- MONADCATCHIOMTL_LIBDIR_REL=${MONADCATCHIOMTL_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${MONADCATCHIOMTL_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-MonadCatchIO-mtl/pkg-plist b/devel/hs-MonadCatchIO-mtl/pkg-plist
index 69a7ada8481b..3a58052e5cd4 100644
--- a/devel/hs-MonadCatchIO-mtl/pkg-plist
+++ b/devel/hs-MonadCatchIO-mtl/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%MONADCATCHIOMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/CatchIO.hi
-%%MONADCATCHIOMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSMonadCatchIO-mtl-%%MONADCATCHIOMTL_VERSION%%.o
-%%MONADCATCHIOMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSMonadCatchIO-mtl-%%MONADCATCHIOMTL_VERSION%%.a
-%%MONADCATCHIOMTL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/CatchIO.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%MONADCATCHIOMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
-@dirrm %%MONADCATCHIOMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%MONADCATCHIOMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%MONADCATCHIOMTL_LIBDIR_REL%%
-@exec /bin/sh %D/%%MONADCATCHIOMTL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister MonadCatchIO-mtl
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-ObjectName/Makefile b/devel/hs-ObjectName/Makefile
index dbb2d795f862..1f4ac7d3dd94 100644
--- a/devel/hs-ObjectName/Makefile
+++ b/devel/hs-ObjectName/Makefile
@@ -8,68 +8,11 @@
PORTNAME= ObjectName
PORTVERSION= 1.0.0.0
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Explicitly handled object names for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-OBJECTNAME_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-OBJECTNAME_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- OBJECTNAME_VERSION=${OBJECTNAME_VERSION} \
- OBJECTNAME_LIBDIR_REL=${OBJECTNAME_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${OBJECTNAME_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-ObjectName/pkg-plist b/devel/hs-ObjectName/pkg-plist
index 14ac62aeaac6..161087fd4014 100644
--- a/devel/hs-ObjectName/pkg-plist
+++ b/devel/hs-ObjectName/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ObjectName.hi
-%%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSObjectName-%%OBJECTNAME_VERSION%%.o
-%%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSObjectName-%%OBJECTNAME_VERSION%%.a
-%%OBJECTNAME_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ObjectName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%OBJECTNAME_LIBDIR_REL%%
-@exec /bin/sh %D/%%OBJECTNAME_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister ObjectName
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-QuickCheck/Makefile b/devel/hs-QuickCheck/Makefile
index 058120a3acc8..58354ffa9bfc 100644
--- a/devel/hs-QuickCheck/Makefile
+++ b/devel/hs-QuickCheck/Makefile
@@ -7,68 +7,9 @@
PORTNAME= QuickCheck
PORTVERSION= 2.1.0.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Library for random testing in haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-QUICKCHECK_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-QUICKCHECK_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- QUICKCHECK_VERSION=${QUICKCHECK_VERSION} \
- QUICKCHECK_LIBDIR_REL=${QUICKCHECK_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${QUICKCHECK_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-QuickCheck/pkg-plist b/devel/hs-QuickCheck/pkg-plist
index 8b6e73c14cad..cf3c587c5083 100644
--- a/devel/hs-QuickCheck/pkg-plist
+++ b/devel/hs-QuickCheck/pkg-plist
@@ -1,26 +1,26 @@
@comment $FreeBSD$
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSQuickCheck-%%QUICKCHECK_VERSION%%.o
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Arbitrary.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Exception.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Function.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Gen.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Modifiers.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Monadic.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Poly.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Property.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/State.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Test.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Text.hi
-%%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSQuickCheck-%%QUICKCHECK_VERSION%%.a
-%%QUICKCHECK_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Arbitrary.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Exception.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Function.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Gen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Modifiers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Monadic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Poly.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Property.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/State.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Test.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Text.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck
-@dirrm %%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
-@dirrm %%QUICKCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%QUICKCHECK_LIBDIR_REL%%
-@exec /bin/sh %D/%%QUICKCHECK_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister QuickCheck-%%QUICKCHECK_VERSION%%
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-StateVar/Makefile b/devel/hs-StateVar/Makefile
index 00f421774546..e41766bb3440 100644
--- a/devel/hs-StateVar/Makefile
+++ b/devel/hs-StateVar/Makefile
@@ -8,68 +8,11 @@
PORTNAME= StateVar
PORTVERSION= 1.0.0.0
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= State variables for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-STATEVAR_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-STATEVAR_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- STATEVAR_VERSION=${STATEVAR_VERSION} \
- STATEVAR_LIBDIR_REL=${STATEVAR_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${STATEVAR_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-StateVar/pkg-plist b/devel/hs-StateVar/pkg-plist
index c03a324be645..c9036bba0d02 100644
--- a/devel/hs-StateVar/pkg-plist
+++ b/devel/hs-StateVar/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%STATEVAR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/StateVar.hi
-%%STATEVAR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSStateVar-%%STATEVAR_VERSION%%.o
-%%STATEVAR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSStateVar-%%STATEVAR_VERSION%%.a
-%%STATEVAR_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/StateVar.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%STATEVAR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%STATEVAR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%STATEVAR_LIBDIR_REL%%
-@exec /bin/sh %D/%%STATEVAR_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister StateVar
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-Stream/Makefile b/devel/hs-Stream/Makefile
index c9d4dcbd6ee2..51384da9ae74 100644
--- a/devel/hs-Stream/Makefile
+++ b/devel/hs-Stream/Makefile
@@ -8,74 +8,11 @@ PORTNAME= Stream
PORTVERSION= 0.4.1
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
- http://carte.kerneled.org/mirror/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Haskell library for manipulating infinite lists
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-QuickCheck>=2.0:${PORTSDIR}/devel/hs-QuickCheck \
- hs-lazysmallcheck-ghc>=0.3:${PORTSDIR}/devel/hs-lazysmallcheck-ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-QuickCheck>=2.0:${PORTSDIR}/devel/hs-QuickCheck \
- hs-lazysmallcheck-ghc>=0.3:${PORTSDIR}/devel/hs-lazysmallcheck-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
-GHC_VERSION= 6.10.4
-STREAM_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-STREAM_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- STREAM_VERSION=${STREAM_VERSION} \
- STREAM_LIBDIR_REL=${STREAM_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${STREAM_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= lazysmallcheck>=0.3 QuickCheck>=2.0
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-Stream/pkg-plist b/devel/hs-Stream/pkg-plist
index b2dd98089cc1..15eb8015686d 100644
--- a/devel/hs-Stream/pkg-plist
+++ b/devel/hs-Stream/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%STREAM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Stream.hi
-%%STREAM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSStream-%%STREAM_VERSION%%.o
-%%STREAM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSStream-%%STREAM_VERSION%%.a
-%%STREAM_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Stream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%STREAM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%STREAM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%STREAM_LIBDIR_REL%%
-@exec /bin/sh %D/%%STREAM_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister Stream
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-Tensor/Makefile b/devel/hs-Tensor/Makefile
index a30c31e3095e..6d01ddcbf452 100644
--- a/devel/hs-Tensor/Makefile
+++ b/devel/hs-Tensor/Makefile
@@ -8,68 +8,11 @@
PORTNAME= Tensor
PORTVERSION= 1.0.0.1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Tensor data types for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-TENSOR_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-TENSOR_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- TENSOR_VERSION=${TENSOR_VERSION} \
- TENSOR_LIBDIR_REL=${TENSOR_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${TENSOR_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-Tensor/pkg-plist b/devel/hs-Tensor/pkg-plist
index 5efc7806c111..06f8ef826b1e 100644
--- a/devel/hs-Tensor/pkg-plist
+++ b/devel/hs-Tensor/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tensor.hi
-%%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSTensor-%%TENSOR_VERSION%%.o
-%%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSTensor-%%TENSOR_VERSION%%.a
-%%TENSOR_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tensor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%TENSOR_LIBDIR_REL%%
-@exec /bin/sh %D/%%TENSOR_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister Tensor
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-TypeCompose/Makefile b/devel/hs-TypeCompose/Makefile
index fbaf6a511b39..d0a3cd8138c3 100644
--- a/devel/hs-TypeCompose/Makefile
+++ b/devel/hs-TypeCompose/Makefile
@@ -8,68 +8,9 @@
PORTNAME= TypeCompose
PORTVERSION= 0.6.7
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Type composition classes and instances for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-TYPECOMPOSE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-TYPECOMPOSE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- TYPECOMPOSE_VERSION=${TYPECOMPOSE_VERSION} \
- TYPECOMPOSE_LIBDIR_REL=${TYPECOMPOSE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${TYPECOMPOSE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-TypeCompose/pkg-plist b/devel/hs-TypeCompose/pkg-plist
index d4c3f543d33f..f33d7b68287f 100644
--- a/devel/hs-TypeCompose/pkg-plist
+++ b/devel/hs-TypeCompose/pkg-plist
@@ -1,23 +1,23 @@
@comment $FreeBSD$
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Compose.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Instances.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bijection.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/CxMonoid.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Lambda.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Pair.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Partial.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/RefMonad.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Title.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Zip.hi
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSTypeCompose-%%TYPECOMPOSE_VERSION%%.o
-%%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSTypeCompose-%%TYPECOMPOSE_VERSION%%.a
-%%TYPECOMPOSE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Compose.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Instances.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bijection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/CxMonoid.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Lambda.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Pair.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Partial.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/RefMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Title.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Zip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%TYPECOMPOSE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%TYPECOMPOSE_LIBDIR_REL%%
-@exec /bin/sh %D/%%TYPECOMPOSE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister TypeCompose
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-alex/Makefile b/devel/hs-alex/Makefile
index a6e193477353..3c0ab1d76d34 100644
--- a/devel/hs-alex/Makefile
+++ b/devel/hs-alex/Makefile
@@ -8,60 +8,19 @@ PORTNAME= alex
PORTVERSION= 2.3.1
PORTREVISION= 3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/alex/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= Alex is a tool for generating lexical analysers in Haskell
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
-.if !defined(NOPORTDOCS)
-BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \
- ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
-
-PLIST_SUB+= RMLIC="@comment "
-.else
-PLIST_SUB+= RMLIC=""
-.endif
-
-USE_GMAKE= yes
+XMLDOCS= doc/alex:html
USE_AUTOTOOLS= autoconf:262:env
-CONFIGURE_ARGS= --ghc --prefix=${PREFIX}
-
-PLIST_SUB+= SUBDIR=share/${PORTNAME}-${PORTVERSION}
-DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
-PORTDOCS= LICENSE html
-EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${PORTVERSION}
-PORTEXAMPLES= *
-
-post-patch:
- @${REINPLACE_CMD} -e 's|/usr/local/share/xsl/docbook|${LOCALBASE}/share/xsl/docbook|' \
- ${WRKSRC}/doc/configure.ac
-
-do-configure:
- cd ${WRKSRC} && runhaskell Setup.lhs configure ${CONFIGURE_ARGS}
- cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && runhaskell Setup.lhs build
-.if !defined(NOPORTDOCS)
- @(cd ${WRKSRC}/doc && \
- ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html)
-.endif
-do-install:
- cd ${WRKSRC} && runhaskell Setup.lhs install
+STANDALONE= yes
+EXECUTABLE= alex
-post-install:
- @${STRIP_CMD} ${PREFIX}/bin/alex
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
-.endif
-.if !defined(NOPORTDOCS)
- @(cd ${WRKSRC}/doc && ${CP} -R alex/ ${DOCSDIR}/html)
-.endif
+PORTDATA= *
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-alex/pkg-plist b/devel/hs-alex/pkg-plist
index 59f5fa1f6abb..7b3ba3518ab5 100644
--- a/devel/hs-alex/pkg-plist
+++ b/devel/hs-alex/pkg-plist
@@ -1,19 +1,4 @@
@comment $FreeBSD$
bin/alex
-%%SUBDIR%%/AlexTemplate
-%%SUBDIR%%/AlexTemplate-debug
-%%SUBDIR%%/AlexTemplate-ghc
-%%SUBDIR%%/AlexTemplate-ghc-debug
-%%SUBDIR%%/AlexWrapper-basic
-%%SUBDIR%%/AlexWrapper-basic-bytestring
-%%SUBDIR%%/AlexWrapper-gscan
-%%SUBDIR%%/AlexWrapper-monad
-%%SUBDIR%%/AlexWrapper-monad-bytestring
-%%SUBDIR%%/AlexWrapper-posn
-%%SUBDIR%%/AlexWrapper-posn-bytestring
-%%SUBDIR%%/AlexWrapper-strict-bytestring
-%%SUBDIR%%/AlexWrapper-monadUserState
-%%SUBDIR%%/AlexWrapper-monadUserState-bytestring
-@dirrm %%SUBDIR%%
-%%RMLIC%%%%DOCSDIR%%/LICENSE
-%%RMLIC%%@dirrm %%DOCSDIR%%
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
diff --git a/devel/hs-arrows/Makefile b/devel/hs-arrows/Makefile
index 7c121d70b04d..44344a531877 100644
--- a/devel/hs-arrows/Makefile
+++ b/devel/hs-arrows/Makefile
@@ -8,70 +8,12 @@
PORTNAME= arrows
PORTVERSION= 0.4.1.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell arrow classes and transformers
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-Stream>=0.4.1:${PORTSDIR}/devel/hs-Stream
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-Stream>=0.4.1:${PORTSDIR}/devel/hs-Stream
-
-GHC_VERSION= 6.10.4
-ARROWS_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-ARROWS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- ARROWS_VERSION=${ARROWS_VERSION} \
- ARROWS_LIBDIR_REL=${ARROWS_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${ARROWS_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= Stream
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-arrows/pkg-plist b/devel/hs-arrows/pkg-plist
index 8bd9152043b1..7a2740b70cd1 100644
--- a/devel/hs-arrows/pkg-plist
+++ b/devel/hs-arrows/pkg-plist
@@ -1,27 +1,27 @@
@comment $FreeBSD$
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Internals.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Operations.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/All.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Automaton.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/CoState.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Error.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Reader.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/State.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Static.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Stream.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Writer.hi
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSarrows-%%ARROWS_VERSION%%.o
-%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSarrows-%%ARROWS_VERSION%%.a
-%%ARROWS_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Internals.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Operations.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/All.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Automaton.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/CoState.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Error.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Reader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/State.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Static.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Stream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Writer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer
-@dirrm %%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow
-@dirrm %%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%ARROWS_LIBDIR_REL%%
-@exec /bin/sh %D/%%ARROWS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister arrows
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-binary-ghc/Makefile b/devel/hs-binary-ghc/Makefile
index 7a1fbc0a87f7..94b8bafc3c3e 100644
--- a/devel/hs-binary-ghc/Makefile
+++ b/devel/hs-binary-ghc/Makefile
@@ -8,70 +8,10 @@
PORTNAME= binary
PORTVERSION= 0.5.0.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Efficient binary serialisation for Haskell
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-
-BINARY_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-BINARY_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- BINARY_VERSION=${BINARY_VERSION} \
- BINARY_LIBDIR_REL=${BINARY_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${BINARY_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-binary-ghc/pkg-plist b/devel/hs-binary-ghc/pkg-plist
index 63c22b11f80d..db13b5df3e71 100644
--- a/devel/hs-binary-ghc/pkg-plist
+++ b/devel/hs-binary-ghc/pkg-plist
@@ -1,18 +1,18 @@
@comment $FreeBSD$
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary.hi
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Builder.hi
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Get.hi
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Put.hi
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSbinary-%%BINARY_VERSION%%.o
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSbinary-%%BINARY_VERSION%%.a
-%%BINARY_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Builder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Get.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Put.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary
-@dirrm %%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%BINARY_LIBDIR_REL%%
-@exec /bin/sh %D/%%BINARY_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister binary
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-binary/Makefile b/devel/hs-binary/Makefile
index 7a1fbc0a87f7..94b8bafc3c3e 100644
--- a/devel/hs-binary/Makefile
+++ b/devel/hs-binary/Makefile
@@ -8,70 +8,10 @@
PORTNAME= binary
PORTVERSION= 0.5.0.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Efficient binary serialisation for Haskell
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-
-BINARY_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-BINARY_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- BINARY_VERSION=${BINARY_VERSION} \
- BINARY_LIBDIR_REL=${BINARY_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${BINARY_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-binary/pkg-plist b/devel/hs-binary/pkg-plist
index 63c22b11f80d..db13b5df3e71 100644
--- a/devel/hs-binary/pkg-plist
+++ b/devel/hs-binary/pkg-plist
@@ -1,18 +1,18 @@
@comment $FreeBSD$
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary.hi
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Builder.hi
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Get.hi
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Put.hi
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSbinary-%%BINARY_VERSION%%.o
-%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSbinary-%%BINARY_VERSION%%.a
-%%BINARY_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Builder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Get.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Put.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary
-@dirrm %%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%BINARY_LIBDIR_REL%%
-@exec /bin/sh %D/%%BINARY_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister binary
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-c2hs/Makefile b/devel/hs-c2hs/Makefile
index 7cf4184a8f1d..41d7e02a2795 100644
--- a/devel/hs-c2hs/Makefile
+++ b/devel/hs-c2hs/Makefile
@@ -9,67 +9,22 @@ PORTNAME= c2hs
PORTVERSION= 0.16.0
PORTREVISION= 3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= C->Haskell, an Interface Generator for Haskell
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-language-c-ghc>=0.3.1.1:${PORTSDIR}/devel/hs-language-c-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= language-c>=0.3.1.1
-GHC_VERSION= 6.10.4
-C2HS_VERSION= ${PORTVERSION}
+XMLDOCS= doc/users_guide:html
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-C2HS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- C2HS_VERSION=${C2HS_VERSION} \
- C2HS_LIBDIR_REL=${C2HS_LIBDIR_REL}
+STANDALONE= yes
+EXECUTABLE= c2hs
MAN1= c2hs.1
+MAN1SRC= doc/man1
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \
- ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
-USE_GMAKE= yes
-PORTDOCS= COPYING users_guide
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build
-
-.if !defined(NOPORTDOCS)
- @(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html)
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_MAN} ${WRKSRC}/doc/man1/c2hs.1 ${PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
- @(cd ${WRKSRC}/doc && ${CP} -R users_guide ${DOCSDIR})
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-c2hs/pkg-plist b/devel/hs-c2hs/pkg-plist
index 6b2a303cac68..6f914bb545c9 100644
--- a/devel/hs-c2hs/pkg-plist
+++ b/devel/hs-c2hs/pkg-plist
@@ -1,6 +1,4 @@
@comment $FreeBSD$
bin/c2hs
-%%DATADIR%%/C2HS.hs
%%NOPORTDOCS%%%%DOCSDIR%%/COPYING
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%DATADIR%%
diff --git a/devel/hs-checkers/Makefile b/devel/hs-checkers/Makefile
index 4d03b467f1b2..f149a83f1158 100644
--- a/devel/hs-checkers/Makefile
+++ b/devel/hs-checkers/Makefile
@@ -8,70 +8,11 @@
PORTNAME= checkers
PORTVERSION= 0.2.4
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Check properties on standard Haskell classes and data structures
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-QuickCheck>=2.1.0.2:${PORTSDIR}/devel/hs-QuickCheck
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-QuickCheck>=2.1.0.2:${PORTSDIR}/devel/hs-QuickCheck
-
-GHC_VERSION= 6.10.4
-CHECKERS_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-CHECKERS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- CHECKERS_VERSION=${CHECKERS_VERSION} \
- CHECKERS_LIBDIR_REL=${CHECKERS_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${CHECKERS_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= QuickCheck>=2.1.0.2
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-checkers/pkg-plist b/devel/hs-checkers/pkg-plist
index e61f7979d7ec..57f04ec189a7 100644
--- a/devel/hs-checkers/pkg-plist
+++ b/devel/hs-checkers/pkg-plist
@@ -1,33 +1,33 @@
@comment $FreeBSD$
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Extensions.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HScheckers-%%CHECKERS_VERSION%%.o
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Bottoms.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Checkers.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Classes.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Array.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Char.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Eq.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Int.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/List.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Maybe.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Num.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Ord.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Tuple.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Word.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Later.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Utils.hi
-%%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHScheckers-%%CHECKERS_VERSION%%.a
-%%CHECKERS_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Extensions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Bottoms.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Checkers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Classes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Array.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Char.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Eq.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Int.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/List.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Maybe.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Num.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Ord.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Tuple.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances/Word.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Later.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances
-@dirrm %%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck
-@dirrm %%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
-@dirrm %%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
-@dirrm %%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%CHECKERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%CHECKERS_LIBDIR_REL%%
-@exec /bin/sh %D/%%CHECKERS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister checkers
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-convertible/Makefile b/devel/hs-convertible/Makefile
index 43951c50acc1..e6b3e809f8f2 100644
--- a/devel/hs-convertible/Makefile
+++ b/devel/hs-convertible/Makefile
@@ -8,68 +8,9 @@
PORTNAME= convertible
PORTVERSION= 1.0.7
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell type classes and instances for converting between types
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-CONVERTIBLE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-CONVERTIBLE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- CONVERTIBLE_VERSION=${CONVERTIBLE_VERSION} \
- CONVERTIBLE_LIBDIR_REL=${CONVERTIBLE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${CONVERTIBLE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-convertible/pkg-plist b/devel/hs-convertible/pkg-plist
index 78d0e6dce76c..9fd6f3efd6f8 100644
--- a/devel/hs-convertible/pkg-plist
+++ b/devel/hs-convertible/pkg-plist
@@ -1,23 +1,23 @@
@comment $FreeBSD$
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible.hi
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Base.hi
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances.hi
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances/C.hi
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances/Map.hi
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances/Num.hi
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances/Time.hi
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Utils.hi
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSconvertible-%%CONVERTIBLE_VERSION%%.o
-%%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSconvertible-%%CONVERTIBLE_VERSION%%.a
-%%CONVERTIBLE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances/C.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances/Map.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances/Num.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances/Time.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances
-@dirrm %%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible
-@dirrm %%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%CONVERTIBLE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%CONVERTIBLE_LIBDIR_REL%%
-@exec /bin/sh %D/%%CONVERTIBLE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible/Instances
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Convertible
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister convertible
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-cpphs/Makefile b/devel/hs-cpphs/Makefile
index 8b0481815a0b..9413525b2c68 100644
--- a/devel/hs-cpphs/Makefile
+++ b/devel/hs-cpphs/Makefile
@@ -9,75 +9,20 @@ PORTNAME= cpphs
PORTVERSION= 1.9
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://www.cs.york.ac.uk/fp/cpphs/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= A simplified re-implementation of cpp in Haskell
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-CPPHS_VERSION= ${PORTVERSION}
+MAN1= cpphs.1
+MAN1SRC= docs
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
+EXECUTABLE= cpphs
-DATADIR= ${PREFIX}/share/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-CPPHS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- CPPHS_VERSION=${CPPHS_VERSION} \
- CPPHS_LIBDIR_REL=${CPPHS_LIBDIR_REL}
-
-MAN1= cpphs.1
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${CPPHS_LIBDIR_REL}/register.sh
- @${INSTALL_MAN} ${WRKSRC}/docs/cpphs.1 ${PREFIX}/man/man1
- @${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/docs/index.html ${DATADIR} \
- && ${INSTALL_DATA} ${WRKSRC}/docs/design ${DATADIR}
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+INSTALL_PORTDATA= ${INSTALL_DATA} ${WRKSRC}/docs/index.html ${DATADIR} \
+ && ${INSTALL_DATA} ${WRKSRC}/docs/design ${DATADIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-cpphs/pkg-plist b/devel/hs-cpphs/pkg-plist
index 80cbaac78ecf..4a4e245bad2e 100644
--- a/devel/hs-cpphs/pkg-plist
+++ b/devel/hs-cpphs/pkg-plist
@@ -1,33 +1,30 @@
@comment $FreeBSD$
bin/cpphs
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HScpphs-%%CPPHS_VERSION%%.o
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/CppIfdef.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/HashDefine.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/MacroPass.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/Options.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/Position.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/ReadFirst.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/RunCpphs.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/SymTab.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/Tokenise.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Unlit.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijer.hi
-%%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHScpphs-%%CPPHS_VERSION%%.a
-%%CPPHS_LIBDIR_REL%%/register.sh
-%%DATADIR%%/design
-%%DATADIR%%/index.html
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/CppIfdef.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/HashDefine.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/MacroPass.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/Options.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/Position.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/ReadFirst.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/RunCpphs.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/SymTab.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs/Tokenise.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Unlit.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENCE-LGPL
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators
-@dirrm %%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs
-@dirrm %%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor
-@dirrm %%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
-@dirrm %%CPPHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%CPPHS_LIBDIR_REL%%
-@dirrmtry %%DATADIR%%
-@exec /bin/sh %D/%%CPPHS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor/Cpphs
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Preprocessor
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister cpphs
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-datetime/Makefile b/devel/hs-datetime/Makefile
index acf25f7c15e7..1623d65f3bf5 100644
--- a/devel/hs-datetime/Makefile
+++ b/devel/hs-datetime/Makefile
@@ -8,68 +8,9 @@
PORTNAME= datetime
PORTVERSION= 0.1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Utilities to make Data.Time.* easier to use in Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-DATETIME_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-DATETIME_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- DATETIME_VERSION=${DATETIME_VERSION} \
- DATETIME_LIBDIR_REL=${DATETIME_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${DATETIME_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-datetime/pkg-plist b/devel/hs-datetime/pkg-plist
index d47b5bc16a7a..7771060742d2 100644
--- a/devel/hs-datetime/pkg-plist
+++ b/devel/hs-datetime/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%DATETIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/DateTime.hi
-%%DATETIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSdatetime-%%DATETIME_VERSION%%.o
-%%DATETIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSdatetime-%%DATETIME_VERSION%%.a
-%%DATETIME_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/DateTime.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYING
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%DATETIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%DATETIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%DATETIME_LIBDIR_REL%%
-@exec /bin/sh %D/%%DATETIME_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister datetime
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-deepseq/Makefile b/devel/hs-deepseq/Makefile
index 3953554b9519..620cc08d6dc8 100644
--- a/devel/hs-deepseq/Makefile
+++ b/devel/hs-deepseq/Makefile
@@ -8,68 +8,11 @@
PORTNAME= deepseq
PORTVERSION= 1.1.0.0
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Fully evaluate Haskell data structures
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-DEEPSEQ_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-DEEPSEQ_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- DEEPSEQ_VERSION=${DEEPSEQ_VERSION} \
- DEEPSEQ_LIBDIR_REL=${DEEPSEQ_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${DEEPSEQ_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-deepseq/pkg-plist b/devel/hs-deepseq/pkg-plist
index 94e62f4ab1f4..5769dea5ac45 100644
--- a/devel/hs-deepseq/pkg-plist
+++ b/devel/hs-deepseq/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/DeepSeq.hi
-%%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSdeepseq-%%DEEPSEQ_VERSION%%.o
-%%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSdeepseq-%%DEEPSEQ_VERSION%%.a
-%%DEEPSEQ_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/DeepSeq.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%DEEPSEQ_LIBDIR_REL%%
-@exec /bin/sh %D/%%DEEPSEQ_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister deepseq
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-dlist/Makefile b/devel/hs-dlist/Makefile
index 7fd2dec97ba5..d92ffc1264e7 100644
--- a/devel/hs-dlist/Makefile
+++ b/devel/hs-dlist/Makefile
@@ -8,69 +8,9 @@ PORTNAME= dlist
PORTVERSION= 0.5
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
- http://carte.kerneled.org/mirror/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= A list-like type supporting O(1) append for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-DLIST_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-DLIST_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- DLIST_VERSION=${DLIST_VERSION} \
- DLIST_LIBDIR_REL=${DLIST_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${DLIST_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-dlist/pkg-plist b/devel/hs-dlist/pkg-plist
index 53c530aa32cd..75122018eab7 100644
--- a/devel/hs-dlist/pkg-plist
+++ b/devel/hs-dlist/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%DLIST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/DList.hi
-%%DLIST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSdlist-%%DLIST_VERSION%%.o
-%%DLIST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSdlist-%%DLIST_VERSION%%.a
-%%DLIST_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/DList.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%DLIST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%DLIST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%DLIST_LIBDIR_REL%%
-@exec /bin/sh %D/%%DLIST_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister dlist
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-fgl/Makefile b/devel/hs-fgl/Makefile
index bda8320c9114..c027c6235a8b 100644
--- a/devel/hs-fgl/Makefile
+++ b/devel/hs-fgl/Makefile
@@ -8,75 +8,15 @@
PORTNAME= fgl
PORTVERSION= 5.4.2.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Martin Erwig Functional Graph Library
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-FGL_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-FGL_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- FGL_VERSION=${FGL_VERSION} \
- FGL_LIBDIR_REL=${FGL_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${FGL_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- @${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/doc/CHANGES ${DATADIR} \
- && ${INSTALL_DATA} ${WRKSRC}/doc/README ${DATADIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+INSTALL_PORTDATA= ${INSTALL_DATA} ${WRKSRC}/doc/CHANGES ${DATADIR} \
+ && ${INSTALL_DATA} ${WRKSRC}/doc/README ${DATADIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-fgl/pkg-plist b/devel/hs-fgl/pkg-plist
index 7715fa9965cd..94de4c073461 100644
--- a/devel/hs-fgl/pkg-plist
+++ b/devel/hs-fgl/pkg-plist
@@ -1,47 +1,47 @@
@comment $FreeBSD$
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Basic.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Example.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Graph.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Graphviz.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/FiniteMap.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/Heap.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/Queue.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/RootPath.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/Thread.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Monad.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Monad/IOArray.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/NodeMap.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/PatriciaTree.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/ArtPoint.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/BCC.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/BFS.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/DFS.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/Dominators.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/GVD.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/Indep.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/MST.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/MaxFlow.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/MaxFlow2.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/Monad.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/SP.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/TransClos.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Tree.hi
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSfgl-%%FGL_VERSION%%.o
-%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSfgl-%%FGL_VERSION%%.a
-%%FGL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Basic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Example.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Graph.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Graphviz.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/FiniteMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/Heap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/Queue.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/RootPath.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/Thread.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Monad/IOArray.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/NodeMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/PatriciaTree.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/ArtPoint.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/BCC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/BFS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/DFS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/Dominators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/GVD.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/Indep.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/MST.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/MaxFlow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/MaxFlow2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/SP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/TransClos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Tree.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query
-@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Monad
-@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal
-@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive
-@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph
-@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%FGL_LIBDIR_REL%%
-@exec /bin/sh %D/%%FGL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Monad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister fgl
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-filemanip/Makefile b/devel/hs-filemanip/Makefile
index 84ba76c16a1d..65603aa0f909 100644
--- a/devel/hs-filemanip/Makefile
+++ b/devel/hs-filemanip/Makefile
@@ -8,74 +8,11 @@
PORTNAME= FileManip
PORTVERSION= 0.3.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Expressive file and directory manipulation for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-FILEMANIP_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-FILEMANIP_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- FILEMANIP_VERSION=${FILEMANIP_VERSION} \
- FILEMANIP_LIBDIR_REL=${FILEMANIP_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} --constraint='base<4'
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${FILEMANIP_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CONFIGURE_ARGS+= --constraint='base<4'
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-filemanip/pkg-plist b/devel/hs-filemanip/pkg-plist
index 6f8cfc4b8762..c910327bf7e6 100644
--- a/devel/hs-filemanip/pkg-plist
+++ b/devel/hs-filemanip/pkg-plist
@@ -1,18 +1,18 @@
@comment $FreeBSD$
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSFileManip-%%FILEMANIP_VERSION%%.o
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Find.hi
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Glob.hi
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/GlobPattern.hi
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Manip.hi
-%%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSFileManip-%%FILEMANIP_VERSION%%.a
-%%FILEMANIP_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Find.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Glob.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/GlobPattern.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath/Manip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath
-@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%FILEMANIP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%FILEMANIP_LIBDIR_REL%%
-@exec /bin/sh %D/%%FILEMANIP_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/FilePath
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister FileManip
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-ghc-mtl/Makefile b/devel/hs-ghc-mtl/Makefile
index ea77e3dd028f..f3f7f0c921c3 100644
--- a/devel/hs-ghc-mtl/Makefile
+++ b/devel/hs-ghc-mtl/Makefile
@@ -8,70 +8,11 @@
PORTNAME= ghc-mtl
PORTVERSION= 1.0.1.0
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= An mtl compatible version of the Ghc-Api monads and monad-transformers
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-MonadCatchIO-mtl>=0.2.0.0:${PORTSDIR}/devel/hs-MonadCatchIO-mtl
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-MonadCatchIO-mtl>=0.2.0.0:${PORTSDIR}/devel/hs-MonadCatchIO-mtl
-
-GHC_VERSION= 6.10.4
-GHCMTL_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-GHCMTL_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- GHCMTL_VERSION=${GHCMTL_VERSION} \
- GHCMTL_LIBDIR_REL=${GHCMTL_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${GHCMTL_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= MonadCatchIO-mtl>=0.2.0.0
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-ghc-mtl/pkg-plist b/devel/hs-ghc-mtl/pkg-plist
index 8f0eb43bae29..9a3ecae29225 100644
--- a/devel/hs-ghc-mtl/pkg-plist
+++ b/devel/hs-ghc-mtl/pkg-plist
@@ -1,15 +1,15 @@
@comment $FreeBSD$
-%%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Ghc.hi
-%%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSghc-mtl-%%GHCMTL_VERSION%%.o
-%%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSghc-mtl-%%GHCMTL_VERSION%%.a
-%%GHCMTL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Ghc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
-@dirrm %%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%GHCMTL_LIBDIR_REL%%
-@exec /bin/sh %D/%%GHCMTL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister ghc-mtl
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-ghc-paths-docs/Makefile b/devel/hs-ghc-paths-docs/Makefile
index 5a0a9e58067c..21c221eb8008 100644
--- a/devel/hs-ghc-paths-docs/Makefile
+++ b/devel/hs-ghc-paths-docs/Makefile
@@ -8,40 +8,13 @@ PORTNAME= ghc-paths
PORTVERSION= 0.1.0.5
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
-PKGNAMESUFFIX= -doc
MAINTAINER= jacula@gmail.com
COMMENT= Documentation for ghc-paths
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- HsColour:${PORTSDIR}/print/hs-hscolour
-RUN_DEPENDS= hs-ghc-paths=${PORTVERSION}:${PORTSDIR}/devel/hs-ghc-paths
+CABAL_SETUP= Setup.hs
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-CABAL_CMD= runghc Setup.hs
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${CABAL_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-
-do-install:
- ${MKDIR} ${DOCSDIR}/html
- cd ${WRKSRC}/dist/doc/html/ghc-paths && ${COPYTREE_SHARE} \* ${DOCSDIR}/html
+DOCUMENTATION= yes
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-ghc-paths-docs/pkg-plist b/devel/hs-ghc-paths-docs/pkg-plist
deleted file mode 100644
index 82043f7091bd..000000000000
--- a/devel/hs-ghc-paths-docs/pkg-plist
+++ /dev/null
@@ -1,18 +0,0 @@
-@comment $FreeBSD$
-%%DOCSDIR%%/html/GHC-Paths.html
-%%DOCSDIR%%/html/doc-index.html
-%%DOCSDIR%%/html/frames.html
-%%DOCSDIR%%/html/ghc-paths.haddock
-%%DOCSDIR%%/html/haddock-util.js
-%%DOCSDIR%%/html/haddock.css
-%%DOCSDIR%%/html/haskell_icon.gif
-%%DOCSDIR%%/html/index-frames.html
-%%DOCSDIR%%/html/index.html
-%%DOCSDIR%%/html/mini_GHC-Paths.html
-%%DOCSDIR%%/html/minus.gif
-%%DOCSDIR%%/html/plus.gif
-%%DOCSDIR%%/html/src/GHC-Paths.html
-%%DOCSDIR%%/html/src/hscolour.css
-@dirrm %%DOCSDIR%%/html/src
-@dirrm %%DOCSDIR%%/html
-@dirrmtry %%DOCSDIR%%
diff --git a/devel/hs-ghc-paths/Makefile b/devel/hs-ghc-paths/Makefile
index 93dc86eac76b..cc837e0253fb 100644
--- a/devel/hs-ghc-paths/Makefile
+++ b/devel/hs-ghc-paths/Makefile
@@ -6,50 +6,17 @@
PORTNAME= ghc-paths
PORTVERSION= 0.1.0.5
+PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Utility looking for GHC installation directories
-.if !defined(SLAVE)
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-.else
-NO_PKG_REGISTER=
-.endif
-
-GHC_VERSION= 6.10.4
-GHC-PATHS_VERSION= ${PORTVERSION}
-
-CABAL_CMD= runghc Setup.hs
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-GHC-PATHS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- GHC-PATHS_VERSION=${GHC-PATHS_VERSION} \
- GHC-PATHS_LIBDIR_REL=${GHC-PATHS_LIBDIR_REL}
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${CABAL_CMD} build
-.if !defined(SLAVE)
- cd ${WRKSRC} && ${CABAL_CMD} register --gen-script
-.endif
-
-do-install:
- cd ${WRKSRC} && ${CABAL_CMD} install
+CABAL_SETUP= Setup.hs
-post-install:
-.if !defined(SLAVE)
- ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${GHC-PATHS_LIBDIR_REL}/register.sh
+.if defined(SLAVE)
+GHC_CMD= ghc
.endif
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-ghc-paths/pkg-plist b/devel/hs-ghc-paths/pkg-plist
index 7068c570320c..74d42dd9d1ab 100644
--- a/devel/hs-ghc-paths/pkg-plist
+++ b/devel/hs-ghc-paths/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%GHC-PATHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/GHC/Paths.hi
-%%GHC-PATHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSghc-paths-%%GHC-PATHS_VERSION%%.o
-%%GHC-PATHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSghc-paths-%%GHC-PATHS_VERSION%%.a
-%%GHC-PATHS_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/GHC/Paths.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%DOCSDIR%%/LICENSE
@dirrmtry %%DOCSDIR%%
-@dirrm %%GHC-PATHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/GHC
-@dirrm %%GHC-PATHS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%GHC-PATHS_LIBDIR_REL%%
-@exec /bin/sh %D/%%GHC-PATHS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/GHC
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister ghc-paths
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-haddock-docs/Makefile b/devel/hs-haddock-docs/Makefile
index 9b3d06654d11..042af190441c 100644
--- a/devel/hs-haddock-docs/Makefile
+++ b/devel/hs-haddock-docs/Makefile
@@ -9,20 +9,15 @@ PORTNAME= haddock
PORTVERSION= 2.4.2
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://www.haskell.org/haddock/dist/ \
- http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
-PKGNAMESUFFIX= -doc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Documentation for Haddock
-USE_GMAKE= yes
USE_AUTOTOOLS= autoconf:262:env
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- HsColour:${PORTSDIR}/print/hs-hscolour \
- hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths
+DOCUMENTATION= yes
+XMLDOCS= doc/haddock:users_guide
+SHOW_PKGMSG= yes
PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
.if ${PORT_HADDOCK} == 11
@@ -31,50 +26,7 @@ IGNORE+= \n\t The ${LOCALBASE}/bin/haddock executable was already installed\n
IGNORE+= \t by the lang/ghc port, setting the option WITH_HADDOCK.\n
IGNORE+= \t You have to reinstall this last one with the right option\n
IGNORE+= \t WITHOUT_HADDOCK.\n\c
-.else
-BUILD_DEPENDS+= hs-haddock=${PKGVERSION}:${PORTSDIR}/devel/hs-haddock
-RUN_DEPENDS= hs-haddock=${PKGVERSION}:${PORTSDIR}/devel/hs-haddock
.endif
-BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \
- ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
-
-WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//g}
-CONFIGURE_ARGS= --prefix=${PREFIX}
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-CABAL_CMD= runghc Setup.lhs
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-
-.SILENT:
-
-post-patch:
- @${REINPLACE_CMD} -e 's|/usr/local/share/sgml/catalog|| ; \
- s|/usr/local/share/xsl/docbook|${LOCALBASE}/share/xsl/docbook|' \
- ${WRKSRC}/doc/configure.ac
-
-do-configure:
- cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --haddock-options=-w ${CONFIGURE_ARGS}
- cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${CABAL_CMD} haddock --executables --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
- cd ${WRKSRC}/doc && \
- ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html
-
-do-install:
- ${MKDIR} ${DOCSDIR}/html && \
- cd ${WRKSRC}/dist/doc/html/haddock && ${COPYTREE_SHARE} \* ${DOCSDIR}/html
- ${MKDIR} ${DOCSDIR}/users_guide && \
- cd ${WRKSRC}/doc/haddock && ${COPYTREE_SHARE} \* ${DOCSDIR}/users_guide
-
-post-install:
- @${ECHO_MSG}
- @${CAT} ${PKGMESSAGE}
- @${ECHO_MSG}
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-haddock-docs/pkg-message b/devel/hs-haddock-docs/pkg-message
index 941bf125540c..0e31206187a0 100644
--- a/devel/hs-haddock-docs/pkg-message
+++ b/devel/hs-haddock-docs/pkg-message
@@ -1,5 +1,3 @@
-===================================================================
-
WARNING: if the lang/ghc port doesn't install the hyperlinkable
documentation for its libraries, then haddock can't know about
these. But also in this case haddock can't handle recursive
@@ -7,5 +5,3 @@
In general haddock detects and reports as an error recursive
modules and emits chatting warnings listing all the identifiers
it couldn't resolve.
-
-===================================================================
diff --git a/devel/hs-haddock-docs/pkg-plist b/devel/hs-haddock-docs/pkg-plist
deleted file mode 100644
index cec54ce8190e..000000000000
--- a/devel/hs-haddock-docs/pkg-plist
+++ /dev/null
@@ -1,123 +0,0 @@
-@comment $FreeBSD$
-%%DOCSDIR%%/html/Distribution-Haddock.html
-%%DOCSDIR%%/html/doc-index.html
-%%DOCSDIR%%/html/frames.html
-%%DOCSDIR%%/html/haddock-util.js
-%%DOCSDIR%%/html/haddock.css
-%%DOCSDIR%%/html/haddock.haddock
-%%DOCSDIR%%/html/haddock/Haddock-Backends-DevHelp.html
-%%DOCSDIR%%/html/haddock/Haddock-Backends-HH.html
-%%DOCSDIR%%/html/haddock/Haddock-Backends-HH2.html
-%%DOCSDIR%%/html/haddock/Haddock-Backends-HaddockDB.html
-%%DOCSDIR%%/html/haddock/Haddock-Backends-Hoogle.html
-%%DOCSDIR%%/html/haddock/Haddock-Backends-Html.html
-%%DOCSDIR%%/html/haddock/Haddock-Exception.html
-%%DOCSDIR%%/html/haddock/Haddock-GHC-Typecheck.html
-%%DOCSDIR%%/html/haddock/Haddock-GHC.html
-%%DOCSDIR%%/html/haddock/Haddock-Interface-AttachInstances.html
-%%DOCSDIR%%/html/haddock/Haddock-Interface-Create.html
-%%DOCSDIR%%/html/haddock/Haddock-Interface-Rename.html
-%%DOCSDIR%%/html/haddock/Haddock-Interface.html
-%%DOCSDIR%%/html/haddock/Haddock-InterfaceFile.html
-%%DOCSDIR%%/html/haddock/Haddock-ModuleTree.html
-%%DOCSDIR%%/html/haddock/Haddock-Options.html
-%%DOCSDIR%%/html/haddock/Haddock-Utils-BlockTable.html
-%%DOCSDIR%%/html/haddock/Haddock-Utils-FastMutInt2.html
-%%DOCSDIR%%/html/haddock/Haddock-Utils-Html.html
-%%DOCSDIR%%/html/haddock/Haddock-Utils.html
-%%DOCSDIR%%/html/haddock/Haddock-Version.html
-%%DOCSDIR%%/html/haddock/Main.html
-%%DOCSDIR%%/html/haddock/Paths_haddock.html
-%%DOCSDIR%%/html/haddock/doc-index.html
-%%DOCSDIR%%/html/haddock/frames.html
-%%DOCSDIR%%/html/haddock/haddock-util.js
-%%DOCSDIR%%/html/haddock/haddock.css
-%%DOCSDIR%%/html/haddock/haskell_icon.gif
-%%DOCSDIR%%/html/haddock/index-frames.html
-%%DOCSDIR%%/html/haddock/index.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-DevHelp.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-HH.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-HH2.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-HaddockDB.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-Hoogle.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-Html.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Exception.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-GHC-Typecheck.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-GHC.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Interface-AttachInstances.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Interface-Create.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Interface-Rename.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Interface.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-InterfaceFile.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-ModuleTree.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Options.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Utils-BlockTable.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Utils-FastMutInt2.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Utils-Html.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Utils.html
-%%DOCSDIR%%/html/haddock/mini_Haddock-Version.html
-%%DOCSDIR%%/html/haddock/mini_Main.html
-%%DOCSDIR%%/html/haddock/mini_Paths_haddock.html
-%%DOCSDIR%%/html/haddock/minus.gif
-%%DOCSDIR%%/html/haddock/plus.gif
-%%DOCSDIR%%/html/haddock/src/Haddock-Backends-DevHelp.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Backends-HH.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Backends-HH2.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Backends-HaddockDB.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Backends-Hoogle.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Backends-Html.html
-%%DOCSDIR%%/html/haddock/src/Haddock-DocName.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Exception.html
-%%DOCSDIR%%/html/haddock/src/Haddock-GHC-Typecheck.html
-%%DOCSDIR%%/html/haddock/src/Haddock-GHC-Utils.html
-%%DOCSDIR%%/html/haddock/src/Haddock-GHC.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Interface-AttachInstances.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Interface-Create.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Interface-Rename.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Interface.html
-%%DOCSDIR%%/html/haddock/src/Haddock-InterfaceFile.html
-%%DOCSDIR%%/html/haddock/src/Haddock-ModuleTree.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Options.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Types.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Utils-BlockTable.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Utils-FastMutInt2.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Utils-Html.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Utils.html
-%%DOCSDIR%%/html/haddock/src/Haddock-Version.html
-%%DOCSDIR%%/html/haddock/src/Main.html
-%%DOCSDIR%%/html/haddock/src/hscolour.css
-%%DOCSDIR%%/html/haskell_icon.gif
-%%DOCSDIR%%/html/index-frames.html
-%%DOCSDIR%%/html/index.html
-%%DOCSDIR%%/html/mini_Distribution-Haddock.html
-%%DOCSDIR%%/html/minus.gif
-%%DOCSDIR%%/html/plus.gif
-%%DOCSDIR%%/html/src/Distribution-Haddock.html
-%%DOCSDIR%%/html/src/Haddock-DocName.html
-%%DOCSDIR%%/html/src/Haddock-Exception.html
-%%DOCSDIR%%/html/src/Haddock-GHC-Utils.html
-%%DOCSDIR%%/html/src/Haddock-InterfaceFile.html
-%%DOCSDIR%%/html/src/Haddock-Types.html
-%%DOCSDIR%%/html/src/Haddock-Utils.html
-%%DOCSDIR%%/html/src/hscolour.css
-%%DOCSDIR%%/users_guide/ch01s03.html
-%%DOCSDIR%%/users_guide/ch03s02.html
-%%DOCSDIR%%/users_guide/ch03s03.html
-%%DOCSDIR%%/users_guide/ch03s04.html
-%%DOCSDIR%%/users_guide/ch03s05.html
-%%DOCSDIR%%/users_guide/ch03s08.html
-%%DOCSDIR%%/users_guide/fptools.css
-%%DOCSDIR%%/users_guide/hyperlinking.html
-%%DOCSDIR%%/users_guide/index.html
-%%DOCSDIR%%/users_guide/introduction.html
-%%DOCSDIR%%/users_guide/invoking.html
-%%DOCSDIR%%/users_guide/ix01.html
-%%DOCSDIR%%/users_guide/license.html
-%%DOCSDIR%%/users_guide/markup.html
-%%DOCSDIR%%/users_guide/module-attributes.html
-@dirrm %%DOCSDIR%%/users_guide
-@dirrm %%DOCSDIR%%/html/src
-@dirrm %%DOCSDIR%%/html/haddock/src
-@dirrm %%DOCSDIR%%/html/haddock
-@dirrm %%DOCSDIR%%/html
-@dirrmtry %%DOCSDIR%%
diff --git a/devel/hs-haddock/Makefile b/devel/hs-haddock/Makefile
index 526afbf8a325..a820ad72e6fc 100644
--- a/devel/hs-haddock/Makefile
+++ b/devel/hs-haddock/Makefile
@@ -8,39 +8,15 @@ PORTNAME= haddock
PORTVERSION= 2.4.2
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://www.haskell.org/haddock/dist/ \
- http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= A documentation tool for Haskell
-.if !defined(SLAVE)
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-.else
-NO_PKG_REGISTER=
-.endif
-
-WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//g}
-
-GHC_VERSION= 6.10.4
-HADDOCK_VERSION= ${PORTVERSION}
+USE_HACKAGE= ghc-paths
-CABAL_CMD= runghc Setup.lhs
+EXECUTABLE= haddock
-DATADIR= ${PREFIX}/share/${DISTNAME}
-HADDOCK_LIBDIR_REL= lib/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- DATADIR_REL=${DATADIR_REL} \
- HADDOCK_LIBDIR_REL=${HADDOCK_LIBDIR_REL} \
- HADDOCK_VERSION=${HADDOCK_VERSION} \
- DOCSDIR_REL=${DOCSDIR_REL}
+PORTDATA= *
.include <bsd.port.pre.mk>
@@ -59,31 +35,9 @@ IGNORE+= \t the ${LOCALBASE}/bin/haddock executable, for the WITH_HADDOCK\n
IGNORE+= \t option was set in it. You have to set the WITHOUT_HADDOCK\n
IGNORE+= \t options in lang/ghc before to install devel/hs-haddock.\n\c
.endif
+.else
+GHC_CMD= ghc
.endif
-.SILENT:
-
-post-patch:
- @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
- ${WRKSRC}/doc/configure.ac
-
-do-configure:
- cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${CABAL_CMD} build
-.if !defined(SLAVE)
- cd ${WRKSRC} && ${CABAL_CMD} register --gen-script
-.endif
-
-do-install:
- cd ${WRKSRC} && ${CABAL_CMD} install
-
-post-install:
- ${STRIP_CMD} ${PREFIX}/bin/haddock
-.if !defined(SLAVE)
- ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${HADDOCK_LIBDIR_REL}/register.sh
-.endif
- @${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/devel/hs-haddock/pkg-plist b/devel/hs-haddock/pkg-plist
index c38e4b2b0a98..b3c29ec7ce95 100644
--- a/devel/hs-haddock/pkg-plist
+++ b/devel/hs-haddock/pkg-plist
@@ -1,32 +1,23 @@
@comment $FreeBSD$
bin/haddock
-%%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Haddock.hi
-%%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShaddock-%%HADDOCK_VERSION%%.o
-%%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/DocName.hi
-%%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/Exception.hi
-%%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/GHC/Utils.hi
-%%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/InterfaceFile.hi
-%%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/Types.hi
-%%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/Utils.hi
-%%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShaddock-%%HADDOCK_VERSION%%.a
-%%HADDOCK_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Haddock.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/DocName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/Exception.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/GHC/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/InterfaceFile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%DOCSDIR%%/LICENSE
-%%DATADIR_REL%%/html/frames.html
-%%DATADIR_REL%%/html/haddock-DEBUG.css
-%%DATADIR_REL%%/html/haddock-util.js
-%%DATADIR_REL%%/html/haddock.css
-%%DATADIR_REL%%/html/haskell_icon.gif
-%%DATADIR_REL%%/html/minus.gif
-%%DATADIR_REL%%/html/plus.gif
-@dirrm %%DATADIR_REL%%/html
-@dirrm %%DATADIR_REL%%
@dirrmtry %%DOCSDIR%%
-@dirrm %%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/GHC
-@dirrm %%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock
-@dirrm %%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution
-@dirrm %%HADDOCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HADDOCK_LIBDIR_REL%%
-@exec /bin/sh %%LOCALBASE%%/%%HADDOCK_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock/GHC
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Haddock
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %%LOCALBASE%%/bin/ghc-pkg unregister haddock
+@unexec %%LOCALBASE%%/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-happy/Makefile b/devel/hs-happy/Makefile
index a4e9969b1779..d51ef0670fb4 100644
--- a/devel/hs-happy/Makefile
+++ b/devel/hs-happy/Makefile
@@ -8,57 +8,19 @@ PORTNAME= happy
PORTVERSION= 1.18.4
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= An LALR(1) parser generator for the functional language Haskell
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-.if !defined(NOPORTDOCS)
-BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \
- ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
-PLIST_SUB+= RMLIC="@comment "
-.else
-PLIST_SUB+= RMLIC=""
-.endif
-
-PLIST_SUB+= SUBDIR=share/${PORTNAME}-${PORTVERSION}
-DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
-PORTDOCS= LICENSE html
-EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${PORTVERSION}
-PORTEXAMPLES= *
-
-USE_GMAKE= yes
+XMLDOCS= doc/happy:html
USE_AUTOTOOLS= autoconf:262:env
-CONFIGURE_ARGS= --ghc --prefix=${PREFIX}
-
-post-patch:
- @${REINPLACE_CMD} -e 's+%%LOCALBASE%%+${LOCALBASE}+' ${WRKSRC}/doc/configure.ac
-
-do-configure:
- cd ${WRKSRC} && runhaskell Setup.lhs configure ${CONFIGURE_ARGS}
- cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && runhaskell Setup.lhs build
-.if !defined(NOPORTDOCS)
- @(cd ${WRKSRC}/doc && \
- ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html)
-.endif
-do-install:
- cd ${WRKSRC} && runhaskell Setup.lhs install
+STANDALONE= yes
+EXECUTABLE= happy
-post-install:
- @${STRIP_CMD} ${PREFIX}/bin/happy
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
-.endif
-.if !defined(NOPORTDOCS)
- @(cd ${WRKSRC}/doc && ${CP} -R happy/ ${DOCSDIR}/html)
-.endif
+PORTDATA= *
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-happy/pkg-plist b/devel/hs-happy/pkg-plist
index 702020b2d524..23bafdcccd94 100644
--- a/devel/hs-happy/pkg-plist
+++ b/devel/hs-happy/pkg-plist
@@ -1,18 +1,4 @@
@comment $FreeBSD$
bin/happy
-%%SUBDIR%%/GLR_Base
-%%SUBDIR%%/GLR_Lib
-%%SUBDIR%%/GLR_Lib-ghc
-%%SUBDIR%%/GLR_Lib-ghc-debug
-%%SUBDIR%%/HappyTemplate
-%%SUBDIR%%/HappyTemplate-arrays
-%%SUBDIR%%/HappyTemplate-arrays-coerce
-%%SUBDIR%%/HappyTemplate-arrays-coerce-debug
-%%SUBDIR%%/HappyTemplate-arrays-debug
-%%SUBDIR%%/HappyTemplate-arrays-ghc
-%%SUBDIR%%/HappyTemplate-arrays-ghc-debug
-%%SUBDIR%%/HappyTemplate-coerce
-%%SUBDIR%%/HappyTemplate-ghc
-@dirrm %%SUBDIR%%
-%%RMLIC%%%%DOCSDIR%%/LICENSE
-%%RMLIC%%@dirrm %%DOCSDIR%%
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
diff --git a/devel/hs-haskeline/Makefile b/devel/hs-haskeline/Makefile
index e8c7c3dbc10a..fa2b9c15c67a 100644
--- a/devel/hs-haskeline/Makefile
+++ b/devel/hs-haskeline/Makefile
@@ -7,73 +7,13 @@
PORTNAME= haskeline
PORTVERSION= 0.6.2.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A command-line interface for user input, written in Haskell
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc
-
-GHC_VERSION= 6.10.4
-HASKELINE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HASKELINE_LIBDIR_REL= lib/${DISTNAME}
-
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= utf8-string>=0.3.6
USE_ICONV= yes
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HASKELINE_VERSION=${HASKELINE_VERSION} \
- HASKELINE_LIBDIR_REL=${HASKELINE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --extra-include-dirs="${LOCALBASE}/include" --extra-lib-dirs="${LOCALBASE}/lib"
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HASKELINE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-haskeline/pkg-plist b/devel/hs-haskeline/pkg-plist
index abfb1245d88c..25766ceb2308 100644
--- a/devel/hs-haskeline/pkg-plist
+++ b/devel/hs-haskeline/pkg-plist
@@ -1,44 +1,44 @@
@comment $FreeBSD$
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShaskeline-%%HASKELINE_VERSION%%.o
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend/DumbTerm.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend/IConv.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend/Posix.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command/Completion.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command/History.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command/KillRing.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command/Undo.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Completion.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Directory.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Emacs.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Encoding.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/History.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/IO.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/InputT.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Key.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/LineState.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/MonadException.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Monads.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Prefs.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/RunCommand.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Term.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Vi.hi
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/h_iconv.h
-%%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShaskeline-%%HASKELINE_VERSION%%.a
-%%HASKELINE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend/DumbTerm.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend/IConv.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend/Posix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command/Completion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command/History.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command/KillRing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command/Undo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Completion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Directory.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Emacs.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Encoding.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/History.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/IO.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/InputT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Key.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/LineState.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/MonadException.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Monads.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Prefs.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/RunCommand.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Term.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Vi.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/h_iconv.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
-@dirrm %%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command
-@dirrm %%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend
-@dirrm %%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline
-@dirrm %%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console
-@dirrm %%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%HASKELINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HASKELINE_LIBDIR_REL%%
-@exec /bin/sh %D/%%HASKELINE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Command
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline/Backend
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Haskeline
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister haskeline
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-haskell-src-exts/Makefile b/devel/hs-haskell-src-exts/Makefile
index c097b2aea99e..3eba31ceb14a 100644
--- a/devel/hs-haskell-src-exts/Makefile
+++ b/devel/hs-haskell-src-exts/Makefile
@@ -8,71 +8,13 @@
PORTNAME= haskell-src-exts
PORTVERSION= 1.5.3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Manipulating Haskell source
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-happy>=1.17:${PORTSDIR}/devel/hs-happy \
- hs-cpphs>=1.3:${PORTSDIR}/devel/hs-cpphs
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-cpphs>=1.3:${PORTSDIR}/devel/hs-cpphs
-
-GHC_VERSION= 6.10.4
-HASKELLSRCEXTS_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HASKELLSRCEXTS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HASKELLSRCEXTS_VERSION=${HASKELLSRCEXTS_VERSION} \
- HASKELLSRCEXTS_LIBDIR_REL=${HASKELLSRCEXTS_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HASKELLSRCEXTS_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+USE_HAPPY= yes
+USE_HACKAGE= cpphs>=1.3
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-haskell-src-exts/pkg-plist b/devel/hs-haskell-src-exts/pkg-plist
index c85f12cadb7c..8e4fa943a64b 100644
--- a/devel/hs-haskell-src-exts/pkg-plist
+++ b/devel/hs-haskell-src-exts/pkg-plist
@@ -1,37 +1,37 @@
@comment $FreeBSD$
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShaskell-src-exts-%%HASKELLSRCEXTS_VERSION%%.o
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/Build.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/ExactPrint.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/Fixity.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/Simplify.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/Syntax.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Build.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Comments.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/ExtScheme.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Extension.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Fixity.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/InternalParser.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Lexer.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/ParseMonad.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/ParseSyntax.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/ParseUtils.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Parser.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Pretty.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/SrcLoc.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Syntax.hi
-%%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShaskell-src-exts-%%HASKELLSRCEXTS_VERSION%%.a
-%%HASKELLSRCEXTS_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/Build.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/ExactPrint.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/Fixity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/Simplify.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated/Syntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Build.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Comments.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/ExtScheme.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Extension.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Fixity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/InternalParser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Lexer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/ParseMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/ParseSyntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/ParseUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/SrcLoc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Syntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated
-@dirrm %%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts
-@dirrm %%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell
-@dirrm %%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
-@dirrm %%HASKELLSRCEXTS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HASKELLSRCEXTS_LIBDIR_REL%%
-@exec /bin/sh %D/%%HASKELLSRCEXTS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts/Annotated
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Exts
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister haskell-src-exts
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-hint/Makefile b/devel/hs-hint/Makefile
index f162ee938f4b..19f45b47e07c 100644
--- a/devel/hs-hint/Makefile
+++ b/devel/hs-hint/Makefile
@@ -8,89 +8,18 @@
PORTNAME= hint
PORTVERSION= 0.3.2.1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Runtime Haskell interpreter (GHC API wrapper)
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-MonadCatchIO-mtl>=0.2:${PORTSDIR}/devel/hs-MonadCatchIO-mtl \
- hs-ghc-mtl>=1.0.1.0:${PORTSDIR}/devel/hs-ghc-mtl
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-MonadCatchIO-mtl>=0.2:${PORTSDIR}/devel/hs-MonadCatchIO-mtl \
- hs-ghc-mtl>=1.0.1.0:${PORTSDIR}/devel/hs-ghc-mtl
+USE_HACKAGE= ghc-mtl>=1.0.1.0 ghc-paths MonadCatchIO-mtl>=0.2 utf8-string
-GHC_VERSION= 6.10.4
-HINT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
-PORTEXAMPLES= *
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HINT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HINT_VERSION=${HINT_VERSION} \
- HINT_LIBDIR_REL=${HINT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HINT_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- @${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DATADIR} \
- && ${INSTALL_DATA} ${WRKSRC}/Changes ${DATADIR}
-.endif
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
+
+PORTDATA= *
+INSTALL_PORTDATA= ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DATADIR} \
+ && ${INSTALL_DATA} ${WRKSRC}/Changes ${DATADIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-hint/pkg-plist b/devel/hs-hint/pkg-plist
index 3c524569ddb6..5ece040f43c9 100644
--- a/devel/hs-hint/pkg-plist
+++ b/devel/hs-hint/pkg-plist
@@ -1,36 +1,36 @@
@comment $FreeBSD$
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShint-%%HINT_VERSION%%.o
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Base.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Compat.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Configuration.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Context.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Conversions.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Eval.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Extension.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/GHC.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/InterpreterT.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Parsers.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Reflection.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Sandbox.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Typecheck.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Util.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/Extension.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/GHC.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/GHC/Unsafe.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/Unsafe.hi
-%%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShint-%%HINT_VERSION%%.a
-%%HINT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Compat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Configuration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Context.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Conversions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Eval.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Extension.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/GHC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/InterpreterT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Parsers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Reflection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Sandbox.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Typecheck.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint/Util.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/Extension.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/GHC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/GHC/Unsafe.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/Unsafe.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/GHC
-@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter
-@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell
-@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
-@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint
-@dirrm %%HINT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HINT_LIBDIR_REL%%
-@exec /bin/sh %D/%%HINT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter/GHC
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/Interpreter
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Hint
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister hint
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-hoogle/Makefile b/devel/hs-hoogle/Makefile
index 4cb54464bbca..be87bef8f935 100644
--- a/devel/hs-hoogle/Makefile
+++ b/devel/hs-hoogle/Makefile
@@ -9,79 +9,17 @@ PORTNAME= hoogle
PORTVERSION= 4.0.7
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell API Search
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-safe>=0.2:${PORTSDIR}/devel/hs-safe \
- hs-uniplate>=1.2.0.3:${PORTSDIR}/devel/hs-uniplate
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-safe>=0.2:${PORTSDIR}/devel/hs-safe \
- hs-uniplate>=1.2.0.3:${PORTSDIR}/devel/hs-uniplate
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= safe uniplate
-GHC_VERSION= 6.10.4
-HOOGLE_VERSION= ${PORTVERSION}
+STANDALONE= yes
+EXECUTABLE= hoogle
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
PORTDATA= *
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HOOGLE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HOOGLE_VERSION=${HOOGLE_VERSION} \
- HOOGLE_LIBDIR_REL=${HOOGLE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README.txt ${DATADIR}
-.endif
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-hslogger/Makefile b/devel/hs-hslogger/Makefile
index 2891e64f753b..34fbbfbb5b32 100644
--- a/devel/hs-hslogger/Makefile
+++ b/devel/hs-hslogger/Makefile
@@ -8,68 +8,11 @@
PORTNAME= hslogger
PORTVERSION= 1.0.7
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Versatile logging framework for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-HSLOGGER_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSLOGGER_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSLOGGER_VERSION=${HSLOGGER_VERSION} \
- HSLOGGER_LIBDIR_REL=${HSLOGGER_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSLOGGER_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-hslogger/pkg-plist b/devel/hs-hslogger/pkg-plist
index e5fcf9ba8fce..14d30e6445d6 100644
--- a/devel/hs-hslogger/pkg-plist
+++ b/devel/hs-hslogger/pkg-plist
@@ -1,22 +1,22 @@
@comment $FreeBSD$
-%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShslogger-%%HSLOGGER_VERSION%%.o
-%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log.hi
-%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler.hi
-%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Growl.hi
-%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Log4jXML.hi
-%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Simple.hi
-%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Syslog.hi
-%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Logger.hi
-%%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShslogger-%%HSLOGGER_VERSION%%.a
-%%HSLOGGER_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Growl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Log4jXML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Simple.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler/Syslog.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Logger.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler
-@dirrm %%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log
-@dirrm %%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%HSLOGGER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSLOGGER_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSLOGGER_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log/Handler
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Log
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister hslogger
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-language-c-ghc/Makefile b/devel/hs-language-c-ghc/Makefile
index bdae45871d6e..822d52c46ba3 100644
--- a/devel/hs-language-c-ghc/Makefile
+++ b/devel/hs-language-c-ghc/Makefile
@@ -9,71 +9,15 @@ PORTNAME= language-c
PORTVERSION= 0.3.1.1
PORTREVISION= 2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Analysis and generation of C code in Haskell
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- alex:${PORTSDIR}/devel/hs-alex \
- happy:${PORTSDIR}/devel/hs-happy
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-LANGUAGEC_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-LANGUAGEC_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- LANGUAGEC_VERSION=${LANGUAGEC_VERSION} \
- LANGUAGEC_LIBDIR_REL=${LANGUAGEC_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${LANGUAGEC_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_ALEX= yes
+USE_HAPPY= yes
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-language-c-ghc/pkg-plist b/devel/hs-language-c-ghc/pkg-plist
index f6ae49bbf4a8..67168498c5c7 100644
--- a/devel/hs-language-c-ghc/pkg-plist
+++ b/devel/hs-language-c-ghc/pkg-plist
@@ -1,51 +1,51 @@
@comment $FreeBSD$
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSlanguage-c-%%LANGUAGEC_VERSION%%.o
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/AstAnalysis.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/Debug.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/DeclAnalysis.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/DefTable.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/Export.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/NameSpaceMap.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/SemError.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/SemRep.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/TravMonad.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Error.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Ident.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/InputStream.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Name.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Node.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Position.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/RList.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Builtin.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Lexer.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Parser.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/ParserMonad.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Tokens.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Pretty.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/AST.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/Constants.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/Ops.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System/GCC.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System/Preprocess.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSlanguage-c-%%LANGUAGEC_VERSION%%.a
-%%LANGUAGEC_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/AstAnalysis.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/Debug.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/DeclAnalysis.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/DefTable.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/Export.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/NameSpaceMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/SemError.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/SemRep.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/TravMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Error.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Ident.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/InputStream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Name.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Node.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Position.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/RList.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Builtin.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Lexer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/ParserMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/AST.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/Constants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/Ops.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System/GCC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System/Preprocess.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%LANGUAGEC_LIBDIR_REL%%
-@exec /bin/sh %D/%%LANGUAGEC_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister language-c
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-language-c/Makefile b/devel/hs-language-c/Makefile
index bdae45871d6e..822d52c46ba3 100644
--- a/devel/hs-language-c/Makefile
+++ b/devel/hs-language-c/Makefile
@@ -9,71 +9,15 @@ PORTNAME= language-c
PORTVERSION= 0.3.1.1
PORTREVISION= 2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Analysis and generation of C code in Haskell
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- alex:${PORTSDIR}/devel/hs-alex \
- happy:${PORTSDIR}/devel/hs-happy
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-LANGUAGEC_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-LANGUAGEC_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- LANGUAGEC_VERSION=${LANGUAGEC_VERSION} \
- LANGUAGEC_LIBDIR_REL=${LANGUAGEC_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${LANGUAGEC_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_ALEX= yes
+USE_HAPPY= yes
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-language-c/pkg-plist b/devel/hs-language-c/pkg-plist
index f6ae49bbf4a8..67168498c5c7 100644
--- a/devel/hs-language-c/pkg-plist
+++ b/devel/hs-language-c/pkg-plist
@@ -1,51 +1,51 @@
@comment $FreeBSD$
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSlanguage-c-%%LANGUAGEC_VERSION%%.o
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/AstAnalysis.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/Debug.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/DeclAnalysis.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/DefTable.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/Export.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/NameSpaceMap.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/SemError.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/SemRep.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/TravMonad.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Error.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Ident.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/InputStream.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Name.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Node.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Position.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/RList.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Builtin.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Lexer.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Parser.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/ParserMonad.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Tokens.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Pretty.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/AST.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/Constants.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/Ops.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System/GCC.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System/Preprocess.hi
-%%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSlanguage-c-%%LANGUAGEC_VERSION%%.a
-%%LANGUAGEC_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/AstAnalysis.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/Debug.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/DeclAnalysis.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/DefTable.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/Export.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/NameSpaceMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/SemError.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/SemRep.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis/TravMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Error.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Ident.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/InputStream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Name.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Node.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/Position.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data/RList.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Builtin.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Lexer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/ParserMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/AST.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/Constants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax/Ops.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System/GCC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System/Preprocess.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
-@dirrm %%LANGUAGEC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%LANGUAGEC_LIBDIR_REL%%
-@exec /bin/sh %D/%%LANGUAGEC_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Syntax
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Parser
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C/Analysis
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/C
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister language-c
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-lazysmallcheck-ghc/Makefile b/devel/hs-lazysmallcheck-ghc/Makefile
index 986be90629e0..52766ad9abec 100644
--- a/devel/hs-lazysmallcheck-ghc/Makefile
+++ b/devel/hs-lazysmallcheck-ghc/Makefile
@@ -8,76 +8,15 @@
PORTNAME= lazysmallcheck
PORTVERSION= 0.5
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= A library for demand-driven testing of Haskell programs
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-LAZYSMALLCHECK_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-LAZYSMALLCHECK_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- LAZYSMALLCHECK_VERSION=${LAZYSMALLCHECK_VERSION} \
- LAZYSMALLCHECK_LIBDIR_REL=${LAZYSMALLCHECK_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-PORTEXAMPLES= *
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${LAZYSMALLCHECK_LIBDIR_REL}/register.sh
-
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-lazysmallcheck-ghc/pkg-plist b/devel/hs-lazysmallcheck-ghc/pkg-plist
index 43086f041d18..492b19a8767f 100644
--- a/devel/hs-lazysmallcheck-ghc/pkg-plist
+++ b/devel/hs-lazysmallcheck-ghc/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSlazysmallcheck-%%LAZYSMALLCHECK_VERSION%%.o
-%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck.hi
-%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSlazysmallcheck-%%LAZYSMALLCHECK_VERSION%%.a
-%%LAZYSMALLCHECK_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
-@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%
-@exec /bin/sh %D/%%LAZYSMALLCHECK_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister lazysmallcheck
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-lazysmallcheck/Makefile b/devel/hs-lazysmallcheck/Makefile
index 986be90629e0..52766ad9abec 100644
--- a/devel/hs-lazysmallcheck/Makefile
+++ b/devel/hs-lazysmallcheck/Makefile
@@ -8,76 +8,15 @@
PORTNAME= lazysmallcheck
PORTVERSION= 0.5
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= A library for demand-driven testing of Haskell programs
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-LAZYSMALLCHECK_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-LAZYSMALLCHECK_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- LAZYSMALLCHECK_VERSION=${LAZYSMALLCHECK_VERSION} \
- LAZYSMALLCHECK_LIBDIR_REL=${LAZYSMALLCHECK_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-PORTEXAMPLES= *
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${LAZYSMALLCHECK_LIBDIR_REL}/register.sh
-
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-lazysmallcheck/pkg-plist b/devel/hs-lazysmallcheck/pkg-plist
index 43086f041d18..492b19a8767f 100644
--- a/devel/hs-lazysmallcheck/pkg-plist
+++ b/devel/hs-lazysmallcheck/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSlazysmallcheck-%%LAZYSMALLCHECK_VERSION%%.o
-%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck.hi
-%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSlazysmallcheck-%%LAZYSMALLCHECK_VERSION%%.a
-%%LAZYSMALLCHECK_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
-@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%
-@exec /bin/sh %D/%%LAZYSMALLCHECK_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister lazysmallcheck
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-mmap/Makefile b/devel/hs-mmap/Makefile
index d3f592693261..6bcdeba07444 100644
--- a/devel/hs-mmap/Makefile
+++ b/devel/hs-mmap/Makefile
@@ -7,68 +7,11 @@
PORTNAME= mmap
PORTVERSION= 0.5.4
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Memory mapped files for POSIX and Windows
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-MMAP_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-MMAP_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- MMAP_VERSION=${MMAP_VERSION} \
- MMAP_LIBDIR_REL=${MMAP_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${MMAP_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-mmap/pkg-plist b/devel/hs-mmap/pkg-plist
index b8a2abd6641e..6ef4b3156373 100644
--- a/devel/hs-mmap/pkg-plist
+++ b/devel/hs-mmap/pkg-plist
@@ -1,15 +1,15 @@
@comment $FreeBSD$
-%%MMAP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSmmap-%%MMAP_VERSION%%.o
-%%MMAP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/MMap.hi
-%%MMAP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSmmap-%%MMAP_VERSION%%.a
-%%MMAP_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/MMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%MMAP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO
-@dirrm %%MMAP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%MMAP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%MMAP_LIBDIR_REL%%
-@exec /bin/sh %D/%%MMAP_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister mmap
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-mueval/Makefile b/devel/hs-mueval/Makefile
index 6b2a9f2b714d..1891dca1c6ac 100644
--- a/devel/hs-mueval/Makefile
+++ b/devel/hs-mueval/Makefile
@@ -9,86 +9,17 @@ PORTNAME= mueval
PORTVERSION= 0.7.1
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Safely evaluate Haskell expressions
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-show>=0.3:${PORTSDIR}/devel/hs-show \
- hs-hint>=0.3.1:${PORTSDIR}/devel/hs-hint
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-show>=0.3:${PORTSDIR}/devel/hs-show \
- hs-hint>=0.3.1:${PORTSDIR}/devel/hs-hint
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= hint>=0.3.1 show>=0.3 utf8-string
-GHC_VERSION= 6.10.4
-MUEVAL_VERSION= ${PORTVERSION}
+EXECUTABLE= mueval mueval-core
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
PORTDATA= *
+SHOW_PKGMSG= yes
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-MUEVAL_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- MUEVAL_VERSION=${MUEVAL_VERSION} \
- MUEVAL_LIBDIR_REL=${MUEVAL_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${MUEVAL_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
- ${ECHO_MSG} -e "\a"
- ${CAT} "${PKGMESSAGE}"
- ${ECHO_MSG} ""
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-mueval/pkg-message b/devel/hs-mueval/pkg-message
index 6fbb11db5505..29860ec7ca18 100644
--- a/devel/hs-mueval/pkg-message
+++ b/devel/hs-mueval/pkg-message
@@ -1,8 +1,6 @@
-=======================================================================
WARNING: If you installed devel/hs-transformers, then before starting
"mueval" you have to:
- hide it with the command: 'ghc-pkg hide transformers'
or
- pass to "mueval" the option: '-n transformers'.
-=======================================================================
diff --git a/devel/hs-mueval/pkg-plist b/devel/hs-mueval/pkg-plist
index 3aaf55a1a25a..0a41778dc54c 100644
--- a/devel/hs-mueval/pkg-plist
+++ b/devel/hs-mueval/pkg-plist
@@ -1,20 +1,20 @@
@comment $FreeBSD$
bin/mueval
bin/mueval-core
-%%MUEVAL_LIBDIR_REL%%/ghc-6.10.4/HSmueval-%%MUEVAL_VERSION%%.o
-%%MUEVAL_LIBDIR_REL%%/ghc-6.10.4/Mueval/ArgsParse.hi
-%%MUEVAL_LIBDIR_REL%%/ghc-6.10.4/Mueval/Context.hi
-%%MUEVAL_LIBDIR_REL%%/ghc-6.10.4/Mueval/Interpreter.hi
-%%MUEVAL_LIBDIR_REL%%/ghc-6.10.4/Mueval/Parallel.hi
-%%MUEVAL_LIBDIR_REL%%/ghc-6.10.4/Mueval/Resources.hi
-%%MUEVAL_LIBDIR_REL%%/ghc-6.10.4/libHSmueval-%%MUEVAL_VERSION%%.a
-%%MUEVAL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Mueval/ArgsParse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Mueval/Context.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Mueval/Interpreter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Mueval/Parallel.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Mueval/Resources.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%MUEVAL_LIBDIR_REL%%/ghc-6.10.4/Mueval
-@dirrm %%MUEVAL_LIBDIR_REL%%/ghc-6.10.4
-@dirrm %%MUEVAL_LIBDIR_REL%%
-@exec /bin/sh %D/%%MUEVAL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Mueval
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister mueval
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-pcre-light-ghc/Makefile b/devel/hs-pcre-light-ghc/Makefile
index 42792436d4f8..d318fe177548 100644
--- a/devel/hs-pcre-light-ghc/Makefile
+++ b/devel/hs-pcre-light-ghc/Makefile
@@ -9,72 +9,12 @@ PORTNAME= pcre-light
PORTVERSION= 0.3.1
PORTREVISION= 3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= A lightweight Haskell regex library compatible with Perl 5
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-PCRELIGHT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-PCRELIGHT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- PCRELIGHT_VERSION=${PCRELIGHT_VERSION} \
- PCRELIGHT_LIBDIR_REL=${PCRELIGHT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w \
- --extra-include-dirs=${LOCALBASE}/include \
- --extra-lib-dirs=${LOCALBASE}/lib --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${PCRELIGHT_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-pcre-light-ghc/pkg-plist b/devel/hs-pcre-light-ghc/pkg-plist
index 77c2f52f2ba0..83a77077ed96 100644
--- a/devel/hs-pcre-light-ghc/pkg-plist
+++ b/devel/hs-pcre-light-ghc/pkg-plist
@@ -1,19 +1,19 @@
@comment $FreeBSD$
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSpcre-light-%%PCRELIGHT_VERSION%%.o
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light.hi
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Base.hi
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Char8.hi
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSpcre-light-%%PCRELIGHT_VERSION%%.a
-%%PCRELIGHT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Char8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%PCRELIGHT_LIBDIR_REL%%
-@exec /bin/sh %D/%%PCRELIGHT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister pcre-light
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-pcre-light/Makefile b/devel/hs-pcre-light/Makefile
index 42792436d4f8..d318fe177548 100644
--- a/devel/hs-pcre-light/Makefile
+++ b/devel/hs-pcre-light/Makefile
@@ -9,72 +9,12 @@ PORTNAME= pcre-light
PORTVERSION= 0.3.1
PORTREVISION= 3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= A lightweight Haskell regex library compatible with Perl 5
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-PCRELIGHT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-PCRELIGHT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- PCRELIGHT_VERSION=${PCRELIGHT_VERSION} \
- PCRELIGHT_LIBDIR_REL=${PCRELIGHT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w \
- --extra-include-dirs=${LOCALBASE}/include \
- --extra-lib-dirs=${LOCALBASE}/lib --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${PCRELIGHT_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-pcre-light/pkg-plist b/devel/hs-pcre-light/pkg-plist
index 77c2f52f2ba0..83a77077ed96 100644
--- a/devel/hs-pcre-light/pkg-plist
+++ b/devel/hs-pcre-light/pkg-plist
@@ -1,19 +1,19 @@
@comment $FreeBSD$
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSpcre-light-%%PCRELIGHT_VERSION%%.o
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light.hi
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Base.hi
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Char8.hi
-%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSpcre-light-%%PCRELIGHT_VERSION%%.a
-%%PCRELIGHT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Char8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%PCRELIGHT_LIBDIR_REL%%
-@exec /bin/sh %D/%%PCRELIGHT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister pcre-light
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-reactive/Makefile b/devel/hs-reactive/Makefile
index d1a09f11f900..129ccd8ea209 100644
--- a/devel/hs-reactive/Makefile
+++ b/devel/hs-reactive/Makefile
@@ -8,82 +8,13 @@
PORTNAME= reactive
PORTVERSION= 0.11.4
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Push-pull functional reactive programming
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-category-extras>=0.53.5:${PORTSDIR}/math/hs-category-extras \
- hs-checkers>=0.2.3:${PORTSDIR}/devel/hs-checkers \
- hs-QuickCheck>=2.1.0.2:${PORTSDIR}/devel/hs-QuickCheck \
- hs-Stream>=0.3.1:${PORTSDIR}/devel/hs-Stream \
- hs-TypeCompose>=0.6.3:${PORTSDIR}/devel/hs-TypeCompose \
- hs-unamb>=0.1.5:${PORTSDIR}/devel/hs-unamb \
- hs-vector-space>=0.5:${PORTSDIR}/math/hs-vector-space
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-category-extras>=0.53.5:${PORTSDIR}/math/hs-category-extras \
- hs-checkers>=0.2.3:${PORTSDIR}/devel/hs-checkers \
- hs-QuickCheck>=2.1.0.2:${PORTSDIR}/devel/hs-QuickCheck \
- hs-Stream>=0.3.1:${PORTSDIR}/devel/hs-Stream \
- hs-TypeCompose>=0.6.3:${PORTSDIR}/devel/hs-TypeCompose \
- hs-unamb>=0.1.5:${PORTSDIR}/devel/hs-unamb \
- hs-vector-space>=0.5:${PORTSDIR}/math/hs-vector-space
-
-GHC_VERSION= 6.10.4
-REACTIVE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-REACTIVE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- REACTIVE_VERSION=${REACTIVE_VERSION} \
- REACTIVE_LIBDIR_REL=${REACTIVE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${REACTIVE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= category-extras>=0.53.5 checkers>=0.2.3 \
+ QuickCheck>=2.1.0.2 Stream>=0.3.1 TypeCompose>=0.6.3 \
+ unamb>=0.1.5 vector-space>=0.5
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-reactive/pkg-plist b/devel/hs-reactive/pkg-plist
index 7f1e89675779..857a22a52783 100644
--- a/devel/hs-reactive/pkg-plist
+++ b/devel/hs-reactive/pkg-plist
@@ -1,41 +1,41 @@
@comment $FreeBSD$
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/AddBounds.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Max.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Min.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/PairMonad.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Behavior.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Fun.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Future.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Improving.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Behavior.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Chan.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Clock.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Fun.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Future.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/IVar.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Misc.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Reactive.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Serial.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/TVal.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Timing.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/LegacyAdapters.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Num.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/PrimReactive.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Reactive.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/VectorSpace.hi
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSreactive-%%REACTIVE_VERSION%%.o
-%%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSreactive-%%REACTIVE_VERSION%%.a
-%%REACTIVE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/AddBounds.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Max.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Min.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/PairMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Behavior.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Fun.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Future.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Improving.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Behavior.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Chan.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Clock.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Fun.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Future.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/IVar.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Misc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Reactive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Serial.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/TVal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal/Timing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/LegacyAdapters.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Num.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/PrimReactive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Reactive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/VectorSpace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYING
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal
-@dirrm %%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive
-@dirrm %%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP
-@dirrm %%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%REACTIVE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%REACTIVE_LIBDIR_REL%%
-@exec /bin/sh %D/%%REACTIVE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive/Internal
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP/Reactive
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/FRP
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister reactive
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-readline/Makefile b/devel/hs-readline/Makefile
index a3fa8cfd1bee..e708720ed45e 100644
--- a/devel/hs-readline/Makefile
+++ b/devel/hs-readline/Makefile
@@ -8,68 +8,11 @@ PORTNAME= readline
PORTVERSION= 1.0.1.0
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell interface to the GNU readline library
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-HSREADLINE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSREADLINE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSREADLINE_VERSION=${HSREADLINE_VERSION} \
- HSREADLINE_LIBDIR_REL=${HSREADLINE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSREADLINE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-readline/pkg-plist b/devel/hs-readline/pkg-plist
index 3e1414d88292..d164392986da 100644
--- a/devel/hs-readline/pkg-plist
+++ b/devel/hs-readline/pkg-plist
@@ -1,19 +1,19 @@
@comment $FreeBSD$
-%%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSreadline-%%HSREADLINE_VERSION%%.o
-%%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Readline.hi
-%%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/SimpleLineEditor.hi
-%%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsReadline.h
-%%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsReadlineConfig.h
-%%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSreadline-%%HSREADLINE_VERSION%%.a
-%%HSREADLINE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/Readline.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console/SimpleLineEditor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsReadline.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsReadlineConfig.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
-@dirrm %%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console
-@dirrm %%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%HSREADLINE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSREADLINE_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSREADLINE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Console
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister readline
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-safe/Makefile b/devel/hs-safe/Makefile
index dc6f77d085e1..a0c4565ec2cf 100644
--- a/devel/hs-safe/Makefile
+++ b/devel/hs-safe/Makefile
@@ -8,68 +8,11 @@
PORTNAME= safe
PORTVERSION= 0.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell library for safe (pattern match free) functions
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-SAFE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-SAFE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- SAFE_VERSION=${SAFE_VERSION} \
- SAFE_LIBDIR_REL=${SAFE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${SAFE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-safe/pkg-plist b/devel/hs-safe/pkg-plist
index f69bcafd8767..2fe16354c640 100644
--- a/devel/hs-safe/pkg-plist
+++ b/devel/hs-safe/pkg-plist
@@ -1,13 +1,13 @@
@comment $FreeBSD$
-%%SAFE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSsafe-%%SAFE_VERSION%%.o
-%%SAFE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Safe.hi
-%%SAFE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSsafe-%%SAFE_VERSION%%.a
-%%SAFE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Safe.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%SAFE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%SAFE_LIBDIR_REL%%
-@exec /bin/sh %D/%%SAFE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister safe
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-show/Makefile b/devel/hs-show/Makefile
index fdde5f3509db..6839e1a24c2b 100644
--- a/devel/hs-show/Makefile
+++ b/devel/hs-show/Makefile
@@ -8,70 +8,14 @@
PORTNAME= show
PORTVERSION= 0.3.3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell Show instances for Lambdabot
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-smallcheck>=0.4:${PORTSDIR}/devel/hs-smallcheck
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-smallcheck>=0.4:${PORTSDIR}/devel/hs-smallcheck
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= smallcheck>=0.4
-GHC_VERSION= 6.10.4
-SHOW_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-SHOW_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- SHOW_VERSION=${SHOW_VERSION} \
- SHOW_LIBDIR_REL=${SHOW_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} --constraint='base<4'
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${SHOW_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CONFIGURE_ARGS+= --constraint='base<4'
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-show/pkg-plist b/devel/hs-show/pkg-plist
index b1f6f7c5d0a6..27c492c1673b 100644
--- a/devel/hs-show/pkg-plist
+++ b/devel/hs-show/pkg-plist
@@ -1,16 +1,16 @@
@comment $FreeBSD$
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSshow-%%SHOW_VERSION%%.o
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowFun.hi
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowIO.hi
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowQ.hi
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/SimpleReflect.hi
-%%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSshow-%%SHOW_VERSION%%.a
-%%SHOW_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowFun.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowIO.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/ShowQ.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/SimpleReflect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%SHOW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%SHOW_LIBDIR_REL%%
-@exec /bin/sh %D/%%SHOW_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister show
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-smallcheck/Makefile b/devel/hs-smallcheck/Makefile
index ce61407d3d25..fa100ea3a797 100644
--- a/devel/hs-smallcheck/Makefile
+++ b/devel/hs-smallcheck/Makefile
@@ -8,82 +8,15 @@
PORTNAME= smallcheck
PORTVERSION= 0.4
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Another lightweight testing library in Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-SMALLCHECK_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
-PORTEXAMPLES= *
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-SMALLCHECK_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- SMALLCHECK_VERSION=${SMALLCHECK_VERSION} \
- SMALLCHECK_LIBDIR_REL=${SMALLCHECK_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${SMALLCHECK_LIBDIR_REL}/register.sh
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-smallcheck/pkg-plist b/devel/hs-smallcheck/pkg-plist
index 5df1123c4525..6bb10bf68cd3 100644
--- a/devel/hs-smallcheck/pkg-plist
+++ b/devel/hs-smallcheck/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%SMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSsmallcheck-%%SMALLCHECK_VERSION%%.o
-%%SMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/SmallCheck.hi
-%%SMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSsmallcheck-%%SMALLCHECK_VERSION%%.a
-%%SMALLCHECK_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/SmallCheck.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%SMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
-@dirrm %%SMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%SMALLCHECK_LIBDIR_REL%%
-@exec /bin/sh %D/%%SMALLCHECK_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister smallcheck
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-split/Makefile b/devel/hs-split/Makefile
index c030f3bb510b..83c1202ad8d5 100644
--- a/devel/hs-split/Makefile
+++ b/devel/hs-split/Makefile
@@ -8,68 +8,9 @@
PORTNAME= split
PORTVERSION= 0.1.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell combinator library for splitting lists
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-SPLIT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-SPLIT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- SPLIT_VERSION=${SPLIT_VERSION} \
- SPLIT_LIBDIR_REL=${SPLIT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${SPLIT_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-split/pkg-plist b/devel/hs-split/pkg-plist
index 4bb162ba12b6..1dff92a69498 100644
--- a/devel/hs-split/pkg-plist
+++ b/devel/hs-split/pkg-plist
@@ -1,17 +1,17 @@
@comment $FreeBSD$
-%%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Split.hi
-%%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Split/Internals.hi
-%%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSsplit-%%SPLIT_VERSION%%.o
-%%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSsplit-%%SPLIT_VERSION%%.a
-%%SPLIT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Split.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Split/Internals.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Split
-@dirrm %%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List
-@dirrm %%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%SPLIT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%SPLIT_LIBDIR_REL%%
-@exec /bin/sh %D/%%SPLIT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Split
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister split
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-testpack/Makefile b/devel/hs-testpack/Makefile
index dbec1d6da4c0..ba1cb7b1c0c1 100644
--- a/devel/hs-testpack/Makefile
+++ b/devel/hs-testpack/Makefile
@@ -8,68 +8,11 @@
PORTNAME= testpack
PORTVERSION= 1.0.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
-COMMENT= Haskell Test Utililty Pack for HUnit and QuickCheck
+COMMENT= Haskell Test Utility Pack for HUnit and QuickCheck
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-TESTPACK_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-TESTPACK_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- TESTPACK_VERSION=${TESTPACK_VERSION} \
- TESTPACK_LIBDIR_REL=${TESTPACK_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${TESTPACK_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-testpack/pkg-plist b/devel/hs-testpack/pkg-plist
index e5f3c525cba7..3f9a012a0794 100644
--- a/devel/hs-testpack/pkg-plist
+++ b/devel/hs-testpack/pkg-plist
@@ -1,18 +1,18 @@
@comment $FreeBSD$
-%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HStestpack-%%TESTPACK_VERSION%%.o
-%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/HUnit/Tools.hi
-%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances.hi
-%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Tools.hi
-%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHStestpack-%%TESTPACK_VERSION%%.a
-%%TESTPACK_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/HUnit/Tools.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Tools.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck
-@dirrm %%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/HUnit
-@dirrm %%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
-@dirrm %%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%TESTPACK_LIBDIR_REL%%
-@exec /bin/sh %D/%%TESTPACK_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/HUnit
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister testpack
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-transformers/Makefile b/devel/hs-transformers/Makefile
index b430187cf676..739de5719e30 100644
--- a/devel/hs-transformers/Makefile
+++ b/devel/hs-transformers/Makefile
@@ -8,68 +8,11 @@
PORTNAME= transformers
PORTVERSION= 0.1.4.0
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Concrete Haskell monad transformers
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-TRANSFORMERS_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-TRANSFORMERS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- TRANSFORMERS_VERSION=${TRANSFORMERS_VERSION} \
- TRANSFORMERS_LIBDIR_REL=${TRANSFORMERS_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${TRANSFORMERS_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-transformers/pkg-plist b/devel/hs-transformers/pkg-plist
index bd559798f027..f0a2a37a6325 100644
--- a/devel/hs-transformers/pkg-plist
+++ b/devel/hs-transformers/pkg-plist
@@ -1,35 +1,35 @@
@comment $FreeBSD$
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Identity.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Cont.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Error.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Identity.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/List.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Maybe.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS/Lazy.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS/Strict.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Reader.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State/Lazy.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State/Strict.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer/Lazy.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer/Strict.hi
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HStransformers-%%TRANSFORMERS_VERSION%%.o
-%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHStransformers-%%TRANSFORMERS_VERSION%%.a
-%%TRANSFORMERS_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Identity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Cont.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Error.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Identity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/List.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Maybe.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS/Lazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS/Strict.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Reader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State/Lazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State/Strict.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer/Lazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer/Strict.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer
-@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State
-@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS
-@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans
-@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
-@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%TRANSFORMERS_LIBDIR_REL%%
-@exec /bin/sh %D/%%TRANSFORMERS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister transformers
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-unamb/Makefile b/devel/hs-unamb/Makefile
index a3f536977998..e8ba71d09830 100644
--- a/devel/hs-unamb/Makefile
+++ b/devel/hs-unamb/Makefile
@@ -8,68 +8,9 @@
PORTNAME= unamb
PORTVERSION= 0.2.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Unambiguous choice library for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-UNAMB_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UNAMB_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UNAMB_VERSION=${UNAMB_VERSION} \
- UNAMB_LIBDIR_REL=${UNAMB_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UNAMB_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-unamb/pkg-plist b/devel/hs-unamb/pkg-plist
index a5cbb9757355..8a9745550e95 100644
--- a/devel/hs-unamb/pkg-plist
+++ b/devel/hs-unamb/pkg-plist
@@ -1,13 +1,13 @@
@comment $FreeBSD$
-%%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Unamb.hi
-%%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSunamb-%%UNAMB_VERSION%%.o
-%%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSunamb-%%UNAMB_VERSION%%.a
-%%UNAMB_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Unamb.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UNAMB_LIBDIR_REL%%
-@exec /bin/sh %D/%%UNAMB_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister unamb
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-uniplate/Makefile b/devel/hs-uniplate/Makefile
index 2b99b543beb8..0c75d434e250 100644
--- a/devel/hs-uniplate/Makefile
+++ b/devel/hs-uniplate/Makefile
@@ -8,74 +8,14 @@
PORTNAME= uniplate
PORTVERSION= 1.2.0.3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Uniform type generic traversals for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-UNIPLATE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UNIPLATE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UNIPLATE_VERSION=${UNIPLATE_VERSION} \
- UNIPLATE_LIBDIR_REL=${UNIPLATE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UNIPLATE_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/uniplate.htm ${DATADIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+INSTALL_PORTDATA= ${INSTALL_DATA} ${WRKSRC}/uniplate.htm ${DATADIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-uniplate/pkg-plist b/devel/hs-uniplate/pkg-plist
index 25a92b74dfdf..612e40745ccc 100644
--- a/devel/hs-uniplate/pkg-plist
+++ b/devel/hs-uniplate/pkg-plist
@@ -1,26 +1,26 @@
@comment $FreeBSD$
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Biplate.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Compos.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateData.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateDirect.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateInternal.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateTypeable.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/SYB.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Str.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Uniplate.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/UniplateOn.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/UniplateStr.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/UniplateStrOn.hi
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSuniplate-%%UNIPLATE_VERSION%%.o
-%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSuniplate-%%UNIPLATE_VERSION%%.a
-%%UNIPLATE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Biplate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Compos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateData.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateDirect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateInternal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateTypeable.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/SYB.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Str.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Uniplate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/UniplateOn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/UniplateStr.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/UniplateStrOn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics
-@dirrm %%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UNIPLATE_LIBDIR_REL%%
-@exec /bin/sh %D/%%UNIPLATE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister uniplate
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-unix-compat/Makefile b/devel/hs-unix-compat/Makefile
index 47d2d11744d9..2e3520ce5f73 100644
--- a/devel/hs-unix-compat/Makefile
+++ b/devel/hs-unix-compat/Makefile
@@ -8,68 +8,9 @@
PORTNAME= unix-compat
PORTVERSION= 0.1.2.1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Portable POSIX-compatibility layer for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-UNIXCOMPAT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UNIXCOMPAT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UNIXCOMPAT_VERSION=${UNIXCOMPAT_VERSION} \
- UNIXCOMPAT_LIBDIR_REL=${UNIXCOMPAT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UNIXCOMPAT_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-unix-compat/pkg-plist b/devel/hs-unix-compat/pkg-plist
index fb4a437df2be..25b55d8f74b9 100644
--- a/devel/hs-unix-compat/pkg-plist
+++ b/devel/hs-unix-compat/pkg-plist
@@ -1,20 +1,20 @@
@comment $FreeBSD$
-%%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSunix-compat-%%UNIXCOMPAT_VERSION%%.o
-%%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat/Extensions.hi
-%%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat/Files.hi
-%%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat/Types.hi
-%%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat/User.hi
-%%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsUnixCompat.h
-%%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSunix-compat-%%UNIXCOMPAT_VERSION%%.a
-%%UNIXCOMPAT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat/Extensions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat/Files.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat/User.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsUnixCompat.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
-@dirrm %%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat
-@dirrm %%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%UNIXCOMPAT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UNIXCOMPAT_LIBDIR_REL%%
-@exec /bin/sh %D/%%UNIXCOMPAT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/PosixCompat
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister unix-compat
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-utf8-string-ghc/Makefile b/devel/hs-utf8-string-ghc/Makefile
index 33666d6d5471..ad5b1d9bef48 100644
--- a/devel/hs-utf8-string-ghc/Makefile
+++ b/devel/hs-utf8-string-ghc/Makefile
@@ -8,69 +8,10 @@
PORTNAME= utf8-string
PORTVERSION= 0.3.6
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= wahjava@gmail.com
COMMENT= Support for reading/writing UTF8 strings for Haskell programs
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-UTF8STR_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UTF8STR_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UTF8STR_VERSION=${UTF8STR_VERSION} \
- UTF8STR_LIBDIR_REL=${UTF8STR_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UTF8STR_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-utf8-string-ghc/pkg-plist b/devel/hs-utf8-string-ghc/pkg-plist
index ccda5fa99128..546971bab69c 100644
--- a/devel/hs-utf8-string-ghc/pkg-plist
+++ b/devel/hs-utf8-string-ghc/pkg-plist
@@ -1,29 +1,29 @@
@comment $FreeBSD$
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/Generic.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/String.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSutf8-string-%%UTF8STR_VERSION%%.o
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSutf8-string-%%UTF8STR_VERSION%%.a
-%%UTF8STR_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/Generic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/String.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UTF8STR_LIBDIR_REL%%
-@exec /bin/sh %D/%%UTF8STR_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister utf8-string
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-utf8-string/Makefile b/devel/hs-utf8-string/Makefile
index 33666d6d5471..ad5b1d9bef48 100644
--- a/devel/hs-utf8-string/Makefile
+++ b/devel/hs-utf8-string/Makefile
@@ -8,69 +8,10 @@
PORTNAME= utf8-string
PORTVERSION= 0.3.6
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= wahjava@gmail.com
COMMENT= Support for reading/writing UTF8 strings for Haskell programs
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-UTF8STR_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UTF8STR_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UTF8STR_VERSION=${UTF8STR_VERSION} \
- UTF8STR_LIBDIR_REL=${UTF8STR_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UTF8STR_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-utf8-string/pkg-plist b/devel/hs-utf8-string/pkg-plist
index ccda5fa99128..546971bab69c 100644
--- a/devel/hs-utf8-string/pkg-plist
+++ b/devel/hs-utf8-string/pkg-plist
@@ -1,29 +1,29 @@
@comment $FreeBSD$
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/Generic.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/String.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSutf8-string-%%UTF8STR_VERSION%%.o
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/UTF8.hi
-%%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSutf8-string-%%UTF8STR_VERSION%%.a
-%%UTF8STR_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/Generic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/String.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
-@dirrm %%UTF8STR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UTF8STR_LIBDIR_REL%%
-@exec /bin/sh %D/%%UTF8STR_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/IO
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Environment
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/Binary
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister utf8-string
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-utility-ht/Makefile b/devel/hs-utility-ht/Makefile
index ae5f55cfd4da..05e00c96c608 100644
--- a/devel/hs-utility-ht/Makefile
+++ b/devel/hs-utility-ht/Makefile
@@ -8,68 +8,9 @@
PORTNAME= utility-ht
PORTVERSION= 0.0.5.1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Various small Haskell helper functions for Lists, Maybes, Tuples, Functions
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-UTILITYHT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UTILITYHT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UTILITYHT_VERSION=${UTILITYHT_VERSION} \
- UTILITYHT_LIBDIR_REL=${UTILITYHT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UTILITYHT_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-utility-ht/pkg-plist b/devel/hs-utility-ht/pkg-plist
index a0de090c86a0..6890238dcb92 100644
--- a/devel/hs-utility-ht/pkg-plist
+++ b/devel/hs-utility-ht/pkg-plist
@@ -1,55 +1,55 @@
@comment $FreeBSD$
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bool/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bool/HT/Private.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Eq/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Function/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Function/HT/Private.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/HT/Private.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Key.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Key/Private.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Match.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Match/Private.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maybe/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Ord/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Record/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Record/HT/Private.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Strictness/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tuple/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSutility-ht-%%UTILITYHT_VERSION%%.o
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Read/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Show/HT.hi
-%%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSutility-ht-%%UTILITYHT_VERSION%%.a
-%%UTILITYHT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bool/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bool/HT/Private.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Eq/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Function/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Function/HT/Private.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/HT/Private.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Key.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Key/Private.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Match.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Match/Private.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maybe/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Ord/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Record/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Record/HT/Private.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Strictness/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tuple/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Read/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Show/HT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Show
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Read
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tuple
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Strictness
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Record/HT
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Record
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Ord
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maybe
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Match
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Key
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/HT
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Function/HT
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Function
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Eq
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bool/HT
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bool
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%UTILITYHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UTILITYHT_LIBDIR_REL%%
-@exec /bin/sh %D/%%UTILITYHT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Show
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Read
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tuple
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/String
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Strictness
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Record/HT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Record
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Ord
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maybe
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Match
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/Key
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List/HT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/List
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Function/HT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Function
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Eq
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bool/HT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Bool
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister utility-ht
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-uuagc/Makefile b/devel/hs-uuagc/Makefile
index 163bf6594227..f50aa3b69494 100644
--- a/devel/hs-uuagc/Makefile
+++ b/devel/hs-uuagc/Makefile
@@ -9,71 +9,15 @@ PORTNAME= uuagc
PORTVERSION= 0.9.12
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Attribute Grammar System of Universiteit Utrecht
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-uulib>=0.9.5:${PORTSDIR}/devel/hs-uulib
-LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= uulib
-GHC_VERSION= 6.10.4
-UUAGC_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UUAGC_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UUAGC_VERSION=${UUAGC_VERSION} \
- UUAGC_LIBDIR_REL=${UUAGC_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UUAGC_LIBDIR_REL}/register.sh
-
-post-install:
- ${STRIP_CMD} ${PREFIX}/bin/uuagc
- ${CHMOD} ${BINMODE} ${PREFIX}/bin/uuagc
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+EXECUTABLE= uuagc
+HADDOCK_EXE=
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-uuagc/pkg-plist b/devel/hs-uuagc/pkg-plist
index cc97b0902d70..2c047f78317f 100644
--- a/devel/hs-uuagc/pkg-plist
+++ b/devel/hs-uuagc/pkg-plist
@@ -1,21 +1,21 @@
@comment $FreeBSD$
bin/uuagc
-%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC.hi
-%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/AbsSyn.hi
-%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/Options.hi
-%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/Parser.hi
-%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/UUAGC.hi
-%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSuuagc-%%UUAGC_VERSION%%.o
-%%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSuuagc-%%UUAGC_VERSION%%.a
-%%UUAGC_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/AbsSyn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/Options.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC/UUAGC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC
-@dirrm %%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple
-@dirrm %%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution
-@dirrm %%UUAGC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UUAGC_LIBDIR_REL%%
-@exec /bin/sh %D/%%UUAGC_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple/UUAGC
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution/Simple
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Distribution
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister uuagc
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-uulib/Makefile b/devel/hs-uulib/Makefile
index 2283ba6b8e81..a0b023b91c59 100644
--- a/devel/hs-uulib/Makefile
+++ b/devel/hs-uulib/Makefile
@@ -9,68 +9,11 @@ PORTNAME= uulib
PORTVERSION= 0.9.10
PORTREVISION= 1
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell Utrecht Tools Library
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-UULIB_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UULIB_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UULIB_VERSION=${UULIB_VERSION} \
- UULIB_LIBDIR_REL=${UULIB_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UULIB_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-uulib/pkg-plist b/devel/hs-uulib/pkg-plist
index 50f2d18d2c55..ef7aab8797a5 100644
--- a/devel/hs-uulib/pkg-plist
+++ b/devel/hs-uulib/pkg-plist
@@ -1,54 +1,54 @@
@comment $FreeBSD$
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSuulib-%%UULIB_VERSION%%.o
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntBag.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntMap.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntSet.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Map.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/MultiSet.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Queue.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Scc.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Seq.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Set.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/PPrint.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/CharParser.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Derived.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Interface.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Machine.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/MachineInterface.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Merge.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Offside.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Perms.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/StateParser.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty/Basic.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty/Ext.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenToken.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenOrd.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenParser.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenSymbol.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Position.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Scanner.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Token.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/TokenParser.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/TokenShow.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/BinaryTrees.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/PermTree.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/Utils.hi
-%%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSuulib-%%UULIB_VERSION%%.a
-%%UULIB_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntBag.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/IntSet.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Map.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/MultiSet.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Queue.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Scc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Seq.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData/Set.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/PPrint.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/CharParser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Derived.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Interface.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Machine.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/MachineInterface.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Merge.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Offside.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/Perms.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing/StateParser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty/Basic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty/Ext.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenToken.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenOrd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenParser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/GenTokenSymbol.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Position.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Scanner.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/Token.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/TokenParser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner/TokenShow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/BinaryTrees.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/PermTree.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util
-@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner
-@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty
-@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing
-@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData
-@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU
-@dirrm %%UULIB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UULIB_LIBDIR_REL%%
-@exec /bin/sh %D/%%UULIB_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Util
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Scanner
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Pretty
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/Parsing
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU/DData
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/UU
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister uulib
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-uvector-algorithms/Makefile b/devel/hs-uvector-algorithms/Makefile
index 3e9c37af0450..f0019bf4a2de 100644
--- a/devel/hs-uvector-algorithms/Makefile
+++ b/devel/hs-uvector-algorithms/Makefile
@@ -8,70 +8,11 @@
PORTNAME= uvector-algorithms
PORTVERSION= 0.2
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Efficient algorithms for uvector unboxed arrays in Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-uvector>=0.1.0.4:${PORTSDIR}/devel/hs-uvector
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-uvector>=0.1.0.4:${PORTSDIR}/devel/hs-uvector
-
-GHC_VERSION= 6.10.4
-UVECTORALGORITHMS_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UVECTORALGORITHMS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UVECTORALGORITHMS_VERSION=${UVECTORALGORITHMS_VERSION} \
- UVECTORALGORITHMS_LIBDIR_REL=${UVECTORALGORITHMS_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UVECTORALGORITHMS_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= uvector>=0.1.0.4
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-uvector-algorithms/pkg-plist b/devel/hs-uvector-algorithms/pkg-plist
index 8179464f1346..d30b3dac2919 100644
--- a/devel/hs-uvector-algorithms/pkg-plist
+++ b/devel/hs-uvector-algorithms/pkg-plist
@@ -1,24 +1,24 @@
@comment $FreeBSD$
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Combinators.hi
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Common.hi
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Insertion.hi
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Intro.hi
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Merge.hi
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Optimal.hi
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Radix.hi
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/TriHeap.hi
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSuvector-algorithms-%%UVECTORALGORITHMS_VERSION%%.o
-%%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSuvector-algorithms-%%UVECTORALGORITHMS_VERSION%%.a
-%%UVECTORALGORITHMS_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Combinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Common.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Insertion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Intro.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Merge.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Optimal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/Radix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms/TriHeap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms
-@dirrm %%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector
-@dirrm %%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array
-@dirrm %%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%UVECTORALGORITHMS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UVECTORALGORITHMS_LIBDIR_REL%%
-@exec /bin/sh %D/%%UVECTORALGORITHMS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Algorithms
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister uvector-algorithms
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/devel/hs-uvector/Makefile b/devel/hs-uvector/Makefile
index 24a46b750fa9..089e9c368b72 100644
--- a/devel/hs-uvector/Makefile
+++ b/devel/hs-uvector/Makefile
@@ -8,79 +8,11 @@
PORTNAME= uvector
PORTVERSION= 0.1.1.0
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Fast unboxed arrays with a flexible interface for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-UVECTOR_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
PORTDATA= *
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UVECTOR_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UVECTOR_VERSION=${UVECTOR_VERSION} \
- UVECTOR_LIBDIR_REL=${UVECTOR_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UVECTOR_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/devel/hs-uvector/pkg-plist b/devel/hs-uvector/pkg-plist
index 696a96abe780..40f88e7bb405 100644
--- a/devel/hs-uvector/pkg-plist
+++ b/devel/hs-uvector/pkg-plist
@@ -1,32 +1,32 @@
@comment $FreeBSD$
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/BUArr.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/Debug.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/Hyperstrict.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/Text.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Stream.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Basics.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Enum.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Permute.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Stream.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Sums.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Text.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/UArr.hi
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSuvector-%%UVECTOR_VERSION%%.o
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/memcpy_extra.h
-%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSuvector-%%UVECTOR_VERSION%%.a
-%%UVECTOR_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/BUArr.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/Debug.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/Hyperstrict.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/Text.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Stream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Basics.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Enum.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Permute.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Stream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Sums.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Text.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/UArr.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/memcpy_extra.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
-@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict
-@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim
-@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector
-@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array
-@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UVECTOR_LIBDIR_REL%%
-@exec /bin/sh %D/%%UVECTOR_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister uvector
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/graphics/hs-HGL-ghc/Makefile b/graphics/hs-HGL-ghc/Makefile
index c173508091d8..ab3cf686db33 100644
--- a/graphics/hs-HGL-ghc/Makefile
+++ b/graphics/hs-HGL-ghc/Makefile
@@ -8,69 +8,13 @@
PORTNAME= HGL
PORTVERSION= 3.2.0.2
CATEGORIES= graphics haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= jacula@gmail.com
COMMENT= A simple Haskell graphics library based on X11 or Win32
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc
-
-GHC_VERSION= 6.10.4
-HGL_VERSION= ${PORTVERSION}
-
-CABAL_CMD= ${LOCALBASE}/bin/runghc Setup.hs
-
-HGL_LIBDIR_REL= lib/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HGL_LIBDIR_REL=${HGL_LIBDIR_REL} \
- HGL_VERSION=${HGL_VERSION}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${CABAL_CMD} build \
- && ${CABAL_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${CABAL_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${CABAL_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HGL_LIBDIR_REL}/register.sh
-
-post-install:
- @${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= X11
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/graphics/hs-HGL-ghc/pkg-plist b/graphics/hs-HGL-ghc/pkg-plist
index d5a6c8c4c9a3..cf79ba076332 100644
--- a/graphics/hs-HGL-ghc/pkg-plist
+++ b/graphics/hs-HGL-ghc/pkg-plist
@@ -1,44 +1,44 @@
@comment $FreeBSD$
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Core.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Brush.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Font.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Monad.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Pen.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Picture.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Region.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Text.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Draw.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Event.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Events.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Flag.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Types.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Utilities.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Key.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Run.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Units.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Utils.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Window.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/DC.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Display.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Timer.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Types.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Window.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/SOE.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSHGL-%%HGL_VERSION%%.o
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSHGL-%%HGL_VERSION%%.a
-%%HGL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Core.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Brush.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Font.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Pen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Picture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Region.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Text.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Draw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Event.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Events.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Flag.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Utilities.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Key.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Run.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Units.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/DC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Display.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Timer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/SOE.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HGL_LIBDIR_REL%%
-@exec /bin/sh %D/%%HGL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister HGL
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/graphics/hs-HGL/Makefile b/graphics/hs-HGL/Makefile
index c173508091d8..ab3cf686db33 100644
--- a/graphics/hs-HGL/Makefile
+++ b/graphics/hs-HGL/Makefile
@@ -8,69 +8,13 @@
PORTNAME= HGL
PORTVERSION= 3.2.0.2
CATEGORIES= graphics haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= jacula@gmail.com
COMMENT= A simple Haskell graphics library based on X11 or Win32
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc
-
-GHC_VERSION= 6.10.4
-HGL_VERSION= ${PORTVERSION}
-
-CABAL_CMD= ${LOCALBASE}/bin/runghc Setup.hs
-
-HGL_LIBDIR_REL= lib/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HGL_LIBDIR_REL=${HGL_LIBDIR_REL} \
- HGL_VERSION=${HGL_VERSION}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${CABAL_CMD} build \
- && ${CABAL_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${CABAL_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${CABAL_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HGL_LIBDIR_REL}/register.sh
-
-post-install:
- @${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= X11
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/graphics/hs-HGL/pkg-plist b/graphics/hs-HGL/pkg-plist
index d5a6c8c4c9a3..cf79ba076332 100644
--- a/graphics/hs-HGL/pkg-plist
+++ b/graphics/hs-HGL/pkg-plist
@@ -1,44 +1,44 @@
@comment $FreeBSD$
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Core.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Brush.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Font.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Monad.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Pen.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Picture.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Region.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Text.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Draw.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Event.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Events.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Flag.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Types.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Utilities.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Key.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Run.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Units.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Utils.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Window.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/DC.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Display.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Timer.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Types.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Window.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/SOE.hi
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSHGL-%%HGL_VERSION%%.o
-%%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSHGL-%%HGL_VERSION%%.a
-%%HGL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Core.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Brush.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Font.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Pen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Picture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Region.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw/Text.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Draw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Event.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Events.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Flag.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals/Utilities.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Key.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Run.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Units.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/DC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Display.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Timer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/SOE.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HGL_LIBDIR_REL%%
-@exec /bin/sh %D/%%HGL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/X11
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Internals
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL/Draw
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/HGL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister HGL
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/lang/ghc/bsd.cabal.mk b/lang/ghc/bsd.cabal.mk
new file mode 100644
index 000000000000..3429a1ba80e1
--- /dev/null
+++ b/lang/ghc/bsd.cabal.mk
@@ -0,0 +1,267 @@
+#
+# $FreeBSD$
+#
+# bsd.cabal.mk -- Support for ports based on Haskell Cabal.
+#
+# Created by: Gabor Pali <pgj@FreeBSD.org>,
+# Based on works of Giuseppe Pilichi and Ashish Shukla.
+#
+# Maintained by: haskell@FreeBSD.org
+#
+
+MASTER_SITES?= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX?= hs-
+
+.if !defined(DOCUMENTATION) && \
+ (${PORTNAME} == haddock || ${PORTNAME} == ghc-paths || ${PORTNAME} == hscolour)
+NOPORTDOCS= yes
+.endif
+
+.if defined(NOPORTDOCS) && defined(DOCUMENTATION)
+IGNORE+= is a documentation-only port, do not install if no documentation needed
+.endif
+
+.if !defined(SLAVE) && !defined(DOCUMENTATION)
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+.endif
+
+.if defined(SLAVE)
+NO_PKG_REGISTER=
+.endif
+
+GHC_VERSION?= 6.10.4
+
+GHC_CMD?= ${LOCALBASE}/bin/ghc
+CABAL_SETUP?= Setup.lhs
+SETUP_CMD?= ./setup
+
+DATADIR= ${PREFIX}/share/${DISTNAME}
+DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
+
+LIBDIR_REL= lib/${DISTNAME}
+
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ PORTNAME=${PORTNAME} \
+ PORTVERSION=${PORTVERSION} \
+ LIBDIR_REL=${LIBDIR_REL}
+
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include
+
+INSTALL_PORTDATA?=
+INSTALL_PORTEXAMPLES?=
+
+.if defined(USE_ALEX)
+BUILD_DEPENDS+= ${LOCALBASE}/bin/alex:${PORTSDIR}/devel/hs-alex
+.endif
+
+.if defined(USE_HAPPY)
+BUILD_DEPENDS+= ${LOCALBASE}/bin/happy:${PORTSDIR}/devel/hs-happy
+.endif
+
+.if defined(EXECUTABLE)
+LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
+.endif
+
+.if defined(EXECUTABLE) || defined(DOCUMENTATION)
+HADDOCK_EXE?= --executables
+.endif
+
+.if defined(DOCUMENTATION)
+
+.if defined(PORTREVISION) && ${PORTREVISION} != 0
+_SUF1= _${PORTREVISION}
+.endif
+
+.if defined(PORTEPOCH) && ${PORTEPOCH} != 0
+_SUF2= ,${PORTEPOCH}
+.endif
+
+PKGVERSION= ${PORTVERSION:C/[-_,]/./g}${_SUF1}${_SUF2}
+
+PKGNAMESUFFIX= -docs
+USE_HACKAGE+= ${PORTNAME}==${PKGVERSION}
+.endif
+
+.if !defined(SLAVE)
+.if defined(USE_HACKAGE)
+.include "bsd.hackage.mk"
+
+.for hackage in ${USE_HACKAGE}
+__u_h_r_package= ${hackage:C/[<=>].*$//g}
+__u_h_r_port= ${${__u_h_r_package}_port}
+__u_h_r_name= ${__u_h_r_port:C/.*\///g}
+
+.if ${__u_h_r_package} == ${hackage}
+__u_h_r_version:= >=0
+.else
+__u_h_r_version:= ${hackage:C/^[^<=>]*//g}
+.endif
+
+dependencies:= ${dependencies} \
+${__u_h_r_name}${__u_h_r_version}:${PORTSDIR}/${__u_h_r_port}
+.endfor
+
+.if !defined(DOCUMENTATION)
+BUILD_DEPENDS+= ${dependencies}
+.endif
+.if !defined(STANDALONE)
+RUN_DEPENDS+= ${dependencies}
+.endif
+
+.endif
+.endif
+
+.if defined(NOPORTDOCS)
+PLIST_SUB+= NOPORTDOCS=""
+.else
+PLIST_SUB+= NOPORTDOCS="@comment "
+.endif
+
+.if !defined(NOPORTDOCS)
+.if !defined(XMLDOCS) || defined(DOCUMENTATION)
+PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
+.if !empty(PORT_HADDOCK:M?0)
+BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
+.endif
+
+BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+
+HSCOLOUR_VERSION= 1.15
+HSCOLOUR_DATADIR= ${LOCALBASE}/share/hscolour-${HSCOLOUR_VERSION}
+
+.endif
+
+.if defined(XMLDOCS)
+BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \
+ ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
+
+USE_GMAKE= yes
+
+.endif # !XMLDOCS
+
+.if !defined(DOCUMENTATION)
+PORTDOCS= *
+.else
+PORTDOCS= html
+
+.if !empty(XMLDOCS)
+.for xmldoc in ${XMLDOCS}
+PORTDOCS+= ${xmldoc:C/^.*://g}
+.endfor
+.endif
+
+.endif # !DOCUMENTATION
+
+.endif # !NOPORTDOCS
+
+.if defined(PORTDATA) && defined(NOPORTDATA)
+__handle_datadir__= --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
+.else
+__handle_datadir__=
+.endif
+
+MAN1SRC?= man/man1
+
+
+.if (!defined(XMLDOCS) || defined(DOCUMENTATION)) && !defined(NOPORTDOCS)
+CONFIGURE_ARGS+= --haddock-options=-w
+.endif
+
+.SILENT:
+
+post-patch:
+.if defined(XMLDOCS) && defined(USE_AUTOTOOLS)
+ @${REINPLACE_CMD} -e 's|/usr/local/share/xsl/docbook|${LOCALBASE}/share/xsl/docbook|' \
+ ${WRKSRC}/doc/configure.ac
+.endif
+
+do-configure:
+ cd ${WRKSRC} && ${GHC_CMD} --make ${CABAL_SETUP} -o setup -package Cabal
+ cd ${WRKSRC} && ${SETENV} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" \
+ ${SETUP_CMD} configure --ghc --prefix=${PREFIX} --extra-include-dirs="${LOCALBASE}/include" --extra-lib-dirs="${LOCALBASE}/lib" ${__handle_datadir__} ${CONFIGURE_ARGS}
+
+.if !defined(NOPORTDOCS)
+.if defined(XMLDOCS) && defined(USE_AUTOTOOLS)
+ cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure --prefix=${PREFIX}
+.endif
+.endif # !NOPORTDOCS
+
+do-build:
+.if !defined(DOCUMENTATION)
+ cd ${WRKSRC} && ${SETUP_CMD} build
+.if !defined(SLAVE) && !defined(STANDALONE)
+ cd ${WRKSRC} && ${SETUP_CMD} register --gen-script
+.endif
+.endif # !DOCUMENTATION
+
+.if !defined(NOPORTDOCS)
+.if (!defined(XMLDOCS) && !defined(STANDALONE)) || defined(DOCUMENTATION)
+ cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source ${HADDOCK_EXE} \
+ --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
+.endif # STANDALONE
+.if defined(XMLDOCS)
+ @(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html)
+.endif # XMLDOCS
+.endif # !NOPORTDOCS
+
+do-install:
+.if !defined(DOCUMENTATION)
+ cd ${WRKSRC} && ${SETUP_CMD} install
+
+.if !defined(SLAVE) && !defined(STANDALONE)
+ cd ${WRKSRC} && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${LIBDIR_REL}/register.sh
+.endif
+
+.if !empty(INSTALL_PORTDATA) && !defined(NOPORTDATA)
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_PORTDATA}
+.endif
+
+.if !empty(INSTALL_PORTEXAMPLES) && !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_PORTEXAMPLES}
+.endif
+
+.if defined(MAN1)
+.for man in ${MAN1}
+ @${INSTALL_MAN} ${WRKSRC}/${MAN1SRC}/${man} ${PREFIX}/man/man1
+.endfor
+.endif # MAN1
+
+.else
+
+ @(cd ${WRKSRC}/dist/doc/html/${PORTNAME} && ${COPYTREE_SHARE} \* ${DOCSDIR}/html)
+
+.endif # !DOCUMENTATION
+
+.if !defined(NOPORTDOCS)
+.if !empty(XMLDOCS)
+.for xmldoc in ${XMLDOCS}
+ @(cd ${WRKSRC}/${xmldoc:C/:.*$//g} && ${COPYTREE_SHARE} \* ${DOCSDIR}/${xmldoc:C/^.*://g})
+.endfor
+.endif # XMLDOCS
+.endif
+
+post-install:
+.if !defined(SLAVE) && !defined(STANDALONE) && !defined(DOCUMENTATION)
+ ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+.endif
+
+.if defined(EXECUTABLE)
+.for exe in ${EXECUTABLE}
+ @${STRIP_CMD} ${PREFIX}/bin/${exe}
+ @${CHMOD} ${BINMODE} ${PREFIX}/bin/${exe}
+.endfor
+.endif # EXECUTABLE
+
+.if defined(SHOW_PKGMSG)
+ @${ECHO_MSG} -e "\a"
+ @${ECHO_MSG} "================================================================="
+ @${CAT} "${PKGMESSAGE}"
+ @${ECHO_MSG} "================================================================="
+ @${ECHO_MSG}
+.endif # SHOW_PKGMSG
diff --git a/lang/ghc/bsd.hackage.mk b/lang/ghc/bsd.hackage.mk
new file mode 100644
index 000000000000..a3a183fc4ca8
--- /dev/null
+++ b/lang/ghc/bsd.hackage.mk
@@ -0,0 +1,116 @@
+#
+# $FreeBSD$
+#
+# bsd.hackage.mk -- List of Haskell Cabal ports.
+#
+# Created by: Gabor Pali <pgj@FreeBSD.org>,
+# Based on works of Giuseppe Pilichi and Ashish Shukla.
+#
+# Maintained by: haskell@FreeBSD.org
+#
+
+# KEEP THE LIST ALPHABETICALLY SORTED!
+
+alex_port= devel/hs-alex # executable
+Agda_port= math/hs-Agda # executable
+Agda-executable_port= math/hs-Agda-executable # executable
+ALUT_port= audio/hs-ALUT
+arrows_port= devel/hs-arrows
+binary_port= devel/hs-binary-ghc
+bio_port= science/hs-bio
+brainfuck_port= lang/hs-brainfuck # executable
+bytestring-csv_port= textproc/hs-bytestring-csv
+c2hs_port= devel/c2hs # exectuable
+category-extras_port= math/hs-category-extras
+cgi_port= www/hs-cgi
+checkers_port= devel/hs-checkers
+convertible_port= devel/hs-convertible
+cpphs_port= devel/hs-cpphs # executable
+criterion_port= benchmarks/hs-criterion
+datetime_port= devel/hs-datetime
+DeepArrow_port= devel/hs-DeepArrow
+deepseq_port= devel/hs-deepseq
+Diff_port= textproc/hs-Diff
+digest_port= security/hs-digest-ghc
+dlist_port= devel/hs-dlist
+erf_port= math/hs-erf
+fastcgi_port= www/hs-fastcgi # lib_depends
+feed_port= textproc/hs-feed
+fgl_port= devel/hs-fgl
+FileManip_port= devel/hs-FileManip
+ghc-mtl_port= devel/hs-ghc-mtl
+ghc-paths_port= devel/hs-ghc-paths
+GLURaw_port= x11-toolkits/hs-GLURaw-ghc
+GLUT_port= x11-toolkits/hs-glut-ghc
+haddock_port= devel/hs-haddock # executable
+happy_port= devel/hs-happy # executable
+haskeline_port= devel/hs-haskeline
+haskell-src-exts_port= devel/hs-haskell-src-exts
+HaXml_port= textproc/hs-haxml # executable
+HGL_port= graphics/hs-HGL-ghc
+highlighting-kate_port= textproc/hs-highlighting-kate-ghc
+hint_port= devel/hs-hint
+hoogle_port= devel/hs-hoogle # executable
+hscolour_port= print/hs-hscolour # executable
+hslogger_port= devel/hs-hslogger
+HTTP_port= www/hs-HTTP
+http-server_port= www/hs-http-server
+json_port= converters/hs-json
+language-c_port= devel/hs-language-c-ghc
+lazysmallcheck_port= devel/hs-lazysmallcheck-ghc
+MemoTrie_port= devel/hs-MemoTrie
+mime_port= mail/hs-mime
+MissingH_port= devel/hs-MissingH
+mmap_port= devel/hs-mmap
+MonadCatchIO-mtl_port= devel/hs-MonadCatchIO-mtl
+mueval_port= devel/hs-mueval # executable
+mwc-random_port= math/hs-mwc-random
+ObjectName_port= devel/hs-ObjectName
+oeis_port= www/hs-oeis
+OpenAL_port= audio/hs-OpenAL
+OpenGL_port= x11-toolkits/hs-opengl-ghc
+OpenGLRaw_port= x11-toolkits/hs-OpenGLRaw-ghc
+pandoc_port= textproc/pandoc # executable
+pcre-light_port= devel/hs-pcre-light-ghc # lib_depends
+polyparse_port= textproc/hs-polyparse-ghc
+porte_port= ports-mgmt/porte # executable
+probability_port= math/hs-probability
+QuickCheck_port= devel/hs-QuickCheck
+reactive_port= devel/hs-reactive
+readline_port= devel/hs-readline
+safe_port= devel/hs-safe
+scgi_port= www/hs-scgi
+SHA_port= security/hs-SHA
+show_port= devel/hs-show
+smallcheck_port= devel/hs-smallcheck
+split_port= devel/hs-split
+StateVar_port= devel/hs-StateVar
+statistics_port= math/hs-statistics
+Stream_port= devel/hs-Stream
+stringsearch_port= textproc/hs-stringsearch
+tagsoup_port= textproc/hs-tagsoup # executable
+Tensor_port= devel/hs-Tensor
+testpack_port= devel/hs-testpack
+texmath_port= textproc/hs-texmath # executable
+transformers_port= devel/hs-transformers
+TypeCompose_port= devel/hs-TypeCompose
+unamb_port= devel/hs-unamb
+uniplate_port= devel/hs-uniplate
+unix-compat_port= devel/hs-unix-compat
+unlambda_port= lang/hs-unlambda # executable
+url_port= www/hs-url
+utf8-string_port= devel/hs-utf8-string-ghc
+utility-ht_port= devel/hs-utility-ht
+uuagc_port= devel/hs-uuagc # executable
+uulib_port= devel/hs-uulib
+uvector_port= devel/hs-uvector
+uvector-algorithms_port= devel/hs-uvector-algorithms
+vector-space_port= math/hs-vector-space
+X11_port= x11/hs-x11-ghc # lib_depends
+X11-xft_port= x11/hs-x11-xft-ghc
+xml_port= textproc/hs-xml
+xmobar_port= x11/xmobar # executable
+xmonad_port= x11-wm/xmonad # executable
+xmonad-contrib_port= x11-wm/xmonad-contrib
+zip-archive_port= archivers/hs-zip-archive-ghc
+zlib_port= archivers/hs-zlib
diff --git a/lang/hs-brainfuck/Makefile b/lang/hs-brainfuck/Makefile
index 27766814e370..9299610158ab 100644
--- a/lang/hs-brainfuck/Makefile
+++ b/lang/hs-brainfuck/Makefile
@@ -9,69 +9,13 @@ PORTNAME= brainfuck
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= lang haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Brainfuck interpreter written in Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-BRAINFUCK_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-BRAINFUCK_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- BRAINFUCK_VERSION=${BRAINFUCK_VERSION} \
- BRAINFUCK_LIBDIR_REL=${BRAINFUCK_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${BRAINFUCK_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+EXECUTABLE= bf
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/lang/hs-brainfuck/pkg-plist b/lang/hs-brainfuck/pkg-plist
index 6dc18f67a1e2..ea97aef3018e 100644
--- a/lang/hs-brainfuck/pkg-plist
+++ b/lang/hs-brainfuck/pkg-plist
@@ -1,17 +1,17 @@
@comment $FreeBSD$
bin/bf
-%%BRAINFUCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSbrainfuck-%%BRAINFUCK_VERSION%%.o
-%%BRAINFUCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Brainfuck.hi
-%%BRAINFUCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Brainfuck/Examples.hi
-%%BRAINFUCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSbrainfuck-%%BRAINFUCK_VERSION%%.a
-%%BRAINFUCK_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Brainfuck.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Brainfuck/Examples.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%BRAINFUCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Brainfuck
-@dirrm %%BRAINFUCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
-@dirrm %%BRAINFUCK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%BRAINFUCK_LIBDIR_REL%%
-@exec /bin/sh %D/%%BRAINFUCK_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Brainfuck
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister brainfuck
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/lang/hs-unlambda/Makefile b/lang/hs-unlambda/Makefile
index 790aeae9a7bc..b8fb2845d6ce 100644
--- a/lang/hs-unlambda/Makefile
+++ b/lang/hs-unlambda/Makefile
@@ -9,69 +9,13 @@ PORTNAME= unlambda
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= lang haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Unlambda interpreter written in Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-UNLAMBDA_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-UNLAMBDA_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- UNLAMBDA_VERSION=${UNLAMBDA_VERSION} \
- UNLAMBDA_LIBDIR_REL=${UNLAMBDA_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UNLAMBDA_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+EXECUTABLE= unlambda
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/lang/hs-unlambda/pkg-plist b/lang/hs-unlambda/pkg-plist
index 48043fa86df0..c4e748b78b40 100644
--- a/lang/hs-unlambda/pkg-plist
+++ b/lang/hs-unlambda/pkg-plist
@@ -1,15 +1,15 @@
@comment $FreeBSD$
bin/unlambda
-%%UNLAMBDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSunlambda-%%UNLAMBDA_VERSION%%.o
-%%UNLAMBDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Unlambda.hi
-%%UNLAMBDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSunlambda-%%UNLAMBDA_VERSION%%.a
-%%UNLAMBDA_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Unlambda.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%UNLAMBDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
-@dirrm %%UNLAMBDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%UNLAMBDA_LIBDIR_REL%%
-@exec /bin/sh %D/%%UNLAMBDA_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister unlambda
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/mail/hs-mime/Makefile b/mail/hs-mime/Makefile
index 750add20a1c6..f6cd7344a39d 100644
--- a/mail/hs-mime/Makefile
+++ b/mail/hs-mime/Makefile
@@ -8,68 +8,11 @@
PORTNAME= mime
PORTVERSION= 0.3.2
CATEGORIES= mail haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Haskell library for working with MIME types
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-HSMIME_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSMIME_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSMIME_VERSION=${HSMIME_VERSION} \
- HSMIME_LIBDIR_REL=${HSMIME_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSMIME_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/mail/hs-mime/pkg-plist b/mail/hs-mime/pkg-plist
index e3bb2a7e0ef1..f3723d8d851a 100644
--- a/mail/hs-mime/pkg-plist
+++ b/mail/hs-mime/pkg-plist
@@ -1,20 +1,20 @@
@comment $FreeBSD$
-%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Base64.hi
-%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Decode.hi
-%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Parse.hi
-%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/QuotedPrintable.hi
-%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Type.hi
-%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Utils.hi
-%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSmime-%%HSMIME_VERSION%%.o
-%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSmime-%%HSMIME_VERSION%%.a
-%%HSMIME_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Base64.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Decode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Parse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/QuotedPrintable.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Type.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME
-@dirrm %%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
-@dirrm %%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSMIME_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSMIME_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister mime
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/math/hs-Agda-executable/Makefile b/math/hs-Agda-executable/Makefile
index 8e01b170e05e..673255fbdbda 100644
--- a/math/hs-Agda-executable/Makefile
+++ b/math/hs-Agda-executable/Makefile
@@ -9,68 +9,17 @@ PORTNAME= Agda-executable
PORTVERSION= 2.2.6
PORTREVISION= 1
CATEGORIES= math haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Command-line program for type-checking and compiling Agda programs
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-Agda>=2.2.6:${PORTSDIR}/math/hs-Agda
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-Agda>=2.2.6:${PORTSDIR}/math/hs-Agda
-
-LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= Agda>=2.2.6
USE_ICONV= yes
-GHC_VERSION= 6.10.4
-AGDAEXECUTABLE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-AGDAEXECUTABLE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- AGDAEXECUTABLE_VERSION=${AGDAEXECUTABLE_VERSION} \
- AGDAEXECUTABLE_LIBDIR_REL=${AGDAEXECUTABLE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install
+EXECUTABLE= agda
+STANDALONE= yes
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/math/hs-Agda/Makefile b/math/hs-Agda/Makefile
index d8b6ce158423..8e9c5747ad19 100644
--- a/math/hs-Agda/Makefile
+++ b/math/hs-Agda/Makefile
@@ -9,102 +9,25 @@ PORTNAME= Agda
PORTVERSION= 2.2.6
PORTREVISION= 1
CATEGORIES= math haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A functional programming language and proof assistant
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-QuickCheck>=2.1.0.2:${PORTSDIR}/devel/hs-QuickCheck \
- hs-binary-ghc>=0.4.4:${PORTSDIR}/devel/hs-binary-ghc \
- hs-zlib>=0.4.0.1:${PORTSDIR}/archivers/hs-zlib \
- hs-haskeline>=0.3:${PORTSDIR}/devel/hs-haskeline \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-happy>=1.15:${PORTSDIR}/devel/hs-happy \
- hs-alex>=2.0.1:${PORTSDIR}/devel/hs-alex
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-QuickCheck>=2.1.0.2:${PORTSDIR}/devel/hs-QuickCheck \
- hs-binary-ghc>=0.4.4:${PORTSDIR}/devel/hs-binary-ghc \
- hs-zlib>=0.4.0.1:${PORTSDIR}/archivers/hs-zlib \
- hs-haskeline>=0.3:${PORTSDIR}/devel/hs-haskeline \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-
-LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= binary>=0.4.4 haskeline>=0.3 QuickCheck>=2.1.0.2 \
+ zlib>=0.4.0.1
+USE_ALEX= yes
+USE_HAPPY= yes
USE_ICONV= yes
-GHC_VERSION= 6.10.4
-AGDA_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-AGDA_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- AGDA_VERSION=${AGDA_VERSION} \
- AGDA_LIBDIR_REL=${AGDA_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
+EXECUTABLE= agda-mode
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${AGDA_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${INSTALL_DATA} README ${DATADIR}
- cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DATADIR}
-.endif
+PORTDATA= *
+INSTALL_PORTDATA= (cd ${WRKSRC} && ${INSTALL_DATA} README ${DATADIR}; \
+ cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DATADIR})
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
- @${ECHO_MSG} -e "\a"
- @${ECHO_MSG} "================================================================="
- @${CAT} "${PKGMESSAGE}"
- @${ECHO_MSG} "================================================================="
- @${ECHO_MSG}
+SHOW_PKGMSG= yes
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/math/hs-Agda/pkg-plist b/math/hs-Agda/pkg-plist
index bed90d759d2b..7cca7f4ea380 100644
--- a/math/hs-Agda/pkg-plist
+++ b/math/hs-Agda/pkg-plist
@@ -1,217 +1,217 @@
@comment $FreeBSD$
bin/agda-mode
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Auto.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Convert.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/NarrowingSearch.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Print.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/SearchControl.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Syntax.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Typecheck.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/Classify.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/Common.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/Main.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/OptimizedPrinter.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/TranslateName.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/UntypedPrinter.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo/Haskell.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo/Main.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo/Names.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo/PatternMonad.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/HaskellTypes.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Compiler.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Encode.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Misc.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Pretty.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Primitives.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/BasicOps.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/CommandLine/CommandLine.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Exceptions.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/FindFile.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/GhciTop.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Emacs.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Generate.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/HTML.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Precise.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Range.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Vim.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Imports.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/MakeCase.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Monad.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Options.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Main.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract/Name.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract/Pretty.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract/Views.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Common.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Definitions.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Name.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Operators.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Operators/Parser.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Pretty.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Fixity.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Info.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Internal.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Internal/Generic.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Internal/Pattern.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Literal.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Alex.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Comments.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Layout.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/LexActions.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Lexer.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/LookAhead.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Monad.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Parser.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/StringLiterals.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Tokens.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Position.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Scope/Base.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Scope/Monad.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Strict.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Translation/AbstractToConcrete.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Translation/ConcreteToAbstract.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Translation/InternalToAbstract.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/CallGraph.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/Lexicographic.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/Matrix.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/Semiring.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/TermCheck.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/Termination.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Tests.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecker.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Abstract.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Constraints.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Conversion.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Coverage.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Coverage/Match.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/DisplayForm.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Empty.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Errors.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/EtaContract.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Free.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Implicit.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Injectivity.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Level.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/MetaVars.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/MetaVars/Occurs.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Base.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Builtin.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Closure.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Constraints.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Context.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Debug.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Env.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Exception.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Imports.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/MetaVars.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Mutual.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Open.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Options.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Signature.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/SizedTypes.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/State.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Statistics.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Trace.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Patterns/Match.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Polarity.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Positivity.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Pretty.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Primitive.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rebind.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Records.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Reduce.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Builtin.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Data.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Decl.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Def.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Implicit.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Instantiate.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Problem.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Split.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Unify.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Record.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Term.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Serialise.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/SizedTypes.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Substitute.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Telescope.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Test/Generators.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Tests.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/With.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Char.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Either.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/FileName.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Fresh.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Function.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Generics.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Graph.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Hash.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/IO/Binary.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/IO/Locale.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/IO/UTF8.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Impossible.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/List.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Map.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Maybe.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Monad.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Permutation.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Pointer.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Pretty.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/QuickCheck.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/ReadP.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/SemiRing.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Size.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/String.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Suffix.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/TestHelpers.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Trace.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Trie.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Tuple.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Unicode.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Warshall.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Version.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSAgda-%%AGDA_VERSION%%.o
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_Agda.hi
-%%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSAgda-%%AGDA_VERSION%%.a
-%%AGDA_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Auto.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Convert.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/NarrowingSearch.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Print.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/SearchControl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Syntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto/Typecheck.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/Classify.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/Common.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/Main.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/OptimizedPrinter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/TranslateName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate/UntypedPrinter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo/Haskell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo/Main.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo/Names.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo/PatternMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/HaskellTypes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Compiler.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Encode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Misc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo/Primitives.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/BasicOps.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/CommandLine/CommandLine.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Exceptions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/FindFile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/GhciTop.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Emacs.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Generate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/HTML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Precise.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Range.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting/Vim.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Imports.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/MakeCase.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Options.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Main.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract/Name.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract/Views.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Common.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Definitions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Name.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Operators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Operators/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Fixity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Info.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Internal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Internal/Generic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Internal/Pattern.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Literal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Alex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Comments.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Layout.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/LexActions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Lexer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/LookAhead.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/StringLiterals.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Position.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Scope/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Scope/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Strict.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Translation/AbstractToConcrete.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Translation/ConcreteToAbstract.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Translation/InternalToAbstract.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/CallGraph.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/Lexicographic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/Matrix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/Semiring.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/TermCheck.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination/Termination.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Tests.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecker.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Abstract.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Constraints.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Conversion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Coverage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Coverage/Match.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/DisplayForm.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Empty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Errors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/EtaContract.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Free.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Implicit.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Injectivity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Level.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/MetaVars.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/MetaVars/Occurs.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Builtin.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Closure.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Constraints.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Context.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Debug.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Env.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Exception.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Imports.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/MetaVars.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Mutual.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Open.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Options.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Signature.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/SizedTypes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/State.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Statistics.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad/Trace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Patterns/Match.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Polarity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Positivity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Primitive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rebind.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Records.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Reduce.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Builtin.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Data.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Decl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Def.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Implicit.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Instantiate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Problem.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Split.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS/Unify.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Record.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/Term.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Serialise.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/SizedTypes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Substitute.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Telescope.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Test/Generators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Tests.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/With.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Char.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Either.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/FileName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Fresh.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Function.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Generics.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Graph.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Hash.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/IO/Binary.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/IO/Locale.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/IO/UTF8.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Impossible.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/List.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Map.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Maybe.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Permutation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Pointer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/QuickCheck.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/ReadP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/SemiRing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Size.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/String.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Suffix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/TestHelpers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Trace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Trie.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Tuple.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Unicode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/Warshall.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Version.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_Agda.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/IO
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Test
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Patterns
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/MetaVars
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Coverage
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Translation
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Scope
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Internal
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Operators
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/CommandLine
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda
-@dirrm %%AGDA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%AGDA_LIBDIR_REL%%
-@exec /bin/sh %D/%%AGDA_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils/IO
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Utils
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Test
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules/LHS
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Rules
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Patterns
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Monad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/MetaVars
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking/Coverage
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/TypeChecking
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Termination
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Translation
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Scope
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Parser
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Internal
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete/Operators
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Concrete
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax/Abstract
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Syntax
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/Highlighting
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction/CommandLine
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Interaction
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/MAlonzo
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Alonzo
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler/Agate
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Compiler
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda/Auto
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Agda
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister Agda
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/math/hs-category-extras/Makefile b/math/hs-category-extras/Makefile
index 658eadddbebb..95f6f97b6c27 100644
--- a/math/hs-category-extras/Makefile
+++ b/math/hs-category-extras/Makefile
@@ -8,68 +8,9 @@
PORTNAME= category-extras
PORTVERSION= 0.53.5
CATEGORIES= math haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Various Haskell modules and constructs inspired by category theory
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-CATEGORYEXTRAS_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-CATEGORYEXTRAS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- CATEGORYEXTRAS_VERSION=${CATEGORYEXTRAS_VERSION} \
- CATEGORYEXTRAS_LIBDIR_REL=${CATEGORYEXTRAS_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${CATEGORYEXTRAS_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/math/hs-category-extras/pkg-plist b/math/hs-category-extras/pkg-plist
index 24926fa8a247..c7e44289c793 100644
--- a/math/hs-category-extras/pkg-plist
+++ b/math/hs-category-extras/pkg-plist
@@ -1,130 +1,130 @@
@comment $FreeBSD$
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Allegory.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Applicative/Parameterized.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/BiKleisli.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/CoKleisli.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Associative.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Braided.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Cartesian.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Cartesian/Closed.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Discrete.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Distributive.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Dual.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Hask.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Monoidal.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Object.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Cofree.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Coideal.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Context.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Density.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Exponent.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Fix.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/HigherOrder.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Indexed.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Parameterized.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Pointer.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Reader.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Stream.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Supply.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Trans.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Dyad.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Adjunction.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Adjunction/HigherOrder.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Algebra.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Algebra/Elgot.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Categorical.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Biff.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Const.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Flip.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Join.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Lift.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Of.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Composition.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Cone.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Contra.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Exponential.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Extras.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Fix.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Full.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/HigherOrder.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/HigherOrder/Composition.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Indexed.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Internal/Adjunction.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Internal/Ideal.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/KanExtension.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/KanExtension/Interpreter.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Lambek.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Limit.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Pointed.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Pointed/Composition.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Representable.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Strong.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Yoneda.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Zap.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Zip.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Categorical.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Codensity.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Either.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Free.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/HigherOrder.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Hyper.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Ideal.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed/Cont.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed/Fix.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed/State.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed/Trans.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Parameterized.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Ana.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Apo.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Build.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Cata.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Chrono.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Destroy.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Dyna.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Exo.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Futu.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Histo.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Hylo.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Meta/Erwig.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Meta/Gibbons.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Para.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Postpro.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Prepro.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Span.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Synchro.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Universal.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Zygo.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Void.hi
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HScategory-extras-%%CATEGORYEXTRAS_VERSION%%.o
-%%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHScategory-extras-%%CATEGORYEXTRAS_VERSION%%.a
-%%CATEGORYEXTRAS_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Allegory.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Applicative/Parameterized.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/BiKleisli.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/CoKleisli.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Associative.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Braided.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Cartesian.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Cartesian/Closed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Discrete.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Distributive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Dual.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Hask.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Monoidal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Object.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Cofree.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Coideal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Context.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Density.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Exponent.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Fix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/HigherOrder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Indexed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Parameterized.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Pointer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Reader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Stream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Supply.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad/Trans.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Dyad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Adjunction.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Adjunction/HigherOrder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Algebra.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Algebra/Elgot.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Categorical.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Biff.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Const.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Flip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Join.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Lift.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators/Of.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Composition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Cone.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Contra.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Exponential.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Extras.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Fix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Full.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/HigherOrder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/HigherOrder/Composition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Indexed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Internal/Adjunction.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Internal/Ideal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/KanExtension.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/KanExtension/Interpreter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Lambek.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Limit.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Pointed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Pointed/Composition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Representable.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Strong.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Yoneda.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Zap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Zip.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Categorical.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Codensity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Either.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Free.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/HigherOrder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Hyper.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Ideal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed/Cont.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed/Fix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed/State.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed/Trans.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Parameterized.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Ana.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Apo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Build.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Cata.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Chrono.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Destroy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Dyna.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Exo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Futu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Histo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Hylo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Meta/Erwig.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Meta/Gibbons.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Para.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Postpro.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Prepro.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Span.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Synchro.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Universal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Zygo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Void.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Meta
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Pointed
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/KanExtension
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Internal
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/HigherOrder
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Algebra
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Adjunction
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Cartesian
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Applicative
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%CATEGORYEXTRAS_LIBDIR_REL%%
-@exec /bin/sh %D/%%CATEGORYEXTRAS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism/Meta
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Morphism
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Indexed
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Pointed
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/KanExtension
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Internal
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/HigherOrder
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Combinators
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Algebra
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor/Adjunction
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Functor
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Comonad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category/Cartesian
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Category
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Applicative
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister category-extras
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/math/hs-erf/Makefile b/math/hs-erf/Makefile
index 30817074a6a6..8f200b4e250f 100644
--- a/math/hs-erf/Makefile
+++ b/math/hs-erf/Makefile
@@ -8,68 +8,11 @@
PORTNAME= erf
PORTVERSION= 1.0.0.0
CATEGORIES= math haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= The error function, erf, and friends for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-ERF_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-ERF_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- ERF_VERSION=${ERF_VERSION} \
- ERF_LIBDIR_REL=${ERF_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${ERF_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/math/hs-erf/pkg-plist b/math/hs-erf/pkg-plist
index cfae21a69489..bc5c04362fff 100644
--- a/math/hs-erf/pkg-plist
+++ b/math/hs-erf/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Number/Erf.hi
-%%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSerf-%%ERF_VERSION%%.o
-%%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSerf-%%ERF_VERSION%%.a
-%%ERF_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Number/Erf.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Number
-@dirrm %%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%ERF_LIBDIR_REL%%
-@exec /bin/sh %D/%%ERF_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Number
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister erf
+@unexec %D/bin/ghc-pkg unregister %%%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/math/hs-mwc-random/Makefile b/math/hs-mwc-random/Makefile
index ea414a5e9dec..b2e764ff56ad 100644
--- a/math/hs-mwc-random/Makefile
+++ b/math/hs-mwc-random/Makefile
@@ -8,76 +8,14 @@
PORTNAME= mwc-random
PORTVERSION= 0.4.1.1
CATEGORIES= math haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Fast, high quality pseudo random number generation in Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-uvector>=0.1.0.4:${PORTSDIR}/devel/hs-uvector
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-uvector>=0.1.0.4:${PORTSDIR}/devel/hs-uvector
+USE_HACKAGE= uvector>=0.1.0.4
-GHC_VERSION= 6.10.4
-MWCRANDOM_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-MWCRANDOM_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- MWCRANDOM_VERSION=${MWCRANDOM_VERSION} \
- MWCRANDOM_LIBDIR_REL=${MWCRANDOM_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${MWCRANDOM_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+INSTALL_PORTDATA= ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/math/hs-mwc-random/pkg-plist b/math/hs-mwc-random/pkg-plist
index 7cc8ed45ae35..2d8fb72c4cd9 100644
--- a/math/hs-mwc-random/pkg-plist
+++ b/math/hs-mwc-random/pkg-plist
@@ -1,15 +1,15 @@
@comment $FreeBSD$
-%%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSmwc-random-%%MWCRANDOM_VERSION%%.o
-%%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Random/MWC.hi
-%%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSmwc-random-%%MWCRANDOM_VERSION%%.a
-%%MWCRANDOM_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Random/MWC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Random
-@dirrm %%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
-@dirrm %%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%MWCRANDOM_LIBDIR_REL%%
-@exec /bin/sh %D/%%MWCRANDOM_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Random
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister mwc-random
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/math/hs-probability/Makefile b/math/hs-probability/Makefile
index d10cc8f4fd02..a4ef5035c025 100644
--- a/math/hs-probability/Makefile
+++ b/math/hs-probability/Makefile
@@ -8,78 +8,13 @@
PORTNAME= probability
PORTVERSION= 0.2.2
CATEGORIES= math haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Probabilistic Functional Programming in Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-transformers>=0.0.1:${PORTSDIR}/devel/hs-transformers
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-transformers>=0.0.1:${PORTSDIR}/devel/hs-transformers
+USE_HACKAGE= transformers>=0.0.1
-GHC_VERSION= 6.10.4
-PROBABILITY_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
PORTDATA= *
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-PROBABILITY_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- PROBABILITY_VERSION=${PROBABILITY_VERSION} \
- PROBABILITY_LIBDIR_REL=${PROBABILITY_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${PROBABILITY_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/math/hs-probability/pkg-plist b/math/hs-probability/pkg-plist
index 2939a0e0ecac..5d2ccf03d968 100644
--- a/math/hs-probability/pkg-plist
+++ b/math/hs-probability/pkg-plist
@@ -1,42 +1,42 @@
@comment $FreeBSD$
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSprobability-%%PROBABILITY_VERSION%%.o
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Distribution.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Alarm.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Barber.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Bayesian.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Boys.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Collection.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Diagnosis.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Dice.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/DiceAccum.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/MontyHall.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/NBoys.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Predator.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Profession.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Queuing.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/TreeGrowth.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Expectation.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Monad.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Object.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Percentage.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/PrintList.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Random.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Shape.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Show.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Simulation.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Trace.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Transition.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Visualize.hi
-%%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSprobability-%%PROBABILITY_VERSION%%.a
-%%PROBABILITY_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Distribution.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Alarm.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Barber.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Bayesian.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Boys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Collection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Diagnosis.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Dice.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/DiceAccum.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/MontyHall.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/NBoys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Predator.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Profession.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/Queuing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example/TreeGrowth.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Expectation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Object.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Percentage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/PrintList.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Random.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Shape.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Show.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Simulation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Trace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Transition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Visualize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example
-@dirrm %%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability
-@dirrm %%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric
-@dirrm %%PROBABILITY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%PROBABILITY_LIBDIR_REL%%
-@exec /bin/sh %D/%%PROBABILITY_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability/Example
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric/Probability
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Numeric
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister probability
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/math/hs-statistics/Makefile b/math/hs-statistics/Makefile
index 6da31865a082..190d26982f3b 100644
--- a/math/hs-statistics/Makefile
+++ b/math/hs-statistics/Makefile
@@ -8,82 +8,14 @@
PORTNAME= statistics
PORTVERSION= 0.4.1
CATEGORIES= math haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell library of statistical types, data, and functions
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-uvector>=0.1.0.4:${PORTSDIR}/devel/hs-uvector \
- hs-uvector-algorithms>=0.2:${PORTSDIR}/devel/hs-uvector-algorithms \
- hs-erf>=1.0.0.0:${PORTSDIR}/math/hs-erf \
- hs-mwc-random>=0.4.1.1:${PORTSDIR}/math/hs-mwc-random
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-uvector>=0.1.0.4:${PORTSDIR}/devel/hs-uvector \
- hs-uvector-algorithms>=0.2:${PORTSDIR}/devel/hs-uvector-algorithms \
- hs-erf>=1.0.0.0:${PORTSDIR}/math/hs-erf \
- hs-mwc-random>=0.4.1.1:${PORTSDIR}/math/hs-mwc-random
+USE_HACKAGE= erf mwc-random uvector>=0.1.0.4 uvector-algorithms>=0.2
-GHC_VERSION= 6.10.4
-STATISTICS_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-STATISTICS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- STATISTICS_VERSION=${STATISTICS_VERSION} \
- STATISTICS_LIBDIR_REL=${STATISTICS_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${STATISTICS_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+INSTALL_PORTDATA= ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/math/hs-statistics/pkg-plist b/math/hs-statistics/pkg-plist
index b51d210c0639..eeadf7da9a8b 100644
--- a/math/hs-statistics/pkg-plist
+++ b/math/hs-statistics/pkg-plist
@@ -1,37 +1,37 @@
@comment $FreeBSD$
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSstatistics-%%STATISTICS_VERSION%%.o
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Autocorrelation.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Constants.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Binomial.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Exponential.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Gamma.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Geometric.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Hypergeometric.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Normal.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Poisson.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Function.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Internal.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/KernelDensity.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Math.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Quantile.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/RandomVariate.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Resampling.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Resampling/Bootstrap.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Sample.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Sample/Powers.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Types.hi
-%%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSstatistics-%%STATISTICS_VERSION%%.a
-%%STATISTICS_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Autocorrelation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Constants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Binomial.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Exponential.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Gamma.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Geometric.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Hypergeometric.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Normal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution/Poisson.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Function.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Internal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/KernelDensity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Math.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Quantile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/RandomVariate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Resampling.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Resampling/Bootstrap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Sample.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Sample/Powers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Sample
-@dirrm %%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Resampling
-@dirrm %%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution
-@dirrm %%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics
-@dirrm %%STATISTICS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%STATISTICS_LIBDIR_REL%%
-@exec /bin/sh %D/%%STATISTICS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Sample
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Resampling
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics/Distribution
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Statistics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister statistics
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/math/hs-vector-space/Makefile b/math/hs-vector-space/Makefile
index 3e4171e5e5d9..659aa63454cf 100644
--- a/math/hs-vector-space/Makefile
+++ b/math/hs-vector-space/Makefile
@@ -8,70 +8,11 @@
PORTNAME= vector-space
PORTVERSION= 0.5.7
CATEGORIES= math haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Vector & affine spaces, linear maps, and derivatives in Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-MemoTrie>=0.4.2:${PORTSDIR}/devel/hs-MemoTrie
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-MemoTrie>=0.4.2:${PORTSDIR}/devel/hs-MemoTrie
-
-GHC_VERSION= 6.10.4
-VECTORSPACE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-VECTORSPACE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- VECTORSPACE_VERSION=${VECTORSPACE_VERSION} \
- VECTORSPACE_LIBDIR_REL=${VECTORSPACE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${VECTORSPACE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= MemoTrie>=0.4.2
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/math/hs-vector-space/pkg-plist b/math/hs-vector-space/pkg-plist
index 820165d2e1f6..022de4c9d03e 100644
--- a/math/hs-vector-space/pkg-plist
+++ b/math/hs-vector-space/pkg-plist
@@ -1,21 +1,21 @@
@comment $FreeBSD$
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/AdditiveGroup.hi
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/AffineSpace.hi
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Basis.hi
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Cross.hi
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Derivative.hi
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/LinearMap.hi
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maclaurin.hi
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/NumInstances.hi
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/VectorSpace.hi
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSvector-space-%%VECTORSPACE_VERSION%%.o
-%%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSvector-space-%%VECTORSPACE_VERSION%%.a
-%%VECTORSPACE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/AdditiveGroup.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/AffineSpace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Basis.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Cross.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Derivative.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/LinearMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Maclaurin.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/NumInstances.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/VectorSpace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%VECTORSPACE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%VECTORSPACE_LIBDIR_REL%%
-@exec /bin/sh %D/%%VECTORSPACE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister vector-space
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/ports-mgmt/hs-porte/Makefile b/ports-mgmt/hs-porte/Makefile
index 84f6ff7834bd..771295fafc8f 100644
--- a/ports-mgmt/hs-porte/Makefile
+++ b/ports-mgmt/hs-porte/Makefile
@@ -8,71 +8,15 @@ PORTNAME= porte
PORTVERSION= 0.0.3
PORTREVISION= 4
CATEGORIES= ports-mgmt haskell
-MASTER_SITES= http://carte.repnop.org/releases/
+PKGNAMEPREFIX=
MAINTAINER= sbahra@kerneled.org
COMMENT= FreeBSD ports index search and statistical analysis tool
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-stringsearch>=0.2.1.1:${PORTSDIR}/textproc/hs-stringsearch
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-stringsearch>=0.2.1.1:${PORTSDIR}/textproc/hs-stringsearch
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= stringsearch
-GHC_VERSION= 6.10.4
-PORTE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-PORTE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- PORTE_VERSION=${PORTE_VERSION} \
- PORTE_LIBDIR_REL=${PORTE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${PORTE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+EXECUTABLE= porte
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/ports-mgmt/hs-porte/pkg-plist b/ports-mgmt/hs-porte/pkg-plist
index f66d5c9d185f..97b48bca44b0 100644
--- a/ports-mgmt/hs-porte/pkg-plist
+++ b/ports-mgmt/hs-porte/pkg-plist
@@ -1,17 +1,17 @@
@comment $FreeBSD$
bin/porte
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSporte-%%PORTE_VERSION%%.o
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Ports.hi
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Statistics.hi
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Tool.hi
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSporte-%%PORTE_VERSION%%.a
-%%PORTE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Ports.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Statistics.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Tool.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte
-@dirrm %%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%PORTE_LIBDIR_REL%%
-@exec /bin/sh %D/%%PORTE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister porte
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/ports-mgmt/porte/Makefile b/ports-mgmt/porte/Makefile
index 84f6ff7834bd..771295fafc8f 100644
--- a/ports-mgmt/porte/Makefile
+++ b/ports-mgmt/porte/Makefile
@@ -8,71 +8,15 @@ PORTNAME= porte
PORTVERSION= 0.0.3
PORTREVISION= 4
CATEGORIES= ports-mgmt haskell
-MASTER_SITES= http://carte.repnop.org/releases/
+PKGNAMEPREFIX=
MAINTAINER= sbahra@kerneled.org
COMMENT= FreeBSD ports index search and statistical analysis tool
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-stringsearch>=0.2.1.1:${PORTSDIR}/textproc/hs-stringsearch
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-stringsearch>=0.2.1.1:${PORTSDIR}/textproc/hs-stringsearch
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= stringsearch
-GHC_VERSION= 6.10.4
-PORTE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-PORTE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- PORTE_VERSION=${PORTE_VERSION} \
- PORTE_LIBDIR_REL=${PORTE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${PORTE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+EXECUTABLE= porte
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/ports-mgmt/porte/pkg-plist b/ports-mgmt/porte/pkg-plist
index f66d5c9d185f..97b48bca44b0 100644
--- a/ports-mgmt/porte/pkg-plist
+++ b/ports-mgmt/porte/pkg-plist
@@ -1,17 +1,17 @@
@comment $FreeBSD$
bin/porte
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSporte-%%PORTE_VERSION%%.o
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Ports.hi
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Statistics.hi
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Tool.hi
-%%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSporte-%%PORTE_VERSION%%.a
-%%PORTE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Ports.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Statistics.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte/Tool.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte
-@dirrm %%PORTE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%PORTE_LIBDIR_REL%%
-@exec /bin/sh %D/%%PORTE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Porte
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister porte
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/print/hs-hscolour-docs/Makefile b/print/hs-hscolour-docs/Makefile
index af901635dcbe..e71b72a66b4c 100644
--- a/print/hs-hscolour-docs/Makefile
+++ b/print/hs-hscolour-docs/Makefile
@@ -10,41 +10,13 @@ PORTVERSION= 1.15
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= print haskell
-MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/ \
- http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
-PKGNAMESUFFIX= -doc
MAINTAINER= jacula@gmail.com
COMMENT= Documentation for HsColour
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- HsColour:${PORTSDIR}/print/hs-hscolour
-RUN_DEPENDS= hs-hscolour=${PKGVERSION}:${PORTSDIR}/print/hs-hscolour
+CABAL_SETUP= Setup.hs
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-
-HSCOLOUR_VERSION= ${PORTVERSION}
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-CABAL_CMD= runghc Setup.hs
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${CABAL_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-
-do-install:
- ${MKDIR} ${DOCSDIR}/html
- cd ${WRKSRC}/dist/doc/html/hscolour && ${COPYTREE_SHARE} \* ${DOCSDIR}/html
+DOCUMENTATION= yes
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/print/hs-hscolour-docs/pkg-plist b/print/hs-hscolour-docs/pkg-plist
deleted file mode 100644
index ebcb65f9e3f5..000000000000
--- a/print/hs-hscolour-docs/pkg-plist
+++ /dev/null
@@ -1,105 +0,0 @@
-@comment $FreeBSD$
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-ANSI.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-Anchors.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-CSS.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-Classify.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-ColourHighlight.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-Colourise.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-General.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-HTML.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-InlineCSS.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-LaTeX.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-MIRC.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-Options.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-Output.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour-TTY.html
-%%DOCSDIR%%/html/HsColour/Language-Haskell-HsColour.html
-%%DOCSDIR%%/html/HsColour/Main.html
-%%DOCSDIR%%/html/HsColour/doc-index.html
-%%DOCSDIR%%/html/HsColour/frames.html
-%%DOCSDIR%%/html/HsColour/haddock-util.js
-%%DOCSDIR%%/html/HsColour/haddock.css
-%%DOCSDIR%%/html/HsColour/haskell_icon.gif
-%%DOCSDIR%%/html/HsColour/index-frames.html
-%%DOCSDIR%%/html/HsColour/index.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-ANSI.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-Anchors.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-CSS.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-Classify.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-ColourHighlight.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-Colourise.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-General.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-HTML.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-InlineCSS.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-LaTeX.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-MIRC.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-Options.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-Output.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour-TTY.html
-%%DOCSDIR%%/html/HsColour/mini_Language-Haskell-HsColour.html
-%%DOCSDIR%%/html/HsColour/mini_Main.html
-%%DOCSDIR%%/html/HsColour/minus.gif
-%%DOCSDIR%%/html/HsColour/plus.gif
-%%DOCSDIR%%/html/HsColour/src/Main.html
-%%DOCSDIR%%/html/HsColour/src/hscolour.css
-%%DOCSDIR%%/html/Language-Haskell-HsColour-ANSI.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-Anchors.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-CSS.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-Classify.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-ColourHighlight.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-Colourise.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-General.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-HTML.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-InlineCSS.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-LaTeX.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-MIRC.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-Options.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-Output.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour-TTY.html
-%%DOCSDIR%%/html/Language-Haskell-HsColour.html
-%%DOCSDIR%%/html/doc-index.html
-%%DOCSDIR%%/html/frames.html
-%%DOCSDIR%%/html/haddock-util.js
-%%DOCSDIR%%/html/haddock.css
-%%DOCSDIR%%/html/haskell_icon.gif
-%%DOCSDIR%%/html/hscolour.haddock
-%%DOCSDIR%%/html/index-frames.html
-%%DOCSDIR%%/html/index.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-ANSI.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-Anchors.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-CSS.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-Classify.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-ColourHighlight.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-Colourise.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-General.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-HTML.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-InlineCSS.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-LaTeX.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-MIRC.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-Options.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-Output.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour-TTY.html
-%%DOCSDIR%%/html/mini_Language-Haskell-HsColour.html
-%%DOCSDIR%%/html/minus.gif
-%%DOCSDIR%%/html/plus.gif
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-ANSI.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-Anchors.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-CSS.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-Classify.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-ColourHighlight.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-Colourise.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-General.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-HTML.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-InlineCSS.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-LaTeX.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-MIRC.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-Options.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-Output.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour-TTY.html
-%%DOCSDIR%%/html/src/Language-Haskell-HsColour.html
-%%DOCSDIR%%/html/src/hscolour.css
-@dirrm %%DOCSDIR%%/html/src
-@dirrm %%DOCSDIR%%/html/HsColour/src
-@dirrm %%DOCSDIR%%/html/HsColour
-@dirrm %%DOCSDIR%%/html
-@dirrmtry %%DOCSDIR%%
diff --git a/print/hs-hscolour/Makefile b/print/hs-hscolour/Makefile
index ba035944dfb8..ab0adf80de23 100644
--- a/print/hs-hscolour/Makefile
+++ b/print/hs-hscolour/Makefile
@@ -10,54 +10,19 @@ PORTVERSION= 1.15
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= print haskell
-MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/ \
- http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Colourise Haskell code
-.if !defined(SLAVE)
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
-.else
-NO_PKG_REGISTER=
-.endif
-
-GHC_VERSION= 6.10.4
-HSCOLOUR_VERSION= ${PORTVERSION}
-
-CABAL_CMD= runghc Setup.hs
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-HSCOLOUR_LIBDIR_REL= lib/${DISTNAME}
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+CABAL_SETUP= Setup.hs
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSCOLOUR_LIBDIR_REL=${HSCOLOUR_LIBDIR_REL} \
- HSCOLOUR_VERSION=${HSCOLOUR_VERSION} \
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${CABAL_CMD} build
-.if !defined(SLAVE)
- cd ${WRKSRC} && ${CABAL_CMD} register --gen-script
-.endif
+EXECUTABLE= HsColour
-do-install:
- cd ${WRKSRC} && ${CABAL_CMD} install
+PORTDATA= *
-post-install:
- ${STRIP_CMD} ${PREFIX}/bin/HsColour
-.if !defined(SLAVE)
- cd ${WRKSRC} && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSCOLOUR_LIBDIR_REL}/register.sh && \
- ${INSTALL_DATA} README ${DOCSDIR}/README
+.if defined(SLAVE)
+GHC_CMD= ghc
.endif
- @${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/print/hs-hscolour/pkg-plist b/print/hs-hscolour/pkg-plist
index 5ce6fa58d01b..f93e4681053a 100644
--- a/print/hs-hscolour/pkg-plist
+++ b/print/hs-hscolour/pkg-plist
@@ -1,34 +1,31 @@
@comment $FreeBSD$
bin/HsColour
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShscolour-%%HSCOLOUR_VERSION%%.o
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/ANSI.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Anchors.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/CSS.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Classify.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/ColourHighlight.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Colourise.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/General.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/HTML.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/InlineCSS.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/LaTeX.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/MIRC.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Options.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Output.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/TTY.hi
-%%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShscolour-%%HSCOLOUR_VERSION%%.a
-%%HSCOLOUR_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/ANSI.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Anchors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/CSS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Classify.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/ColourHighlight.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Colourise.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/General.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/HTML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/InlineCSS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/LaTeX.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/MIRC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Options.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/Output.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour/TTY.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%DOCSDIR%%/LICENCE-GPL
-%%DOCSDIR%%/README
-%%DATADIR%%/hscolour.css
-@dirrm %%DATADIR%%
@dirrmtry %%DOCSDIR%%
-@dirrm %%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour
-@dirrm %%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell
-@dirrm %%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
-@dirrm %%HSCOLOUR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSCOLOUR_LIBDIR_REL%%
-@exec /bin/sh %%LOCALBASE%%/%%HSCOLOUR_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell/HsColour
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language/Haskell
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Language
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %%LOCALBASE%%/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %%LOCALBASE%%/bin/ghc-pkg unregister hscolour
+@unexec %%LOCALBASE%%/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/science/hs-bio/Makefile b/science/hs-bio/Makefile
index 5544cfabd58f..bab8f9f710f5 100644
--- a/science/hs-bio/Makefile
+++ b/science/hs-bio/Makefile
@@ -8,80 +8,14 @@
PORTNAME= bio
PORTVERSION= 0.4
CATEGORIES= science haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell bioinformatics library
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-tagsoup>=0.4:${PORTSDIR}/textproc/hs-tagsoup \
- hs-binary-ghc>=0.5.0.2:${PORTSDIR}/devel/hs-binary-ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-tagsoup>=0.4:${PORTSDIR}/textproc/hs-tagsoup \
- hs-binary-ghc>=0.5.0.2:${PORTSDIR}/devel/hs-binary-ghc
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= binary tagsoup>=0.4
-GHC_VERSION= 6.10.4
-BIO_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
PORTDATA= *
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-BIO_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- BIO_VERSION=${BIO_VERSION} \
- BIO_LIBDIR_REL=${BIO_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${BIO_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/science/hs-bio/pkg-plist b/science/hs-bio/pkg-plist
index 135a5026dde4..3e810e6286e0 100644
--- a/science/hs-bio/pkg-plist
+++ b/science/hs-bio/pkg-plist
@@ -1,61 +1,61 @@
@comment $FreeBSD$
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/AAlign.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/ACE.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/AlignData.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Blast.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/BlastData.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/BlastFlat.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/BlastXML.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Bowtie.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Matrices.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Multiple.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/QAlign.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/SAlign.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Soap.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Clustering.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/Escape.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/Feature.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/FeatureHier.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/FeatureHierSequences.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/SGD.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/ContigLocation.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/LocMap.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/Location.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/OnSeq.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/Position.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/SeqLocMap.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/SeqLocation.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/Strand.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/Entropy.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/FastQ.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/Fasta.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/GOA.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/GeneOntology.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/HashWord.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/KEGG.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/Phd.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/SFF.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/SFF_name.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/SeqData.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/TwoBit.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Util.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Util/Parsex.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Util/TestBase.hi
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSbio-%%BIO_VERSION%%.o
-%%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSbio-%%BIO_VERSION%%.a
-%%BIO_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/AAlign.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/ACE.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/AlignData.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Blast.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/BlastData.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/BlastFlat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/BlastXML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Bowtie.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Matrices.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Multiple.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/QAlign.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/SAlign.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment/Soap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Clustering.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/Escape.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/Feature.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/FeatureHier.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/FeatureHierSequences.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3/SGD.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/ContigLocation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/LocMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/Location.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/OnSeq.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/Position.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/SeqLocMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/SeqLocation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location/Strand.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/Entropy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/FastQ.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/Fasta.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/GOA.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/GeneOntology.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/HashWord.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/KEGG.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/Phd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/SFF.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/SFF_name.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/SeqData.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence/TwoBit.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Util.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Util/Parsex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Util/TestBase.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Util
-@dirrm %%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence
-@dirrm %%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location
-@dirrm %%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3
-@dirrm %%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment
-@dirrm %%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio
-@dirrm %%BIO_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%BIO_LIBDIR_REL%%
-@exec /bin/sh %D/%%BIO_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Util
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Sequence
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Location
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/GFF3
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio/Alignment
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Bio
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister bio
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/security/hs-SHA/Makefile b/security/hs-SHA/Makefile
index 0ff0c41e87e5..235c95484dd0 100644
--- a/security/hs-SHA/Makefile
+++ b/security/hs-SHA/Makefile
@@ -8,71 +8,12 @@
PORTNAME= SHA
PORTVERSION= 1.4.0
CATEGORIES= security haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= Haskell Implementations of the SHA suite of message digest functions
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-binary-ghc>=0.4:${PORTSDIR}/devel/hs-binary-ghc
-
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-binary-ghc>=0.4:${PORTSDIR}/devel/hs-binary-ghc
-
-GHC_VERSION= 6.10.4
-HSSHA_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSSHA_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSSHA_VERSION=${HSSHA_VERSION} \
- HSSHA_LIBDIR_REL=${HSSHA_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSSHA_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= binary
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/security/hs-SHA/pkg-plist b/security/hs-SHA/pkg-plist
index 152d54a3c84e..e81c02b03a72 100644
--- a/security/hs-SHA/pkg-plist
+++ b/security/hs-SHA/pkg-plist
@@ -1,16 +1,16 @@
@comment $FreeBSD$
-%%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Pure/SHA.hi
-%%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSSHA-%%HSSHA_VERSION%%.o
-%%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSSHA-%%HSSHA_VERSION%%.a
-%%HSSHA_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Pure/SHA.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Pure
-@dirrm %%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest
-@dirrm %%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%HSSHA_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSSHA_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSSHA_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Pure
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister SHA
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/security/hs-digest-ghc/Makefile b/security/hs-digest-ghc/Makefile
index ae8790834797..a076dea6bb1c 100644
--- a/security/hs-digest-ghc/Makefile
+++ b/security/hs-digest-ghc/Makefile
@@ -8,69 +8,12 @@
PORTNAME= digest
PORTVERSION= 0.0.0.8
CATEGORIES= security haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Efficient cryptographic hash implementations in Haskell
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-DIGEST_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-DIGEST_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- DIGEST_VERSION=${DIGEST_VERSION} \
- DIGEST_LIBDIR_REL=${DIGEST_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${DIGEST_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/security/hs-digest-ghc/pkg-plist b/security/hs-digest-ghc/pkg-plist
index 463379c61c82..3d370d552e2b 100644
--- a/security/hs-digest-ghc/pkg-plist
+++ b/security/hs-digest-ghc/pkg-plist
@@ -1,16 +1,16 @@
@comment $FreeBSD$
-%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Adler32.hi
-%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/CRC32.hi
-%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSdigest-%%DIGEST_VERSION%%.o
-%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSdigest-%%DIGEST_VERSION%%.a
-%%DIGEST_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Adler32.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/CRC32.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest
-@dirrm %%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%DIGEST_LIBDIR_REL%%
-@exec /bin/sh %D/%%DIGEST_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister digest
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/security/hs-digest/Makefile b/security/hs-digest/Makefile
index ae8790834797..a076dea6bb1c 100644
--- a/security/hs-digest/Makefile
+++ b/security/hs-digest/Makefile
@@ -8,69 +8,12 @@
PORTNAME= digest
PORTVERSION= 0.0.0.8
CATEGORIES= security haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Efficient cryptographic hash implementations in Haskell
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-DIGEST_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-DIGEST_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- DIGEST_VERSION=${DIGEST_VERSION} \
- DIGEST_LIBDIR_REL=${DIGEST_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${DIGEST_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/security/hs-digest/pkg-plist b/security/hs-digest/pkg-plist
index 463379c61c82..3d370d552e2b 100644
--- a/security/hs-digest/pkg-plist
+++ b/security/hs-digest/pkg-plist
@@ -1,16 +1,16 @@
@comment $FreeBSD$
-%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Adler32.hi
-%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/CRC32.hi
-%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSdigest-%%DIGEST_VERSION%%.o
-%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSdigest-%%DIGEST_VERSION%%.a
-%%DIGEST_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Adler32.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/CRC32.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest
-@dirrm %%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%DIGEST_LIBDIR_REL%%
-@exec /bin/sh %D/%%DIGEST_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister digest
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-Diff/Makefile b/textproc/hs-Diff/Makefile
index ae7809996827..6cedcb101162 100644
--- a/textproc/hs-Diff/Makefile
+++ b/textproc/hs-Diff/Makefile
@@ -8,68 +8,9 @@
PORTNAME= Diff
PORTVERSION= 0.1.2
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= O(ND) diff algorithm in haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-DIFF_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-DIFF_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- DIFF_VERSION=${DIFF_VERSION} \
- DIFF_LIBDIR_REL=${DIFF_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${DIFF_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-Diff/pkg-plist b/textproc/hs-Diff/pkg-plist
index 6b9f07394b7b..b6f30e1fd48e 100644
--- a/textproc/hs-Diff/pkg-plist
+++ b/textproc/hs-Diff/pkg-plist
@@ -1,15 +1,15 @@
@comment $FreeBSD$
-%%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Algorithm/Diff.hi
-%%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSDiff-%%DIFF_VERSION%%.o
-%%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSDiff-%%DIFF_VERSION%%.a
-%%DIFF_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Algorithm/Diff.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Algorithm
-@dirrm %%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%DIFF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%DIFF_LIBDIR_REL%%
-@exec /bin/sh %D/%%DIFF_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Algorithm
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister Diff
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-HaXml/Makefile b/textproc/hs-HaXml/Makefile
index 9ef40d11c7c2..2f214e567b62 100644
--- a/textproc/hs-HaXml/Makefile
+++ b/textproc/hs-HaXml/Makefile
@@ -8,72 +8,19 @@ PORTNAME= haxml
PORTVERSION= 1.20
PORTREVISION= 1
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/HaXml/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
-DISTNAME= HaXml-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= A collection of utilities for using Haskell and XML together
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- hs-polyparse-ghc>=1.1:${PORTSDIR}/textproc/hs-polyparse-ghc
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- hs-polyparse-ghc>=1.1:${PORTSDIR}/textproc/hs-polyparse-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
-GHC_VERSION= 6.10.4
-HAXML_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HAXML_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HAXML_VERSION=${HAXML_VERSION} \
- HAXML_LIBDIR_REL=${HAXML_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= polyparse>=1.2
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
+EXECUTABLE= Canonicalise CanonicaliseLazy \
+ DtdToHaskell MkOneOf Validate \
+ Xtract XtractLazy
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HAXML_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+MASTER_SITES= http://hackage.haskell.org/packages/archive/HaXml/${PORTVERSION}/
+DISTNAME= HaXml-${PORTVERSION}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-HaXml/pkg-plist b/textproc/hs-HaXml/pkg-plist
index 4ec160996a47..93cc4a4c7cc0 100644
--- a/textproc/hs-HaXml/pkg-plist
+++ b/textproc/hs-HaXml/pkg-plist
@@ -6,52 +6,52 @@ bin/MkOneOf
bin/Validate
bin/Xtract
bin/XtractLazy
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSHaXml-%%HAXML_VERSION%%.o
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ByteStringPP.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Combinators.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/Convert.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/Instance.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/TypeDef.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Escape.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Generate.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Parse.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/ParseLazy.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Pretty.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Lex.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/OneOfN.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Parse.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ParseLazy.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Posn.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Pretty.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/SAX.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ShowXmlLazy.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/TypeMapping.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Types.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Util.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Validate.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Verbatim.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Wrappers.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent/Haskell.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent/Parser.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Combinators.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Lex.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Parse.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSHaXml-%%HAXML_VERSION%%.a
-%%HAXML_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSHaXml-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ByteStringPP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Combinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/Convert.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/Instance.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/TypeDef.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Escape.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Generate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Parse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/ParseLazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Lex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/OneOfN.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Parse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ParseLazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Posn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/SAX.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ShowXmlLazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/TypeMapping.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Util.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Validate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Verbatim.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Wrappers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent/Haskell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Combinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Lex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Parse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSHaXml-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HAXML_LIBDIR_REL%%
-@exec /bin/sh %D/%%HAXML_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister HaXml
+@unexec %D/bin/ghc-pkg unregister HaXml-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-bytestring-csv/Makefile b/textproc/hs-bytestring-csv/Makefile
index 0cce70264fe0..2129294cdbac 100644
--- a/textproc/hs-bytestring-csv/Makefile
+++ b/textproc/hs-bytestring-csv/Makefile
@@ -8,71 +8,11 @@ PORTNAME= bytestring-csv
PORTVERSION= 0.1.2
PORTREVISION= 3
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
- http://carte.kerneled.org/mirror/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= Parse CSV formatted data efficiently with Haskell
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-dlist>=0.4.1:${PORTSDIR}/devel/hs-dlist
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-dlist>=0.4.1:${PORTSDIR}/devel/hs-dlist
-
-GHC_VERSION= 6.10.4
-BYTESTRINGCSV_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-BYTESTRINGCSV_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- BYTESTRINGCSV_VERSION=${BYTESTRINGCSV_VERSION} \
- BYTESTRINGCSV_LIBDIR_REL=${BYTESTRINGCSV_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${BYTESTRINGCSV_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= dlist
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-bytestring-csv/pkg-plist b/textproc/hs-bytestring-csv/pkg-plist
index 4be298095ae3..d7e5c5675d0c 100644
--- a/textproc/hs-bytestring-csv/pkg-plist
+++ b/textproc/hs-bytestring-csv/pkg-plist
@@ -1,17 +1,17 @@
@comment $FreeBSD$
-%%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSbytestring-csv-%%BYTESTRINGCSV_VERSION%%.o
-%%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString.hi
-%%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString/Lex.hi
-%%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSbytestring-csv-%%BYTESTRINGCSV_VERSION%%.a
-%%BYTESTRINGCSV_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString/Lex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString
-@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV
-@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%
-@exec /bin/sh %D/%%BYTESTRINGCSV_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister bytestring-csv
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-feed/Makefile b/textproc/hs-feed/Makefile
index faacd1946fbc..43be9e731147 100644
--- a/textproc/hs-feed/Makefile
+++ b/textproc/hs-feed/Makefile
@@ -8,72 +8,12 @@
PORTNAME= feed
PORTVERSION= 0.3.7
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds in Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3.6:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-xml>=1.2.6:${PORTSDIR}/textproc/hs-xml
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3.6:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-xml>=1.2.6:${PORTSDIR}/textproc/hs-xml
-
-GHC_VERSION= 6.10.4
-FEED_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-FEED_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- FEED_VERSION=${FEED_VERSION} \
- FEED_LIBDIR_REL=${FEED_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${FEED_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= utf8-string xml>=1.2.6
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-feed/pkg-plist b/textproc/hs-feed/pkg-plist
index 837ef839cb80..cce617f2e0d4 100644
--- a/textproc/hs-feed/pkg-plist
+++ b/textproc/hs-feed/pkg-plist
@@ -1,42 +1,42 @@
@comment $FreeBSD$
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSfeed-%%FEED_VERSION%%.o
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Export.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Import.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Link.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Validate.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Pub.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Pub/Export.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/DublinCore/Types.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Constructor.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Export.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Import.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Query.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Translate.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Types.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Util.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS/Export.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS/Import.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS/Syntax.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Export.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Import.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Syntax.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Utils.hi
-%%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSfeed-%%FEED_VERSION%%.a
-%%FEED_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Export.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Import.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Link.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed/Validate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Pub.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Pub/Export.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/DublinCore/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Constructor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Export.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Import.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Query.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Translate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed/Util.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS/Export.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS/Import.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS/Syntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Export.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Import.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Syntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1
-@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS
-@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed
-@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/DublinCore
-@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Pub
-@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed
-@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom
-@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%FEED_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%FEED_LIBDIR_REL%%
-@exec /bin/sh %D/%%FEED_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS1
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/RSS
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Feed
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/DublinCore
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Pub
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom/Feed
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Atom
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister feed
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-haxml/Makefile b/textproc/hs-haxml/Makefile
index 9ef40d11c7c2..2f214e567b62 100644
--- a/textproc/hs-haxml/Makefile
+++ b/textproc/hs-haxml/Makefile
@@ -8,72 +8,19 @@ PORTNAME= haxml
PORTVERSION= 1.20
PORTREVISION= 1
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/HaXml/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
-DISTNAME= HaXml-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= A collection of utilities for using Haskell and XML together
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- hs-polyparse-ghc>=1.1:${PORTSDIR}/textproc/hs-polyparse-ghc
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- hs-polyparse-ghc>=1.1:${PORTSDIR}/textproc/hs-polyparse-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
-GHC_VERSION= 6.10.4
-HAXML_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HAXML_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HAXML_VERSION=${HAXML_VERSION} \
- HAXML_LIBDIR_REL=${HAXML_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= polyparse>=1.2
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
+EXECUTABLE= Canonicalise CanonicaliseLazy \
+ DtdToHaskell MkOneOf Validate \
+ Xtract XtractLazy
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HAXML_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+MASTER_SITES= http://hackage.haskell.org/packages/archive/HaXml/${PORTVERSION}/
+DISTNAME= HaXml-${PORTVERSION}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-haxml/pkg-plist b/textproc/hs-haxml/pkg-plist
index 4ec160996a47..93cc4a4c7cc0 100644
--- a/textproc/hs-haxml/pkg-plist
+++ b/textproc/hs-haxml/pkg-plist
@@ -6,52 +6,52 @@ bin/MkOneOf
bin/Validate
bin/Xtract
bin/XtractLazy
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSHaXml-%%HAXML_VERSION%%.o
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ByteStringPP.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Combinators.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/Convert.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/Instance.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/TypeDef.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Escape.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Generate.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Parse.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/ParseLazy.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Pretty.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Lex.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/OneOfN.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Parse.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ParseLazy.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Posn.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Pretty.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/SAX.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ShowXmlLazy.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/TypeMapping.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Types.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Util.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Validate.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Verbatim.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Wrappers.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent/Haskell.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent/Parser.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Combinators.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Lex.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Parse.hi
-%%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSHaXml-%%HAXML_VERSION%%.a
-%%HAXML_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSHaXml-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ByteStringPP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Combinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/Convert.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/Instance.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell/TypeDef.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Escape.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Generate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Parse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/ParseLazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Lex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/OneOfN.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Parse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ParseLazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Posn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Pretty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/SAX.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/ShowXmlLazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/TypeMapping.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Util.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Validate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Verbatim.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Wrappers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent/Haskell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Combinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Lex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract/Parse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSHaXml-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%HAXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HAXML_LIBDIR_REL%%
-@exec /bin/sh %D/%%HAXML_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Xtract
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/XmlContent
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/Html
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml/DtdToHaskell
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/HaXml
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister HaXml
+@unexec %D/bin/ghc-pkg unregister HaXml-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-highlighting-kate-ghc/Makefile b/textproc/hs-highlighting-kate-ghc/Makefile
index f9025e72a9c5..6d60345e60f7 100644
--- a/textproc/hs-highlighting-kate-ghc/Makefile
+++ b/textproc/hs-highlighting-kate-ghc/Makefile
@@ -8,71 +8,12 @@
PORTNAME= highlighting-kate
PORTVERSION= 0.2.5.1
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Haskell syntax highlighting library for 50+ languages
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc \
- hs-pcre-light-ghc>=0.3:${PORTSDIR}/devel/hs-pcre-light-ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc \
- hs-pcre-light-ghc>=0.3:${PORTSDIR}/devel/hs-pcre-light-ghc
-
-GHC_VERSION= 6.10.4
-HLKATE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HLKATE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HLKATE_VERSION=${HLKATE_VERSION} \
- HLKATE_LIBDIR_REL=${HLKATE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HLKATE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= pcre-light
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-highlighting-kate-ghc/pkg-plist b/textproc/hs-highlighting-kate-ghc/pkg-plist
index 81e5f5145a9e..d3c6128a95b1 100644
--- a/textproc/hs-highlighting-kate-ghc/pkg-plist
+++ b/textproc/hs-highlighting-kate-ghc/pkg-plist
@@ -1,78 +1,78 @@
@comment $FreeBSD$
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShighlighting-kate-%%HLKATE_VERSION%%.o
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_highlighting_kate.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Common.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Definitions.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Format.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ada.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Alert.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Asp.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Awk.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Bash.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Bibtex.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/C.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Cmake.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Coldfusion.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Commonlisp.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Cpp.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Css.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/D.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Djangotemplate.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Doxygen.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Dtd.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Eiffel.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Erlang.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Fortran.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Haskell.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Html.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Java.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Javadoc.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Javascript.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Json.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Latex.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Lex.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/LiterateHaskell.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Lua.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Makefile.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Matlab.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Mediawiki.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Modula3.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Nasm.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Objectivec.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ocaml.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Pascal.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Perl.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Php.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Postscript.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Prolog.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Python.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Relaxngcompact.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Rhtml.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ruby.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Scala.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Scheme.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Sgml.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Sql.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/SqlMysql.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/SqlPostgresql.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Tcl.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Texinfo.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Xml.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Xslt.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Yacc.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShighlighting-kate-%%HLKATE_VERSION%%.a
-%%HLKATE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_highlighting_kate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Common.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Definitions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Format.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ada.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Alert.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Asp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Awk.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Bash.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Bibtex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/C.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Cmake.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Coldfusion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Commonlisp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Cpp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Css.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/D.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Djangotemplate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Doxygen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Dtd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Eiffel.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Erlang.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Fortran.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Haskell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Html.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Java.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Javadoc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Javascript.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Json.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Latex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Lex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/LiterateHaskell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Lua.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Makefile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Matlab.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Mediawiki.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Modula3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Nasm.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Objectivec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ocaml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Pascal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Perl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Php.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Postscript.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Prolog.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Python.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Relaxngcompact.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Rhtml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ruby.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Scala.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Scheme.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Sgml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Sql.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/SqlMysql.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/SqlPostgresql.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Tcl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Texinfo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Xml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Xslt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Yacc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HLKATE_LIBDIR_REL%%
-@exec /bin/sh %D/%%HLKATE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister highlighting-kate
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-highlighting-kate/Makefile b/textproc/hs-highlighting-kate/Makefile
index f9025e72a9c5..6d60345e60f7 100644
--- a/textproc/hs-highlighting-kate/Makefile
+++ b/textproc/hs-highlighting-kate/Makefile
@@ -8,71 +8,12 @@
PORTNAME= highlighting-kate
PORTVERSION= 0.2.5.1
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Haskell syntax highlighting library for 50+ languages
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc \
- hs-pcre-light-ghc>=0.3:${PORTSDIR}/devel/hs-pcre-light-ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc \
- hs-pcre-light-ghc>=0.3:${PORTSDIR}/devel/hs-pcre-light-ghc
-
-GHC_VERSION= 6.10.4
-HLKATE_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HLKATE_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HLKATE_VERSION=${HLKATE_VERSION} \
- HLKATE_LIBDIR_REL=${HLKATE_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HLKATE_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= pcre-light
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-highlighting-kate/pkg-plist b/textproc/hs-highlighting-kate/pkg-plist
index 81e5f5145a9e..d3c6128a95b1 100644
--- a/textproc/hs-highlighting-kate/pkg-plist
+++ b/textproc/hs-highlighting-kate/pkg-plist
@@ -1,78 +1,78 @@
@comment $FreeBSD$
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShighlighting-kate-%%HLKATE_VERSION%%.o
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_highlighting_kate.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Common.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Definitions.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Format.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ada.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Alert.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Asp.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Awk.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Bash.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Bibtex.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/C.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Cmake.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Coldfusion.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Commonlisp.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Cpp.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Css.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/D.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Djangotemplate.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Doxygen.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Dtd.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Eiffel.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Erlang.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Fortran.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Haskell.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Html.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Java.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Javadoc.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Javascript.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Json.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Latex.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Lex.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/LiterateHaskell.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Lua.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Makefile.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Matlab.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Mediawiki.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Modula3.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Nasm.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Objectivec.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ocaml.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Pascal.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Perl.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Php.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Postscript.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Prolog.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Python.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Relaxngcompact.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Rhtml.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ruby.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Scala.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Scheme.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Sgml.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Sql.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/SqlMysql.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/SqlPostgresql.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Tcl.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Texinfo.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Xml.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Xslt.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Yacc.hi
-%%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShighlighting-kate-%%HLKATE_VERSION%%.a
-%%HLKATE_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_highlighting_kate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Common.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Definitions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Format.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ada.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Alert.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Asp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Awk.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Bash.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Bibtex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/C.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Cmake.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Coldfusion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Commonlisp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Cpp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Css.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/D.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Djangotemplate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Doxygen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Dtd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Eiffel.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Erlang.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Fortran.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Haskell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Html.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Java.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Javadoc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Javascript.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Json.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Latex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Lex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/LiterateHaskell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Lua.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Makefile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Matlab.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Mediawiki.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Modula3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Nasm.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Objectivec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ocaml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Pascal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Perl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Php.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Postscript.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Prolog.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Python.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Relaxngcompact.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Rhtml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Ruby.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Scala.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Scheme.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Sgml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Sql.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/SqlMysql.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/SqlPostgresql.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Tcl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Texinfo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Xml.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Xslt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax/Yacc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%HLKATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HLKATE_LIBDIR_REL%%
-@exec /bin/sh %D/%%HLKATE_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate/Syntax
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting/Kate
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Highlighting
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister highlighting-kate
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-pandoc/Makefile b/textproc/hs-pandoc/Makefile
index baa1749a2fb2..95df711e7f59 100644
--- a/textproc/hs-pandoc/Makefile
+++ b/textproc/hs-pandoc/Makefile
@@ -9,100 +9,28 @@ PORTNAME= pandoc
PORTVERSION= 1.4
PORTREVISION= 1
CATEGORIES= textproc haskell
-MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= A general markup converter
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-zip-archive-ghc>=0.1.1.4:${PORTSDIR}/archivers/hs-zip-archive-ghc
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-zip-archive-ghc>=0.1:${PORTSDIR}/archivers/hs-zip-archive-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= utf8-string>=0.3 zip-archive>=0.1.1.4
MAN1= pandoc.1 markdown2pdf.1 html2markdown.1 hsmarkdown.1
-GHC_VERSION= 6.10.4
-PANDOC_VERSION= ${PORTVERSION}
-HLKATE_VERSION= 0.2.5.1
+EXECUTABLE= pandoc markdown2pdf hsmarkdown
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-PANDOC_LIBDIR_REL= lib/${DISTNAME}
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- PANDOC_VERSION=${PANDOC_VERSION} \
- PANDOC_LIBDIR_REL=${PANDOC_LIBDIR_REL}
+PORTDATA= *
OPTIONS= HIGHLIGHTING "Syntax highlighting support" off
.include <bsd.port.pre.mk>
-CONFIGURE_ARGS= --haddock-options=-w --prefix=${PREFIX}
-.if defined(NOPORTDATA)
-CONFIGURE_ARGS+= --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-.if exists(${LOCALBASE}/lib/highlighting-kate-${HLKATE_VERSION}/register.sh)
-WITH_HIGHLIGHTING=
-.endif
-
.if defined(WITH_HIGHLIGHTING)
CONFIGURE_ARGS+= --flags="highlighting"
-BUILD_DEPENDS+= hs-highlighting-kate-ghc>=0.2.3:${PORTSDIR}/textproc/hs-highlighting-kate-ghc
-RUN_DEPENDS+= hs-highlighting-kate-ghc>=0.2.3:${PORTSDIR}/textproc/hs-highlighting-kate-ghc
-LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
-.endif
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
+USE_HACKAGE+= highlighting-kate
.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${PANDOC_LIBDIR_REL}/register.sh
-.for man in ${MAN1}
- @${INSTALL_MAN} ${WRKSRC}/man/man1/${man} ${PREFIX}/man/man1
-.endfor
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/textproc/hs-pandoc/pkg-plist b/textproc/hs-pandoc/pkg-plist
index 58bcc8e042ad..5cbf0019fb6a 100644
--- a/textproc/hs-pandoc/pkg-plist
+++ b/textproc/hs-pandoc/pkg-plist
@@ -1,46 +1,47 @@
+@comment $FreeBSD$
bin/hsmarkdown
bin/markdown2pdf
bin/pandoc
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSpandoc-%%PANDOC_VERSION%%.o
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_pandoc.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Blocks.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/CharacterReferences.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Definition.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Highlighting.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/LaTeXMathML.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/ODT.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/HTML.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/LaTeX.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/Markdown.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/RST.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/TeXMath.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Shared.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Templates.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/ConTeXt.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Docbook.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/HTML.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/LaTeX.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Man.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Markdown.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/MediaWiki.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/OpenDocument.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/RST.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/RTF.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/S5.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Texinfo.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/XML.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSpandoc-%%PANDOC_VERSION%%.a
-%%PANDOC_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_pandoc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Blocks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/CharacterReferences.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Definition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Highlighting.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/LaTeXMathML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/ODT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/HTML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/LaTeX.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/Markdown.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/RST.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/TeXMath.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Shared.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Templates.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/ConTeXt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Docbook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/HTML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/LaTeX.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Man.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Markdown.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/MediaWiki.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/OpenDocument.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/RST.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/RTF.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/S5.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Texinfo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/XML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYING
%%NOPORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%PANDOC_LIBDIR_REL%%
-@exec /bin/sh %D/%%PANDOC_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister pandoc
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-polyparse-ghc/Makefile b/textproc/hs-polyparse-ghc/Makefile
index a6269383bff7..821e65d2b003 100644
--- a/textproc/hs-polyparse-ghc/Makefile
+++ b/textproc/hs-polyparse-ghc/Makefile
@@ -8,69 +8,12 @@
PORTNAME= polyparse
PORTVERSION= 1.4
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Alternative parser combinator libraries for Haskell
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-POLY_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-POLY_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- POLY_LIBDIR_REL=${POLY_LIBDIR_REL} \
- POLY_VERSION=${POLY_VERSION}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${POLY_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-polyparse-ghc/pkg-plist b/textproc/hs-polyparse-ghc/pkg-plist
index 56b2f9902f29..64c92e0ef130 100644
--- a/textproc/hs-polyparse-ghc/pkg-plist
+++ b/textproc/hs-polyparse-ghc/pkg-plist
@@ -1,27 +1,27 @@
@comment $FreeBSD$
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSpolyparse-%%POLY_VERSION%%.o
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse/ByteString.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijer.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijerWallace.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Base.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/ByteString.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Lazy.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Plain.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/State.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/StateLazy.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSpolyparse-%%POLY_VERSION%%.a
-%%POLY_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse/ByteString.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijerWallace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/ByteString.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Lazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Plain.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/State.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/StateLazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%POLY_LIBDIR_REL%%
-@exec /bin/sh %D/%%POLY_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister polyparse
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-polyparse/Makefile b/textproc/hs-polyparse/Makefile
index a6269383bff7..821e65d2b003 100644
--- a/textproc/hs-polyparse/Makefile
+++ b/textproc/hs-polyparse/Makefile
@@ -8,69 +8,12 @@
PORTNAME= polyparse
PORTVERSION= 1.4
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Alternative parser combinator libraries for Haskell
-BUILD_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc>=6.10:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-POLY_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-POLY_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- POLY_LIBDIR_REL=${POLY_LIBDIR_REL} \
- POLY_VERSION=${POLY_VERSION}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${POLY_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-polyparse/pkg-plist b/textproc/hs-polyparse/pkg-plist
index 56b2f9902f29..64c92e0ef130 100644
--- a/textproc/hs-polyparse/pkg-plist
+++ b/textproc/hs-polyparse/pkg-plist
@@ -1,27 +1,27 @@
@comment $FreeBSD$
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSpolyparse-%%POLY_VERSION%%.o
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse/ByteString.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijer.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijerWallace.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Base.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/ByteString.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Lazy.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Plain.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/State.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/StateLazy.hi
-%%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSpolyparse-%%POLY_VERSION%%.a
-%%POLY_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse/ByteString.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/HuttonMeijerWallace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/ByteString.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Lazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/Plain.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/State.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly/StateLazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%POLY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%POLY_LIBDIR_REL%%
-@exec /bin/sh %D/%%POLY_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators/Poly
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/ParserCombinators
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Parse
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister polyparse
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-stringsearch/Makefile b/textproc/hs-stringsearch/Makefile
index 071bb790c27b..3fa070e087f6 100644
--- a/textproc/hs-stringsearch/Makefile
+++ b/textproc/hs-stringsearch/Makefile
@@ -8,69 +8,9 @@ PORTNAME= stringsearch
PORTVERSION= 0.2.1.1
PORTREVISION= 4
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/stringsearch/${PORTVERSION}/ \
- http://kerneled.org/tmp/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= Boyer-Moore/Knuth-Morris-Pratt string search library
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-STRINGSEARCH_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-STRINGSEARCH_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- STRINGSEARCH_VERSION=${STRINGSEARCH_VERSION} \
- STRINGSEARCH_LIBDIR_REL=${STRINGSEARCH_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${STRINGSEARCH_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-stringsearch/pkg-plist b/textproc/hs-stringsearch/pkg-plist
index 2274c1cb0212..b993b62be67f 100644
--- a/textproc/hs-stringsearch/pkg-plist
+++ b/textproc/hs-stringsearch/pkg-plist
@@ -1,17 +1,17 @@
@comment $FreeBSD$
-%%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search/BoyerMoore.hi
-%%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search/KnuthMorrisPratt.hi
-%%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSstringsearch-%%STRINGSEARCH_VERSION%%.o
-%%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSstringsearch-%%STRINGSEARCH_VERSION%%.a
-%%STRINGSEARCH_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search/BoyerMoore.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search/KnuthMorrisPratt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search
-@dirrm %%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString
-@dirrm %%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
-@dirrm %%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%STRINGSEARCH_LIBDIR_REL%%
-@exec /bin/sh %D/%%STRINGSEARCH_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister stringsearch
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-tagsoup/Makefile b/textproc/hs-tagsoup/Makefile
index 5b972cdb786d..f67925a60ac8 100644
--- a/textproc/hs-tagsoup/Makefile
+++ b/textproc/hs-tagsoup/Makefile
@@ -9,76 +9,21 @@ PORTNAME= tagsoup
PORTVERSION= 0.6
PORTREVISION= 1
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell library for extracting information from HTML documents
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
-GHC_VERSION= 6.10.4
-TAGSOUP_VERSION= ${PORTVERSION}
+EXECUTABLE= tagsoup
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
+PORTDATA= *
+INSTALL_PORTDATA= cd ${WRKSRC} && \
+ ${INSTALL_DATA} ${WRKSRC}/tagsoup.htm ${DATADIR}
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-TAGSOUP_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- TAGSOUP_VERSION=${TAGSOUP_VERSION} \
- TAGSOUP_LIBDIR_REL=${TAGSOUP_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${TAGSOUP_LIBDIR_REL}/register.sh
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR} && cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/tagsoup.htm ${DATADIR} \
- && ${COPYTREE_SHARE} Example ${DATADIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= cd ${WRKSRC}/Example && \
+ ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-tagsoup/pkg-plist b/textproc/hs-tagsoup/pkg-plist
index 09d7184eb3a9..63f3e91be980 100644
--- a/textproc/hs-tagsoup/pkg-plist
+++ b/textproc/hs-tagsoup/pkg-plist
@@ -1,24 +1,24 @@
@comment $FreeBSD$
bin/tagsoup
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HStagsoup-%%TAGSOUP_VERSION%%.o
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/Download.hi
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup.hi
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Entity.hi
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Match.hi
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Parser.hi
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Render.hi
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Tree.hi
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Type.hi
-%%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHStagsoup-%%TAGSOUP_VERSION%%.a
-%%TAGSOUP_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/Download.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Entity.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Match.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Render.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Tree.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup/Type.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup
-@dirrm %%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML
-@dirrm %%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%TAGSOUP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%TAGSOUP_LIBDIR_REL%%
-@exec /bin/sh %D/%%TAGSOUP_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML/TagSoup
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/HTML
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister tagsoup
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-texmath/Makefile b/textproc/hs-texmath/Makefile
index fb4f6fbe1e35..0cbad2d893e9 100644
--- a/textproc/hs-texmath/Makefile
+++ b/textproc/hs-texmath/Makefile
@@ -8,82 +8,16 @@
PORTNAME= texmath
PORTVERSION= 0.1.1
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Conversion of LaTeX math formulas to MathML for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-xml>=1.2.6:${PORTSDIR}/textproc/hs-xml \
- hs-cgi>=3001.1.7.1:${PORTSDIR}/www/hs-cgi \
- hs-json>=0.4.3:${PORTSDIR}/converters/hs-json
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-xml>=1.2.6:${PORTSDIR}/textproc/hs-xml \
- hs-cgi>=3001.1.7.1:${PORTSDIR}/www/hs-cgi \
- hs-json>=0.4.3:${PORTSDIR}/converters/hs-json
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= cgi json xml
-GHC_VERSION= 6.10.4
-TEXMATH_VERSION= ${PORTVERSION}
+EXECUTABLE= testTeXMathML texmath-cgi
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
PORTDATA= *
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-TEXMATH_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- TEXMATH_VERSION=${TEXMATH_VERSION} \
- TEXMATH_LIBDIR_REL=${TEXMATH_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source --executables \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${TEXMATH_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-texmath/pkg-plist b/textproc/hs-texmath/pkg-plist
index 3ffbe951dd16..d1ba492f90a7 100644
--- a/textproc/hs-texmath/pkg-plist
+++ b/textproc/hs-texmath/pkg-plist
@@ -1,19 +1,19 @@
@comment $FreeBSD$
bin/testTeXMathML
bin/texmath-cgi
-%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HStexmath-%%TEXMATH_VERSION%%.o
-%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath.hi
-%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath/MathMLWriter.hi
-%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath/Parser.hi
-%%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHStexmath-%%TEXMATH_VERSION%%.a
-%%TEXMATH_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath/MathMLWriter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath/Parser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath
-@dirrm %%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%TEXMATH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%TEXMATH_LIBDIR_REL%%
-@exec /bin/sh %D/%%TEXMATH_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/TeXMath
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister texmath
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/hs-xml/Makefile b/textproc/hs-xml/Makefile
index 3f040b01d51e..0d62c9c9acba 100644
--- a/textproc/hs-xml/Makefile
+++ b/textproc/hs-xml/Makefile
@@ -8,68 +8,11 @@
PORTNAME= xml
PORTVERSION= 1.3.5
CATEGORIES= textproc haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A simple XML library for Haskell
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-HSXML_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSXML_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSXML_VERSION=${HSXML_VERSION} \
- HSXML_LIBDIR_REL=${HSXML_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSXML_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/textproc/hs-xml/pkg-plist b/textproc/hs-xml/pkg-plist
index d7e5945bc581..f8b7b5731d64 100644
--- a/textproc/hs-xml/pkg-plist
+++ b/textproc/hs-xml/pkg-plist
@@ -1,21 +1,21 @@
@comment $FreeBSD$
-%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxml-%%HSXML_VERSION%%.o
-%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light.hi
-%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Cursor.hi
-%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Input.hi
-%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Output.hi
-%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Proc.hi
-%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Types.hi
-%%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxml-%%HSXML_VERSION%%.a
-%%HSXML_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Cursor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Input.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Output.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Proc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light
-@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML
-@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%HSXML_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSXML_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSXML_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML/Light
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/XML
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister xml
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/textproc/pandoc/Makefile b/textproc/pandoc/Makefile
index baa1749a2fb2..95df711e7f59 100644
--- a/textproc/pandoc/Makefile
+++ b/textproc/pandoc/Makefile
@@ -9,100 +9,28 @@ PORTNAME= pandoc
PORTVERSION= 1.4
PORTREVISION= 1
CATEGORIES= textproc haskell
-MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= A general markup converter
-BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-zip-archive-ghc>=0.1.1.4:${PORTSDIR}/archivers/hs-zip-archive-ghc
-RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-zip-archive-ghc>=0.1:${PORTSDIR}/archivers/hs-zip-archive-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= utf8-string>=0.3 zip-archive>=0.1.1.4
MAN1= pandoc.1 markdown2pdf.1 html2markdown.1 hsmarkdown.1
-GHC_VERSION= 6.10.4
-PANDOC_VERSION= ${PORTVERSION}
-HLKATE_VERSION= 0.2.5.1
+EXECUTABLE= pandoc markdown2pdf hsmarkdown
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-PANDOC_LIBDIR_REL= lib/${DISTNAME}
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- PANDOC_VERSION=${PANDOC_VERSION} \
- PANDOC_LIBDIR_REL=${PANDOC_LIBDIR_REL}
+PORTDATA= *
OPTIONS= HIGHLIGHTING "Syntax highlighting support" off
.include <bsd.port.pre.mk>
-CONFIGURE_ARGS= --haddock-options=-w --prefix=${PREFIX}
-.if defined(NOPORTDATA)
-CONFIGURE_ARGS+= --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-.if exists(${LOCALBASE}/lib/highlighting-kate-${HLKATE_VERSION}/register.sh)
-WITH_HIGHLIGHTING=
-.endif
-
.if defined(WITH_HIGHLIGHTING)
CONFIGURE_ARGS+= --flags="highlighting"
-BUILD_DEPENDS+= hs-highlighting-kate-ghc>=0.2.3:${PORTSDIR}/textproc/hs-highlighting-kate-ghc
-RUN_DEPENDS+= hs-highlighting-kate-ghc>=0.2.3:${PORTSDIR}/textproc/hs-highlighting-kate-ghc
-LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
-.endif
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
+USE_HACKAGE+= highlighting-kate
.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${PANDOC_LIBDIR_REL}/register.sh
-.for man in ${MAN1}
- @${INSTALL_MAN} ${WRKSRC}/man/man1/${man} ${PREFIX}/man/man1
-.endfor
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/textproc/pandoc/pkg-plist b/textproc/pandoc/pkg-plist
index 58bcc8e042ad..5cbf0019fb6a 100644
--- a/textproc/pandoc/pkg-plist
+++ b/textproc/pandoc/pkg-plist
@@ -1,46 +1,47 @@
+@comment $FreeBSD$
bin/hsmarkdown
bin/markdown2pdf
bin/pandoc
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSpandoc-%%PANDOC_VERSION%%.o
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_pandoc.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Blocks.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/CharacterReferences.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Definition.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Highlighting.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/LaTeXMathML.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/ODT.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/HTML.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/LaTeX.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/Markdown.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/RST.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/TeXMath.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Shared.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Templates.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/ConTeXt.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Docbook.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/HTML.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/LaTeX.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Man.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Markdown.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/MediaWiki.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/OpenDocument.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/RST.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/RTF.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/S5.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Texinfo.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/XML.hi
-%%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSpandoc-%%PANDOC_VERSION%%.a
-%%PANDOC_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Paths_pandoc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Blocks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/CharacterReferences.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Definition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Highlighting.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/LaTeXMathML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/ODT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/HTML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/LaTeX.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/Markdown.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/RST.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers/TeXMath.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Shared.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Templates.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/ConTeXt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Docbook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/HTML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/LaTeX.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Man.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Markdown.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/MediaWiki.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/OpenDocument.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/RST.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/RTF.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/S5.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers/Texinfo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/XML.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYING
%%NOPORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
-@dirrm %%PANDOC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%PANDOC_LIBDIR_REL%%
-@exec /bin/sh %D/%%PANDOC_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Writers
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc/Readers
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Pandoc
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister pandoc
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/www/hs-HTTP/Makefile b/www/hs-HTTP/Makefile
index 4d3b4e81c971..7fda427bfe80 100644
--- a/www/hs-HTTP/Makefile
+++ b/www/hs-HTTP/Makefile
@@ -8,68 +8,9 @@
PORTNAME= HTTP
PORTVERSION= 4000.0.9
CATEGORIES= www haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
-COMMENT= A library for client-side HTTP
-
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-HTTP_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HTTP_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HTTP_VERSION=${HTTP_VERSION} \
- HTTP_LIBDIR_REL=${HTTP_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HTTP_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+COMMENT= A Haskell library for client-side HTTP
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/www/hs-HTTP/pkg-plist b/www/hs-HTTP/pkg-plist
index fe861f62c9f6..e633e1521133 100644
--- a/www/hs-HTTP/pkg-plist
+++ b/www/hs-HTTP/pkg-plist
@@ -1,32 +1,32 @@
@comment $FreeBSD$
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSHTTP-%%HTTP_VERSION%%.o
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Browser.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/BufferType.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Auth.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Base.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Base64.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Cookie.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/HandleStream.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Headers.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/MD5.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/MD5Aux.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Proxy.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Stream.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Utils.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Stream.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/StreamDebugger.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/StreamSocket.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/TCP.hi
-%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSHTTP-%%HTTP_VERSION%%.a
-%%HTTP_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Browser.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/BufferType.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Auth.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Base64.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Cookie.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/HandleStream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Headers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/MD5.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/MD5Aux.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Proxy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Stream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Stream.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/StreamDebugger.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/StreamSocket.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/TCP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP
-@dirrm %%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
-@dirrm %%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HTTP_LIBDIR_REL%%
-@exec /bin/sh %D/%%HTTP_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister HTTP
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/www/hs-cgi/Makefile b/www/hs-cgi/Makefile
index ad10393c0675..7d04eae7dd35 100644
--- a/www/hs-cgi/Makefile
+++ b/www/hs-cgi/Makefile
@@ -8,68 +8,11 @@
PORTNAME= cgi
PORTVERSION= 3001.1.7.1
CATEGORIES= www haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell library for writing CGI programs
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
-GHC_VERSION= 6.10.4
-CGI_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-CGI_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- CGI_VERSION=${CGI_VERSION} \
- CGI_LIBDIR_REL=${CGI_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${CGI_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/www/hs-cgi/pkg-plist b/www/hs-cgi/pkg-plist
index 37b44e0ce9fe..0a290293de8e 100644
--- a/www/hs-cgi/pkg-plist
+++ b/www/hs-cgi/pkg-plist
@@ -1,22 +1,22 @@
@comment $FreeBSD$
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HScgi-%%CGI_VERSION%%.o
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI.hi
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Accept.hi
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Compat.hi
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Cookie.hi
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Header.hi
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Monad.hi
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Multipart.hi
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Protocol.hi
-%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHScgi-%%CGI_VERSION%%.a
-%%CGI_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Accept.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Compat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Cookie.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Header.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Monad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Multipart.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Protocol.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI
-@dirrm %%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
-@dirrm %%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%CGI_LIBDIR_REL%%
-@exec /bin/sh %D/%%CGI_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister cgi
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/www/hs-fastcgi/Makefile b/www/hs-fastcgi/Makefile
index 3488367490bc..29651de4b486 100644
--- a/www/hs-fastcgi/Makefile
+++ b/www/hs-fastcgi/Makefile
@@ -8,76 +8,12 @@
PORTNAME= fastcgi
PORTVERSION= 3001.0.2.2
CATEGORIES= www haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell library for writing FastCGI programs
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-cgi>=3000.0.0:${PORTSDIR}/www/hs-cgi
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-cgi>=3000.0.0:${PORTSDIR}/www/hs-cgi
+USE_HACKAGE= cgi>=3000.0.0
LIB_DEPENDS= fcgi.0:${PORTSDIR}/www/fcgi
-GHC_VERSION= 6.10.4
-FASTCGI_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-LDFLAGS+= -L${LOCALBASE}/lib
-CPPFLAGS+= -I${LOCALBASE}/include
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-FASTCGI_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- FASTCGI_VERSION=${FASTCGI_VERSION} \
- FASTCGI_LIBDIR_REL=${FASTCGI_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${SETENV} LDFLAGS="${LDFLAGS}" CPPFLAGS=" ${CPPFLAGS}" ./${CONFIGURE_SCRIPT} \
- && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --extra-include-dirs=${LOCALBASE}/include \
- --extra-lib-dirs=${LOCALBASE}/lib
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${FASTCGI_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/www/hs-fastcgi/pkg-plist b/www/hs-fastcgi/pkg-plist
index 51cd08a8fbbd..0da51a56d321 100644
--- a/www/hs-fastcgi/pkg-plist
+++ b/www/hs-fastcgi/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%FASTCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSfastcgi-%%FASTCGI_VERSION%%.o
-%%FASTCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/FastCGI.hi
-%%FASTCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSfastcgi-%%FASTCGI_VERSION%%.a
-%%FASTCGI_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/FastCGI.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%FASTCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
-@dirrm %%FASTCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%FASTCGI_LIBDIR_REL%%
-@exec /bin/sh %D/%%FASTCGI_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister fastcgi
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/www/hs-http-server/Makefile b/www/hs-http-server/Makefile
index f9dd1ba2812a..35375916b905 100644
--- a/www/hs-http-server/Makefile
+++ b/www/hs-http-server/Makefile
@@ -8,93 +8,21 @@
PORTNAME= http-server
PORTVERSION= 1
CATEGORIES= www haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
-COMMENT= A library fro writing Haskell web servers
+COMMENT= A library for writing Haskell web servers
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-url>=2:${PORTSDIR}/www/hs-url \
- hs-HTTP>=4000.0.7:${PORTSDIR}/www/hs-HTTP \
- hs-utf8-string-ghc>=0.3.4:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-mime>=0.3:${PORTSDIR}/mail/hs-mime
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-url>=2:${PORTSDIR}/www/hs-url \
- hs-HTTP>=4000.0.7:${PORTSDIR}/www/hs-HTTP \
- hs-utf8-string-ghc>=0.3.4:${PORTSDIR}/devel/hs-utf8-string-ghc \
- hs-mime>=0.3:${PORTSDIR}/mail/hs-mime
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= HTTP>=4000.0.7 mime>=0.3 url>=2 utf8-string>=0.3.4
-GHC_VERSION= 6.10.4
-HTTPSERVER_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${DISTNAME}
-PORTEXAMPLES= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HTTPSERVER_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HTTPSERVER_VERSION=${HTTPSERVER_VERSION} \
- HTTPSERVER_LIBDIR_REL=${HTTPSERVER_LIBDIR_REL}
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= cd ${WRKSRC}/example && \
+ ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
.if !defined(NOPORTEXAMPLES)
SUB_FILES= pkg-message
+SHOW_PKGMSG= yes
.endif
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HTTPSERVER_LIBDIR_REL}/register.sh
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/example && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-.endif
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-.if !defined(NOPORTEXAMPLES)
- @${ECHO_MSG} -e "\a"
- @${ECHO_MSG} "================================================================="
- @${CAT} "${PKGMESSAGE}"
- @${ECHO_MSG} "================================================================="
- @${ECHO_MSG}
-.endif
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/www/hs-http-server/pkg-plist b/www/hs-http-server/pkg-plist
index 6cf4782e9bfb..dbb52486544d 100644
--- a/www/hs-http-server/pkg-plist
+++ b/www/hs-http-server/pkg-plist
@@ -1,20 +1,20 @@
@comment $FreeBSD$
-%%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HShttp-server-%%HTTPSERVER_VERSION%%.o
-%%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server.hi
-%%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server/HtmlForm.hi
-%%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server/Logger.hi
-%%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server/Response.hi
-%%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server/Utils.hi
-%%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHShttp-server-%%HTTPSERVER_VERSION%%.a
-%%HTTPSERVER_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server/HtmlForm.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server/Logger.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server/Response.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server/Utils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server
-@dirrm %%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP
-@dirrm %%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
-@dirrm %%HTTPSERVER_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HTTPSERVER_LIBDIR_REL%%
-@exec /bin/sh %D/%%HTTPSERVER_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Server
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister http-server
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/www/hs-oeis/Makefile b/www/hs-oeis/Makefile
index c9114a779b10..761983207ad9 100644
--- a/www/hs-oeis/Makefile
+++ b/www/hs-oeis/Makefile
@@ -8,78 +8,13 @@
PORTNAME= oeis
PORTVERSION= 0.2.2
CATEGORIES= www haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell interface to the Online Encyclopedia of Integer Sequences
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-HTTP>=4000.0.2:${PORTSDIR}/www/hs-HTTP
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-HTTP>=4000.0.2:${PORTSDIR}/www/hs-HTTP
+USE_HACKAGE= HTTP>=4000.0.2
-GHC_VERSION= 6.10.4
-OEIS_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
PORTDATA= *
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-OEIS_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- OEIS_VERSION=${OEIS_VERSION} \
- OEIS_LIBDIR_REL=${OEIS_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${OEIS_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/www/hs-oeis/pkg-plist b/www/hs-oeis/pkg-plist
index 5c380d4a86e6..608196b2a48a 100644
--- a/www/hs-oeis/pkg-plist
+++ b/www/hs-oeis/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSoeis-%%OEIS_VERSION%%.o
-%%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Math/OEIS.hi
-%%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSoeis-%%OEIS_VERSION%%.a
-%%OEIS_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Math/OEIS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Math
-@dirrm %%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%OEIS_LIBDIR_REL%%
-@exec /bin/sh %D/%%OEIS_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Math
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister oeis
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/www/hs-scgi/Makefile b/www/hs-scgi/Makefile
index 1613c1c34d75..8ba7ce02bc9a 100644
--- a/www/hs-scgi/Makefile
+++ b/www/hs-scgi/Makefile
@@ -8,70 +8,11 @@
PORTNAME= scgi
PORTVERSION= 0.3.1
CATEGORIES= www haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell library for writing SCGI programs
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-cgi>=3000.0.0:${PORTSDIR}/www/hs-cgi
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-cgi>=3000.0.0:${PORTSDIR}/www/hs-cgi
-
-GHC_VERSION= 6.10.4
-SCGI_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-SCGI_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- SCGI_VERSION=${SCGI_VERSION} \
- SCGI_LIBDIR_REL=${SCGI_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${SCGI_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+USE_HACKAGE= cgi
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/www/hs-scgi/pkg-plist b/www/hs-scgi/pkg-plist
index ec8e865a60dd..f613cc0e5c42 100644
--- a/www/hs-scgi/pkg-plist
+++ b/www/hs-scgi/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSscgi-%%SCGI_VERSION%%.o
-%%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/SCGI.hi
-%%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSscgi-%%SCGI_VERSION%%.a
-%%SCGI_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/SCGI.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/COPYING
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
-@dirrm %%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%SCGI_LIBDIR_REL%%
-@exec /bin/sh %D/%%SCGI_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister scgi
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/www/hs-url/Makefile b/www/hs-url/Makefile
index 5f43a58e30e6..428e53d92a5a 100644
--- a/www/hs-url/Makefile
+++ b/www/hs-url/Makefile
@@ -8,71 +8,12 @@
PORTNAME= url
PORTVERSION= 2.1
CATEGORIES= www haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= A Haskell library for working with URLs
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3.4:${PORTSDIR}/devel/hs-utf8-string-ghc
-
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-utf8-string-ghc>=0.3.4:${PORTSDIR}/devel/hs-utf8-string-ghc
-
-GHC_VERSION= 6.10.4
-HSURL_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSURL_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSURL_VERSION=${HSURL_VERSION} \
- HSURL_LIBDIR_REL=${HSURL_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSURL_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= utf8-string>=0.3.4
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/www/hs-url/pkg-plist b/www/hs-url/pkg-plist
index a0b02ef6d782..3c88b703fa94 100644
--- a/www/hs-url/pkg-plist
+++ b/www/hs-url/pkg-plist
@@ -1,14 +1,14 @@
@comment $FreeBSD$
-%%HSURL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSurl-%%HSURL_VERSION%%.o
-%%HSURL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/URL.hi
-%%HSURL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSurl-%%HSURL_VERSION%%.a
-%%HSURL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/URL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSURL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
-@dirrm %%HSURL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSURL_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSURL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister url
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-toolkits/hs-GLURaw-ghc/Makefile b/x11-toolkits/hs-GLURaw-ghc/Makefile
index a3b4bc759d12..c78cdcc688a4 100644
--- a/x11-toolkits/hs-GLURaw-ghc/Makefile
+++ b/x11-toolkits/hs-GLURaw-ghc/Makefile
@@ -8,75 +8,14 @@
PORTNAME= GLURaw
PORTVERSION= 1.1.0.0
CATEGORIES= x11-toolkits haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= jacula@gmail.com
COMMENT= A raw Haskell binding for the OpenGL Utility Toolkit
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= OpenGLRaw
USE_GL= glu
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc
-
-GHC_VERSION= 6.10.4
-HSGLURAW_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSGLURAW_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSGLURAW_VERSION=${HSGLURAW_VERSION} \
- HSGLURAW_LIBDIR_REL=${HSGLURAW_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --extra-include-dirs=${LOCALBASE}/include \
- --extra-lib-dirs=${LOCALBASE}/lib
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSGLURAW_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-GLURaw-ghc/pkg-plist b/x11-toolkits/hs-GLURaw-ghc/pkg-plist
index fc77609be59b..57a1db218f1b 100644
--- a/x11-toolkits/hs-GLURaw-ghc/pkg-plist
+++ b/x11-toolkits/hs-GLURaw-ghc/pkg-plist
@@ -1,23 +1,23 @@
@comment $FreeBSD$
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/APIEntry.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Callbacks.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Functions.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Tokens.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Types.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/TypesInternal.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSGLURaw-%%HSGLURAW_VERSION%%.o
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSGLURaw-%%HSGLURAW_VERSION%%.a
-%%HSGLURAW_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/APIEntry.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Callbacks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Functions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/TypesInternal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSGLURAW_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSGLURAW_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister GLURaw
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-toolkits/hs-GLURaw/Makefile b/x11-toolkits/hs-GLURaw/Makefile
index a3b4bc759d12..c78cdcc688a4 100644
--- a/x11-toolkits/hs-GLURaw/Makefile
+++ b/x11-toolkits/hs-GLURaw/Makefile
@@ -8,75 +8,14 @@
PORTNAME= GLURaw
PORTVERSION= 1.1.0.0
CATEGORIES= x11-toolkits haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= jacula@gmail.com
COMMENT= A raw Haskell binding for the OpenGL Utility Toolkit
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= OpenGLRaw
USE_GL= glu
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-OpenGLRaw-ghc>=1.1.0.1:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc
-
-GHC_VERSION= 6.10.4
-HSGLURAW_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSGLURAW_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSGLURAW_VERSION=${HSGLURAW_VERSION} \
- HSGLURAW_LIBDIR_REL=${HSGLURAW_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --extra-include-dirs=${LOCALBASE}/include \
- --extra-lib-dirs=${LOCALBASE}/lib
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSGLURAW_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-GLURaw/pkg-plist b/x11-toolkits/hs-GLURaw/pkg-plist
index fc77609be59b..57a1db218f1b 100644
--- a/x11-toolkits/hs-GLURaw/pkg-plist
+++ b/x11-toolkits/hs-GLURaw/pkg-plist
@@ -1,23 +1,23 @@
@comment $FreeBSD$
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/APIEntry.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Callbacks.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Functions.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Tokens.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Types.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/TypesInternal.hi
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSGLURaw-%%HSGLURAW_VERSION%%.o
-%%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSGLURaw-%%HSGLURAW_VERSION%%.a
-%%HSGLURAW_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/APIEntry.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Callbacks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Functions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw/TypesInternal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSGLURAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSGLURAW_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSGLURAW_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU/Raw
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/GLU
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister GLURaw
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-toolkits/hs-GLUT/Makefile b/x11-toolkits/hs-GLUT/Makefile
index cc9da831682d..8cb364590d22 100644
--- a/x11-toolkits/hs-GLUT/Makefile
+++ b/x11-toolkits/hs-GLUT/Makefile
@@ -7,81 +7,17 @@
PORTNAME= glut
PORTVERSION= 2.2.2.0
CATEGORIES= x11-toolkits haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/GLUT/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
-DISTNAME= GLUT-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Haskell binding for the OpenGL Utility Toolkit
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= OpenGL>=2.3 StateVar Tensor
USE_GL= glut
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-opengl-ghc>=2.3:${PORTSDIR}/x11-toolkits/hs-opengl-ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor
-
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-opengl-ghc>=2.3:${PORTSDIR}/x11-toolkits/hs-opengl-ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor
-
-GHC_VERSION= 6.10.4
-HSGLUT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSGLUT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSGLUT_VERSION=${HSGLUT_VERSION} \
- HSGLUT_LIBDIR_REL=${HSGLUT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --extra-include-dirs=${LOCALBASE}/include \
- --extra-lib-dirs=${LOCALBASE}/lib
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSGLUT_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+MASTER_SITES= http://hackage.haskell.org/packages/archive/GLUT/${PORTVERSION}/
+DISTNAME= GLUT-${PORTVERSION}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-GLUT/pkg-plist b/x11-toolkits/hs-GLUT/pkg-plist
index c68dab137090..f16a8e98b1aa 100644
--- a/x11-toolkits/hs-GLUT/pkg-plist
+++ b/x11-toolkits/hs-GLUT/pkg-plist
@@ -1,42 +1,42 @@
@comment $FreeBSD$
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Begin.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Global.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Registration.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Window.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Colormap.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Debugging.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/DeviceControl.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Fonts.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/GameMode.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Initialization.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Menu.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Objects.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Overlay.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/QueryUtils.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/APIEntry.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Callbacks.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Fonts.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Functions.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Tokens.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/State.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Types.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Window.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSGLUT-%%HSGLUT_VERSION%%.o
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSGLUT-%%HSGLUT_VERSION%%.a
-%%HSGLUT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Begin.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Global.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Registration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Colormap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Debugging.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/DeviceControl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Fonts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/GameMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Initialization.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Menu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Objects.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Overlay.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/QueryUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/APIEntry.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Callbacks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Fonts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Functions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/State.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSGLUT-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSGLUT-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSGLUT_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSGLUT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister GLUT
+@unexec %D/bin/ghc-pkg unregister GLUT-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-toolkits/hs-OpenGL/Makefile b/x11-toolkits/hs-OpenGL/Makefile
index 1944b779dcbd..6891cf9d0167 100644
--- a/x11-toolkits/hs-OpenGL/Makefile
+++ b/x11-toolkits/hs-OpenGL/Makefile
@@ -7,81 +7,16 @@
PORTNAME= opengl
PORTVERSION= 2.4.0.1
CATEGORIES= x11-toolkits haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/OpenGL/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
-DISTNAME= OpenGL-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= OpenGL bindings for Haskell programs
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-OpenGLRaw-ghc>=1.1.0.0:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc \
- hs-GLURaw-ghc>=1.1.0.0:${PORTSDIR}/x11-toolkits/hs-GLURaw-ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor \
- hs-ObjectName>=1.0.0.0:${PORTSDIR}/devel/hs-ObjectName
-
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-OpenGLRaw-ghc>=1.1.0.0:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc \
- hs-GLURaw-ghc>=1.1.0.0:${PORTSDIR}/x11-toolkits/hs-GLURaw-ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor \
- hs-ObjectName>=1.0.0.0:${PORTSDIR}/devel/hs-ObjectName
-
-GHC_VERSION= 6.10.4
-HSOPENGL_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSOPENGL_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSOPENGL_VERSION=${HSOPENGL_VERSION} \
- HSOPENGL_LIBDIR_REL=${HSOPENGL_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= GLURaw>=1.1.0.0 ObjectName OpenGLRaw>=1.1.0.0 StateVar Tensor
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSOPENGL_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+MASTER_SITES= http://hackage.haskell.org/packages/archive/OpenGL/${PORTVERSION}/
+DISTNAME= OpenGL-${PORTVERSION}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-OpenGL/pkg-plist b/x11-toolkits/hs-OpenGL/pkg-plist
index 3752f75bea31..93f520f6a253 100644
--- a/x11-toolkits/hs-OpenGL/pkg-plist
+++ b/x11-toolkits/hs-OpenGL/pkg-plist
@@ -1,101 +1,101 @@
@comment $FreeBSD$
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Antialiasing.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BeginEnd.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Bitmaps.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BlendingFactor.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BufferMode.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BufferObjects.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Capability.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Clipping.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ColorSum.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Colors.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ComparisonFunction.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ControlPoint.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/CoordTrans.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/DataType.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/DisplayLists.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Domain.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/EdgeFlag.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Evaluators.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Exception.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Face.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Feedback.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/FlushFinish.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Fog.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Framebuffer.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/GLboolean.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Hints.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/IOState.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/LineSegments.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PeekPoke.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PerFragment.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelData.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelFormat.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/ColorTable.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Convolution.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Histogram.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Minmax.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelMap.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelStorage.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelTransfer.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Rasterization.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Reset.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Sink.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PointParameter.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Points.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PolygonMode.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Polygons.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PrimitiveMode.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/QueryUtils.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/RasterPos.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ReadCopyPixels.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Rectangles.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/RenderMode.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/SavingState.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Selection.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Shaders.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/StringQueries.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Application.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Environments.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Objects.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Parameters.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/PixelInternalFormat.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Queries.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Specification.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TexParameter.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TextureTarget.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TextureUnit.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexArrays.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexAttributes.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexSpec.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Errors.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/ErrorsInternal.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Initialization.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Matrix.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Mipmapping.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/NURBS.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Quadrics.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Tessellation.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSOpenGL-%%HSOPENGL_VERSION%%.o
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSOpenGL-%%HSOPENGL_VERSION%%.a
-%%HSOPENGL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Antialiasing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BeginEnd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Bitmaps.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BlendingFactor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BufferMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BufferObjects.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Capability.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Clipping.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ColorSum.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Colors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ComparisonFunction.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ControlPoint.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/CoordTrans.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/DataType.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/DisplayLists.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Domain.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/EdgeFlag.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Evaluators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Exception.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Face.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Feedback.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/FlushFinish.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Fog.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Framebuffer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/GLboolean.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Hints.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/IOState.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/LineSegments.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PeekPoke.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PerFragment.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelData.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelFormat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/ColorTable.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Convolution.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Histogram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Minmax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelStorage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelTransfer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Rasterization.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Reset.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Sink.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PointParameter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Points.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PolygonMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Polygons.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PrimitiveMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/QueryUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/RasterPos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ReadCopyPixels.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Rectangles.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/RenderMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/SavingState.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Selection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Shaders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/StringQueries.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Application.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Environments.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Objects.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Parameters.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/PixelInternalFormat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Queries.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Specification.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TexParameter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TextureTarget.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TextureUnit.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexArrays.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexAttributes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexSpec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Errors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/ErrorsInternal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Initialization.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Matrix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Mipmapping.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/NURBS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Quadrics.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Tessellation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSOpenGL-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSOpenGL-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSOPENGL_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSOPENGL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister OpenGL
+@unexec %D/bin/ghc-pkg unregister OpenGL-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-toolkits/hs-OpenGLRaw-ghc/Makefile b/x11-toolkits/hs-OpenGLRaw-ghc/Makefile
index cd76823cc077..0189670b2176 100644
--- a/x11-toolkits/hs-OpenGLRaw-ghc/Makefile
+++ b/x11-toolkits/hs-OpenGLRaw-ghc/Makefile
@@ -8,73 +8,13 @@
PORTNAME= OpenGLRaw
PORTVERSION= 1.1.0.1
CATEGORIES= x11-toolkits haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= jacula@gmail.com
COMMENT= A raw Haskell binding for the OpenGL graphics system
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
+CABAL_SETUP= Setup.hs
USE_GL= gl
-GHC_VERSION= 6.10.4
-HSOPENGLRAW_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSOPENGLRAW_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSOPENGLRAW_VERSION=${HSOPENGLRAW_VERSION} \
- HSOPENGLRAW_LIBDIR_REL=${HSOPENGLRAW_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --extra-include-dirs=${LOCALBASE}/include \
- --extra-lib-dirs=${LOCALBASE}/lib
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSOPENGLRAW_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-OpenGLRaw-ghc/pkg-plist b/x11-toolkits/hs-OpenGLRaw-ghc/pkg-plist
index 65e4714ebc3b..a04c10253f1e 100644
--- a/x11-toolkits/hs-OpenGLRaw-ghc/pkg-plist
+++ b/x11-toolkits/hs-OpenGLRaw-ghc/pkg-plist
@@ -1,205 +1,205 @@
@comment $FreeBSD$
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ColorBufferFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility/Functions.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility/Tokens.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/CopyBuffer.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/CreateContextProfile.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthBufferFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthClamp.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthTexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawBuffers.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawBuffersBlend.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawElementsBaseVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawInstanced.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FragmentProgram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FragmentShader.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferSRGB.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/GeometryShader4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/HalfFloatPixel.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/HalfFloatVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/InstancedArrays.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/MapBufferRange.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/MatrixPalette.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Multisample.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Multitexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/OcclusionQuery.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PixelBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PointParameters.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PointSprite.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ProvokingVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/SampleShading.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/SeamlessCubeMap.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShaderObjects.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShadingLanguage100.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Shadow.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShadowAmbient.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Sync.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureBorderClamp.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCompression.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCompressionRGTC.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCubeMap.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCubeMapArray.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvAdd.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvCombine.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvCrossbar.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvDot3.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureGather.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureMirroredRepeat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureMultisample.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureRG.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureRectangle.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TransposeMatrix.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/UniformBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexArrayObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexBlend.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexProgram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexShader.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/WindowPos.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Functions.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Tokens.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Types.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/TypesInternal.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core32.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Abgr.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Bgra.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BindableUniform.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendColor.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendEquationSeparate.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendFuncSeparate.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendMinmax.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendSubtract.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ClipVolumeHint.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Cmyka.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ColorSubtable.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CompiledVertexArray.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Convolution.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CoordinateFrame.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CopyTexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CullVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DepthBoundsTest.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DirectStateAccess.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DrawRangeElements.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FogCoord.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FourTwoTwoPixels.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FragmentLighting.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FramebufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FramebufferSRGB.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/GeometryShader4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/GpuProgramParameters.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Histogram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexArrayFormats.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexFunc.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexMaterial.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/LightTexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/MultiDrawArrays.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Multisample.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PackedFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PackedPixels.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PalettedTexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PixelTransform.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PointParameters.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PolygonOffset.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ProvokingVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/RescaleNormal.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SceneMarker.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SecondaryColor.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SeparateSpecularColor.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SharedTexturePalette.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilClearTag.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilTwoSide.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilWrap.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Subtexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Texture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Texture3D.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionDxt1.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionLatc.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionS3tc.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvAdd.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvCombine.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvDot3.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureFilterAnisotropic.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureInteger.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureLodBias.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureMirrorClamp.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TexturePerturbNormal.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureSRGB.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureSwizzle.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TimerQuery.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexArray.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexShader.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexWeighting.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Extensions.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/GetProcAddress.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ConditionalRender.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/CopyDepthToColor.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/DepthBufferFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/DepthClamp.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ExplicitMultisample.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/Fence.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FloatBuffer.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FogDistance.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FragmentProgram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FragmentProgram2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FramebufferMultisampleCoverage.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/GeometryProgram4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/GpuProgram4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/HalfFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/LightMaxExponent.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/MultisampleFilterHint.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/OcclusionQuery.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PackedDepthStencil.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ParameterBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PixelDataRange.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PointSprite.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PresentVideo.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PrimitiveRestart.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TexgenEmboss.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TexgenReflection.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureCompressionVtc.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureEnvCombine4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureExpandNormal.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureRectangle.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader3.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TransformFeedback.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TransformFeedback2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexArrayRange.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexArrayRange2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram2Option.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram3.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSOpenGLRaw-%%HSOPENGLRAW_VERSION%%.o
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSOpenGLRaw-%%HSOPENGLRAW_VERSION%%.a
-%%HSOPENGLRAW_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ColorBufferFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility/Functions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/CopyBuffer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/CreateContextProfile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthBufferFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthClamp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthTexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawBuffers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawBuffersBlend.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawElementsBaseVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawInstanced.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FragmentProgram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FragmentShader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferSRGB.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/GeometryShader4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/HalfFloatPixel.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/HalfFloatVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/InstancedArrays.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/MapBufferRange.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/MatrixPalette.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Multisample.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Multitexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/OcclusionQuery.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PixelBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PointParameters.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PointSprite.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ProvokingVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/SampleShading.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/SeamlessCubeMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShaderObjects.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShadingLanguage100.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Shadow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShadowAmbient.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Sync.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureBorderClamp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCompression.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCompressionRGTC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCubeMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCubeMapArray.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvAdd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvCombine.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvCrossbar.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvDot3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureGather.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureMirroredRepeat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureMultisample.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureRG.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureRectangle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TransposeMatrix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/UniformBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexArrayObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexBlend.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexProgram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexShader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/WindowPos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Functions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/TypesInternal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core32.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Abgr.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Bgra.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BindableUniform.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendColor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendEquationSeparate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendFuncSeparate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendMinmax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendSubtract.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ClipVolumeHint.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Cmyka.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ColorSubtable.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CompiledVertexArray.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Convolution.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CoordinateFrame.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CopyTexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CullVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DepthBoundsTest.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DirectStateAccess.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DrawRangeElements.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FogCoord.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FourTwoTwoPixels.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FragmentLighting.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FramebufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FramebufferSRGB.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/GeometryShader4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/GpuProgramParameters.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Histogram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexArrayFormats.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexFunc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexMaterial.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/LightTexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/MultiDrawArrays.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Multisample.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PackedFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PackedPixels.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PalettedTexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PixelTransform.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PointParameters.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PolygonOffset.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ProvokingVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/RescaleNormal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SceneMarker.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SecondaryColor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SeparateSpecularColor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SharedTexturePalette.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilClearTag.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilTwoSide.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilWrap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Subtexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Texture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Texture3D.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionDxt1.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionLatc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionS3tc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvAdd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvCombine.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvDot3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureFilterAnisotropic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureInteger.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureLodBias.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureMirrorClamp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TexturePerturbNormal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureSRGB.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureSwizzle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TimerQuery.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexArray.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexShader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexWeighting.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Extensions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/GetProcAddress.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ConditionalRender.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/CopyDepthToColor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/DepthBufferFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/DepthClamp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ExplicitMultisample.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/Fence.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FloatBuffer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FogDistance.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FragmentProgram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FragmentProgram2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FramebufferMultisampleCoverage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/GeometryProgram4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/GpuProgram4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/HalfFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/LightMaxExponent.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/MultisampleFilterHint.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/OcclusionQuery.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PackedDepthStencil.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ParameterBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PixelDataRange.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PointSprite.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PresentVideo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PrimitiveRestart.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TexgenEmboss.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TexgenReflection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureCompressionVtc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureEnvCombine4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureExpandNormal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureRectangle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TransformFeedback.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TransformFeedback2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexArrayRange.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexArrayRange2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram2Option.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSOPENGLRAW_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister OpenGLRaw
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-toolkits/hs-OpenGLRaw/Makefile b/x11-toolkits/hs-OpenGLRaw/Makefile
index cd76823cc077..0189670b2176 100644
--- a/x11-toolkits/hs-OpenGLRaw/Makefile
+++ b/x11-toolkits/hs-OpenGLRaw/Makefile
@@ -8,73 +8,13 @@
PORTNAME= OpenGLRaw
PORTVERSION= 1.1.0.1
CATEGORIES= x11-toolkits haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= jacula@gmail.com
COMMENT= A raw Haskell binding for the OpenGL graphics system
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
+CABAL_SETUP= Setup.hs
USE_GL= gl
-GHC_VERSION= 6.10.4
-HSOPENGLRAW_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSOPENGLRAW_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSOPENGLRAW_VERSION=${HSOPENGLRAW_VERSION} \
- HSOPENGLRAW_LIBDIR_REL=${HSOPENGLRAW_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --extra-include-dirs=${LOCALBASE}/include \
- --extra-lib-dirs=${LOCALBASE}/lib
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSOPENGLRAW_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-OpenGLRaw/pkg-plist b/x11-toolkits/hs-OpenGLRaw/pkg-plist
index 65e4714ebc3b..a04c10253f1e 100644
--- a/x11-toolkits/hs-OpenGLRaw/pkg-plist
+++ b/x11-toolkits/hs-OpenGLRaw/pkg-plist
@@ -1,205 +1,205 @@
@comment $FreeBSD$
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ColorBufferFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility/Functions.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility/Tokens.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/CopyBuffer.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/CreateContextProfile.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthBufferFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthClamp.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthTexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawBuffers.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawBuffersBlend.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawElementsBaseVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawInstanced.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FragmentProgram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FragmentShader.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferSRGB.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/GeometryShader4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/HalfFloatPixel.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/HalfFloatVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/InstancedArrays.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/MapBufferRange.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/MatrixPalette.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Multisample.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Multitexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/OcclusionQuery.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PixelBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PointParameters.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PointSprite.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ProvokingVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/SampleShading.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/SeamlessCubeMap.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShaderObjects.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShadingLanguage100.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Shadow.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShadowAmbient.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Sync.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureBorderClamp.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCompression.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCompressionRGTC.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCubeMap.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCubeMapArray.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvAdd.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvCombine.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvCrossbar.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvDot3.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureGather.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureMirroredRepeat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureMultisample.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureRG.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureRectangle.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TransposeMatrix.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/UniformBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexArrayObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexBlend.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexProgram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexShader.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/WindowPos.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Functions.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Tokens.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Types.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/TypesInternal.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core32.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Abgr.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Bgra.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BindableUniform.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendColor.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendEquationSeparate.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendFuncSeparate.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendMinmax.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendSubtract.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ClipVolumeHint.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Cmyka.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ColorSubtable.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CompiledVertexArray.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Convolution.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CoordinateFrame.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CopyTexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CullVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DepthBoundsTest.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DirectStateAccess.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DrawRangeElements.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FogCoord.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FourTwoTwoPixels.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FragmentLighting.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FramebufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FramebufferSRGB.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/GeometryShader4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/GpuProgramParameters.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Histogram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexArrayFormats.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexFunc.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexMaterial.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/LightTexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/MultiDrawArrays.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Multisample.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PackedFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PackedPixels.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PalettedTexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PixelTransform.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PointParameters.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PolygonOffset.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ProvokingVertex.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/RescaleNormal.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SceneMarker.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SecondaryColor.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SeparateSpecularColor.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SharedTexturePalette.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilClearTag.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilTwoSide.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilWrap.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Subtexture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Texture.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Texture3D.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionDxt1.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionLatc.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionS3tc.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvAdd.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvCombine.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvDot3.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureFilterAnisotropic.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureInteger.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureLodBias.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureMirrorClamp.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TexturePerturbNormal.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureSRGB.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureSwizzle.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TimerQuery.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexArray.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexShader.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexWeighting.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Extensions.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/GetProcAddress.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ConditionalRender.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/CopyDepthToColor.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/DepthBufferFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/DepthClamp.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ExplicitMultisample.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/Fence.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FloatBuffer.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FogDistance.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FragmentProgram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FragmentProgram2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FramebufferMultisampleCoverage.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/GeometryProgram4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/GpuProgram4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/HalfFloat.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/LightMaxExponent.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/MultisampleFilterHint.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/OcclusionQuery.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PackedDepthStencil.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ParameterBufferObject.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PixelDataRange.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PointSprite.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PresentVideo.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PrimitiveRestart.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TexgenEmboss.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TexgenReflection.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureCompressionVtc.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureEnvCombine4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureExpandNormal.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureRectangle.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader3.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TransformFeedback.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TransformFeedback2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexArrayRange.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexArrayRange2.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram2Option.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram3.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram4.hi
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSOpenGLRaw-%%HSOPENGLRAW_VERSION%%.o
-%%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSOpenGLRaw-%%HSOPENGLRAW_VERSION%%.a
-%%HSOPENGLRAW_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ColorBufferFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility/Functions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/CopyBuffer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/CreateContextProfile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthBufferFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthClamp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DepthTexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawBuffers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawBuffersBlend.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawElementsBaseVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/DrawInstanced.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FragmentProgram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FragmentShader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferSRGB.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/GeometryShader4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/HalfFloatPixel.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/HalfFloatVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/InstancedArrays.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/MapBufferRange.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/MatrixPalette.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Multisample.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Multitexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/OcclusionQuery.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PixelBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PointParameters.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/PointSprite.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ProvokingVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/SampleShading.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/SeamlessCubeMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShaderObjects.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShadingLanguage100.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Shadow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/ShadowAmbient.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Sync.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureBorderClamp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCompression.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCompressionRGTC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCubeMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureCubeMapArray.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvAdd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvCombine.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvCrossbar.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureEnvDot3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureGather.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureMirroredRepeat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureMultisample.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureRG.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TextureRectangle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/TransposeMatrix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/UniformBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexArrayObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexBlend.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexProgram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/VertexShader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/WindowPos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Functions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31/TypesInternal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core32.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Abgr.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Bgra.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BindableUniform.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendColor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendEquationSeparate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendFuncSeparate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendMinmax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/BlendSubtract.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ClipVolumeHint.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Cmyka.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ColorSubtable.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CompiledVertexArray.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Convolution.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CoordinateFrame.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CopyTexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/CullVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DepthBoundsTest.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DirectStateAccess.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/DrawRangeElements.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FogCoord.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FourTwoTwoPixels.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FragmentLighting.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FramebufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/FramebufferSRGB.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/GeometryShader4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/GpuProgramParameters.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Histogram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexArrayFormats.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexFunc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/IndexMaterial.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/LightTexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/MultiDrawArrays.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Multisample.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PackedFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PackedPixels.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PalettedTexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PixelTransform.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PointParameters.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/PolygonOffset.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/ProvokingVertex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/RescaleNormal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SceneMarker.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SecondaryColor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SeparateSpecularColor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/SharedTexturePalette.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilClearTag.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilTwoSide.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/StencilWrap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Subtexture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Texture.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/Texture3D.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionDxt1.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionLatc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureCompressionS3tc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvAdd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvCombine.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureEnvDot3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureFilterAnisotropic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureInteger.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureLodBias.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureMirrorClamp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TexturePerturbNormal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureSRGB.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TextureSwizzle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/TimerQuery.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexArray.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexShader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT/VertexWeighting.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Extensions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/GetProcAddress.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ConditionalRender.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/CopyDepthToColor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/DepthBufferFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/DepthClamp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ExplicitMultisample.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/Fence.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FloatBuffer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FogDistance.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FragmentProgram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FragmentProgram2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/FramebufferMultisampleCoverage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/GeometryProgram4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/GpuProgram4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/HalfFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/LightMaxExponent.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/MultisampleFilterHint.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/OcclusionQuery.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PackedDepthStencil.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/ParameterBufferObject.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PixelDataRange.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PointSprite.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PresentVideo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/PrimitiveRestart.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TexgenEmboss.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TexgenReflection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureCompressionVtc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureEnvCombine4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureExpandNormal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureRectangle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TextureShader3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TransformFeedback.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/TransformFeedback2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexArrayRange.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexArrayRange2.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram2Option.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram3.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram4.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSOPENGLRAW_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSOPENGLRAW_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/NV
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/EXT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/Core31
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw/ARB
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/Raw
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister OpenGLRaw
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-toolkits/hs-glut-ghc/Makefile b/x11-toolkits/hs-glut-ghc/Makefile
index cc9da831682d..8cb364590d22 100644
--- a/x11-toolkits/hs-glut-ghc/Makefile
+++ b/x11-toolkits/hs-glut-ghc/Makefile
@@ -7,81 +7,17 @@
PORTNAME= glut
PORTVERSION= 2.2.2.0
CATEGORIES= x11-toolkits haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/GLUT/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
-DISTNAME= GLUT-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Haskell binding for the OpenGL Utility Toolkit
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= OpenGL>=2.3 StateVar Tensor
USE_GL= glut
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-opengl-ghc>=2.3:${PORTSDIR}/x11-toolkits/hs-opengl-ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor
-
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-opengl-ghc>=2.3:${PORTSDIR}/x11-toolkits/hs-opengl-ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor
-
-GHC_VERSION= 6.10.4
-HSGLUT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSGLUT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSGLUT_VERSION=${HSGLUT_VERSION} \
- HSGLUT_LIBDIR_REL=${HSGLUT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --extra-include-dirs=${LOCALBASE}/include \
- --extra-lib-dirs=${LOCALBASE}/lib
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSGLUT_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+MASTER_SITES= http://hackage.haskell.org/packages/archive/GLUT/${PORTVERSION}/
+DISTNAME= GLUT-${PORTVERSION}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-glut-ghc/pkg-plist b/x11-toolkits/hs-glut-ghc/pkg-plist
index c68dab137090..f16a8e98b1aa 100644
--- a/x11-toolkits/hs-glut-ghc/pkg-plist
+++ b/x11-toolkits/hs-glut-ghc/pkg-plist
@@ -1,42 +1,42 @@
@comment $FreeBSD$
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Begin.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Global.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Registration.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Window.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Colormap.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Debugging.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/DeviceControl.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Fonts.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/GameMode.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Initialization.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Menu.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Objects.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Overlay.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/QueryUtils.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/APIEntry.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Callbacks.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Fonts.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Functions.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Tokens.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/State.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Types.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Window.hi
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSGLUT-%%HSGLUT_VERSION%%.o
-%%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSGLUT-%%HSGLUT_VERSION%%.a
-%%HSGLUT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Begin.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Global.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Registration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Colormap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Debugging.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/DeviceControl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Fonts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/GameMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Initialization.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Menu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Objects.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Overlay.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/QueryUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/APIEntry.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Callbacks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Fonts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Functions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw/Tokens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/State.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSGLUT-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSGLUT-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSGLUT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSGLUT_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSGLUT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Callbacks
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT/Raw
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI/GLUT
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/UI
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister GLUT
+@unexec %D/bin/ghc-pkg unregister GLUT-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-toolkits/hs-opengl-ghc/Makefile b/x11-toolkits/hs-opengl-ghc/Makefile
index 1944b779dcbd..6891cf9d0167 100644
--- a/x11-toolkits/hs-opengl-ghc/Makefile
+++ b/x11-toolkits/hs-opengl-ghc/Makefile
@@ -7,81 +7,16 @@
PORTNAME= opengl
PORTVERSION= 2.4.0.1
CATEGORIES= x11-toolkits haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/OpenGL/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
-DISTNAME= OpenGL-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= OpenGL bindings for Haskell programs
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-OpenGLRaw-ghc>=1.1.0.0:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc \
- hs-GLURaw-ghc>=1.1.0.0:${PORTSDIR}/x11-toolkits/hs-GLURaw-ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor \
- hs-ObjectName>=1.0.0.0:${PORTSDIR}/devel/hs-ObjectName
-
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
- hs-OpenGLRaw-ghc>=1.1.0.0:${PORTSDIR}/x11-toolkits/hs-OpenGLRaw-ghc \
- hs-GLURaw-ghc>=1.1.0.0:${PORTSDIR}/x11-toolkits/hs-GLURaw-ghc \
- hs-StateVar>=1.0.0.0:${PORTSDIR}/devel/hs-StateVar \
- hs-Tensor>=1.0.0.1:${PORTSDIR}/devel/hs-Tensor \
- hs-ObjectName>=1.0.0.0:${PORTSDIR}/devel/hs-ObjectName
-
-GHC_VERSION= 6.10.4
-HSOPENGL_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSOPENGL_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSOPENGL_VERSION=${HSOPENGL_VERSION} \
- HSOPENGL_LIBDIR_REL=${HSOPENGL_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+CABAL_SETUP= Setup.hs
+USE_HACKAGE= GLURaw>=1.1.0.0 ObjectName OpenGLRaw>=1.1.0.0 StateVar Tensor
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSOPENGL_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+MASTER_SITES= http://hackage.haskell.org/packages/archive/OpenGL/${PORTVERSION}/
+DISTNAME= OpenGL-${PORTVERSION}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-toolkits/hs-opengl-ghc/pkg-plist b/x11-toolkits/hs-opengl-ghc/pkg-plist
index 3752f75bea31..93f520f6a253 100644
--- a/x11-toolkits/hs-opengl-ghc/pkg-plist
+++ b/x11-toolkits/hs-opengl-ghc/pkg-plist
@@ -1,101 +1,101 @@
@comment $FreeBSD$
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Antialiasing.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BeginEnd.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Bitmaps.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BlendingFactor.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BufferMode.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BufferObjects.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Capability.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Clipping.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ColorSum.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Colors.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ComparisonFunction.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ControlPoint.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/CoordTrans.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/DataType.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/DisplayLists.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Domain.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/EdgeFlag.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Evaluators.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Exception.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Face.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Feedback.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/FlushFinish.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Fog.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Framebuffer.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/GLboolean.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Hints.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/IOState.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/LineSegments.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PeekPoke.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PerFragment.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelData.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelFormat.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/ColorTable.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Convolution.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Histogram.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Minmax.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelMap.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelStorage.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelTransfer.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Rasterization.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Reset.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Sink.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PointParameter.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Points.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PolygonMode.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Polygons.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PrimitiveMode.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/QueryUtils.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/RasterPos.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ReadCopyPixels.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Rectangles.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/RenderMode.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/SavingState.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Selection.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Shaders.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/StringQueries.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Application.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Environments.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Objects.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Parameters.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/PixelInternalFormat.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Queries.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Specification.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TexParameter.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TextureTarget.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TextureUnit.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexArrays.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexAttributes.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexSpec.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Errors.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/ErrorsInternal.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Initialization.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Matrix.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Mipmapping.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/NURBS.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Quadrics.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Tessellation.hi
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSOpenGL-%%HSOPENGL_VERSION%%.o
-%%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSOpenGL-%%HSOPENGL_VERSION%%.a
-%%HSOPENGL_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Antialiasing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BeginEnd.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Bitmaps.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BlendingFactor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BufferMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/BufferObjects.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Capability.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Clipping.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ColorSum.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Colors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ComparisonFunction.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ControlPoint.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/CoordTrans.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/DataType.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/DisplayLists.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Domain.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/EdgeFlag.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Evaluators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Exception.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Face.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Feedback.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/FlushFinish.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Fog.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Framebuffer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/GLboolean.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Hints.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/IOState.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/LineSegments.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PeekPoke.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PerFragment.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelData.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelFormat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/ColorTable.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Convolution.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Histogram.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Minmax.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelMap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelStorage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelTransfer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Rasterization.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Reset.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles/Sink.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PointParameter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Points.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PolygonMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Polygons.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PrimitiveMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/QueryUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/RasterPos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/ReadCopyPixels.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Rectangles.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/RenderMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/SavingState.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Selection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Shaders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/StringQueries.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Application.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Environments.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Objects.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Parameters.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/PixelInternalFormat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Queries.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/Specification.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TexParameter.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TextureTarget.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing/TextureUnit.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexArrays.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexAttributes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/VertexSpec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Errors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/ErrorsInternal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Initialization.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Matrix.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Mipmapping.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/NURBS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Quadrics.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU/Tessellation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSOpenGL-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSOpenGL-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSOPENGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSOPENGL_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSOPENGL_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GLU
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/Texturing
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL/PixelRectangles
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL/GL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering/OpenGL
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/Rendering
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister OpenGL
+@unexec %D/bin/ghc-pkg unregister OpenGL-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-wm/hs-xmonad-contrib/Makefile b/x11-wm/hs-xmonad-contrib/Makefile
index f43ac427e596..a8693f955af2 100644
--- a/x11-wm/hs-xmonad-contrib/Makefile
+++ b/x11-wm/hs-xmonad-contrib/Makefile
@@ -9,94 +9,22 @@ PORTNAME= xmonad-contrib
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= x11-wm haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad-contrib/${PORTVERSION}/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= Third party tiling algorithms, configurations and scripts to xmonad
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- xmonad:${PORTSDIR}/x11-wm/xmonad \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- xmonad:${PORTSDIR}/x11-wm/xmonad \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= xmonad utf8-string
USE_XORG= x11
-GHC_VERSION= 6.10.4
-XMONADC_VERSION= ${PORTVERSION}
-UTF8STR_VERSION= 0.3.6
-HSX11XFT_VERSION= 0.7
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-XMONADC_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- XMONADC_VERSION=${XMONADC_VERSION} \
- XMONADC_LIBDIR_REL=${XMONADC_LIBDIR_REL}
-
-# See (1)
OPTIONS= XFT "Enable Xft support for fonts" On
.include <bsd.port.pre.mk>
-CONFIGURE_ARGS= --haddock-options=-w --prefix=${PREFIX}
-
-# (1)
-.if exists(${LOCALBASE}/lib/X11-xft-${HSX11XFT_VERSION}/register.sh)
-WITH_XFT=
-.endif
-
.if defined(WITH_XFT)
CONFIGURE_ARGS+= --flags="use_xft"
-BUILD_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
-RUN_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
-.endif
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
+USE_HACKAGE+= X11-xft>=0.2
.endif
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${XMONADC_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/x11-wm/hs-xmonad-contrib/pkg-plist b/x11-wm/hs-xmonad-contrib/pkg-plist
index b2aa10c4745c..38a3771818f3 100644
--- a/x11-wm/hs-xmonad-contrib/pkg-plist
+++ b/x11-wm/hs-xmonad-contrib/pkg-plist
@@ -1,201 +1,201 @@
@comment $FreeBSD$
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxmonad-contrib-%%XMONADC_VERSION%%.o
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatSnap.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/GridSelect.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/OnScreen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MessageFeedback.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PhysicalScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RandomBackground.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SpawnOn.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TopicSpace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdateFocus.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowMenu.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WithAll.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WorkspaceCursors.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Azerty.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FloatNext.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/InsertPosition.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Place.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/RestoreMinimized.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/WorkspaceByPos.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/AutoMaster.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BorderResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/CenteredMaster.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Cross.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Column.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ComboP.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/FixedColumn.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/GridVariants.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IndependentScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutBuilder.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LimitWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MessageControl.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Minimize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Monitor.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Mosaic.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MouseResizableTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoFrillsDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/OneBig.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spacing.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SubLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Cursor.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedActions.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedScratchpad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/StringProp.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Types.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Paste.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Replace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Commands.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/ConstrainedResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CopyWindow.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleRecentWS.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleSelectedLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWS.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DeManage.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DwmPromote.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DynamicWorkspaces.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FindEmptyWorkspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleManipulate.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FocusNth.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseGestures.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/NoBorders.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PerWorkspaceKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Plane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Promote.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RotSlaves.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Search.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SimpleDate.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SinkAll.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Submap.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SwapWorkspaces.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TagWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdatePointer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Warp.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowBringer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowGo.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowNavigation.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Arossato.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Desktop.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Droundy.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Gnome.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Kde.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Sjanssen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Xfce.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Configuring.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Developing.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Extending.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicHooks.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicLog.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/EwmhDesktops.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FadeInactive.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageDocks.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageHelpers.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Script.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ServerMode.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/SetWMName.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/UrgencyHook.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/XPropManage.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Accordion.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BoringWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Circle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Combo.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Decoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DecorationMadness.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Dishes.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DragPane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DwmStyle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Gaps.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Grid.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedGrid.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IM.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutCombinators.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutHints.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutModifier.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MagicFocus.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Magnifier.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Master.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Maximize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MosaicAlt.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle/Instances.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Named.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoBorders.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/PerWorkspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Reflect.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizableTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizeScreen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Roledex.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ShowWName.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleFloat.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Simplest.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimplestFloat.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spiral.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Square.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/StackTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TabBarDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Tabbed.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ThreeColumns.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ToggleLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TwoPane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowArranger.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowNavigation.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WorkspaceDir.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppLauncher.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppendFile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/DirExec.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Directory.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Email.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Input.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Layout.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Man.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/RunOrRaise.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Shell.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Ssh.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Theme.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Window.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Workspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/XMonad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/CustomKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dmenu.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dzen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/EZConfig.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Font.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Invisible.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Loggers.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Run.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Scratchpad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Themes.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Timer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WindowProperties.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WorkspaceCompare.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XSelection.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XUtils.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxmonad-contrib-%%XMONADC_VERSION%%.a
-%%XMONADC_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatSnap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/GridSelect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/OnScreen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MessageFeedback.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PhysicalScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RandomBackground.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SpawnOn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TopicSpace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdateFocus.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowMenu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WithAll.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WorkspaceCursors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Azerty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FloatNext.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/InsertPosition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Place.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/RestoreMinimized.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/WorkspaceByPos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/AutoMaster.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BorderResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/CenteredMaster.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Cross.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Column.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ComboP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/FixedColumn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/GridVariants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IndependentScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutBuilder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LimitWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MessageControl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Minimize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Monitor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Mosaic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MouseResizableTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoFrillsDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/OneBig.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spacing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SubLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Cursor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedActions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedScratchpad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/StringProp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Paste.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Replace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Commands.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/ConstrainedResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CopyWindow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleRecentWS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleSelectedLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DeManage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DwmPromote.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DynamicWorkspaces.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FindEmptyWorkspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleManipulate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FocusNth.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseGestures.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/NoBorders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PerWorkspaceKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Plane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Promote.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RotSlaves.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Search.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SimpleDate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SinkAll.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Submap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SwapWorkspaces.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TagWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdatePointer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Warp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowBringer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowGo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowNavigation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Arossato.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Desktop.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Droundy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Gnome.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Kde.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Sjanssen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Xfce.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Configuring.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Developing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Extending.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicHooks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicLog.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/EwmhDesktops.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FadeInactive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageDocks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageHelpers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Script.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ServerMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/SetWMName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/UrgencyHook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/XPropManage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Accordion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BoringWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Circle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Combo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Decoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DecorationMadness.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Dishes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DragPane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DwmStyle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Gaps.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Grid.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedGrid.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IM.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutCombinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutHints.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutModifier.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MagicFocus.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Magnifier.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Master.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Maximize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MosaicAlt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle/Instances.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Named.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoBorders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/PerWorkspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Reflect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizableTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizeScreen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Roledex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ShowWName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Simplest.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimplestFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spiral.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Square.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/StackTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TabBarDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Tabbed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ThreeColumns.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ToggleLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TwoPane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowArranger.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowNavigation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WorkspaceDir.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppLauncher.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppendFile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/DirExec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Directory.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Email.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Input.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Layout.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Man.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/RunOrRaise.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Shell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Ssh.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Theme.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Workspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/XMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/CustomKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dmenu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dzen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/EZConfig.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Font.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Invisible.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Loggers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Run.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Scratchpad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Themes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Timer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WindowProperties.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WorkspaceCompare.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XSelection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%XMONADC_LIBDIR_REL%%
-@exec /bin/sh %D/%%XMONADC_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister xmonad-contrib
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-wm/hs-xmonad/Makefile b/x11-wm/hs-xmonad/Makefile
index 29cdd11e0116..e53eda10541f 100644
--- a/x11-wm/hs-xmonad/Makefile
+++ b/x11-wm/hs-xmonad/Makefile
@@ -9,85 +9,20 @@ PORTNAME= xmonad
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= x11-wm haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad/${PORTVERSION}/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= Xmonad is a minimalist and tiling window manager for X
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= X11>=1.5.0.0
USE_XORG= x11
-GHC_VERSION= 6.10.4
-XMONAD_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-XMONAD_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- XMONAD_VERSION=${XMONAD_VERSION} \
- XMONAD_LIBDIR_REL=${XMONAD_LIBDIR_REL}
-
MAN1= xmonad.1
+MAN1SRC= man
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+EXECUTABLE= xmonad
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='${PREFIX}/share' --datasubdir='${DISTNAME}'
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${XMONAD_LIBDIR_REL}/register.sh \
- && ${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${MAN1PREFIX}/man/man1 \
- && ${INSTALL_DATA} ${WRKSRC}/CONFIG ${DOCSDIR}
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-wm/hs-xmonad/pkg-plist b/x11-wm/hs-xmonad/pkg-plist
index 70c9922513d3..49ddc371d8d1 100644
--- a/x11-wm/hs-xmonad/pkg-plist
+++ b/x11-wm/hs-xmonad/pkg-plist
@@ -1,23 +1,22 @@
@comment $FreeBSD$
bin/xmonad
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxmonad-%%XMONAD_VERSION%%.o
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Core.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Main.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/ManageHook.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Operations.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxmonad-%%XMONAD_VERSION%%.a
-%%XMONAD_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Core.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Main.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/ManageHook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Operations.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
-%%NOPORTDOCS%%%%DOCSDIR%%/CONFIG
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
-@dirrm %%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%XMONAD_LIBDIR_REL%%
-@exec /bin/sh %D/%%XMONAD_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister xmonad
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-wm/xmonad-contrib/Makefile b/x11-wm/xmonad-contrib/Makefile
index f43ac427e596..a8693f955af2 100644
--- a/x11-wm/xmonad-contrib/Makefile
+++ b/x11-wm/xmonad-contrib/Makefile
@@ -9,94 +9,22 @@ PORTNAME= xmonad-contrib
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= x11-wm haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad-contrib/${PORTVERSION}/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= Third party tiling algorithms, configurations and scripts to xmonad
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- xmonad:${PORTSDIR}/x11-wm/xmonad \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- xmonad:${PORTSDIR}/x11-wm/xmonad \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= xmonad utf8-string
USE_XORG= x11
-GHC_VERSION= 6.10.4
-XMONADC_VERSION= ${PORTVERSION}
-UTF8STR_VERSION= 0.3.6
-HSX11XFT_VERSION= 0.7
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-XMONADC_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- XMONADC_VERSION=${XMONADC_VERSION} \
- XMONADC_LIBDIR_REL=${XMONADC_LIBDIR_REL}
-
-# See (1)
OPTIONS= XFT "Enable Xft support for fonts" On
.include <bsd.port.pre.mk>
-CONFIGURE_ARGS= --haddock-options=-w --prefix=${PREFIX}
-
-# (1)
-.if exists(${LOCALBASE}/lib/X11-xft-${HSX11XFT_VERSION}/register.sh)
-WITH_XFT=
-.endif
-
.if defined(WITH_XFT)
CONFIGURE_ARGS+= --flags="use_xft"
-BUILD_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
-RUN_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
-.endif
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
+USE_HACKAGE+= X11-xft>=0.2
.endif
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${XMONADC_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/x11-wm/xmonad-contrib/pkg-plist b/x11-wm/xmonad-contrib/pkg-plist
index b2aa10c4745c..38a3771818f3 100644
--- a/x11-wm/xmonad-contrib/pkg-plist
+++ b/x11-wm/xmonad-contrib/pkg-plist
@@ -1,201 +1,201 @@
@comment $FreeBSD$
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxmonad-contrib-%%XMONADC_VERSION%%.o
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatSnap.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/GridSelect.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/OnScreen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MessageFeedback.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PhysicalScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RandomBackground.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SpawnOn.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TopicSpace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdateFocus.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowMenu.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WithAll.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WorkspaceCursors.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Azerty.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FloatNext.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/InsertPosition.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Place.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/RestoreMinimized.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/WorkspaceByPos.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/AutoMaster.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BorderResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/CenteredMaster.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Cross.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Column.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ComboP.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/FixedColumn.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/GridVariants.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IndependentScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutBuilder.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LimitWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MessageControl.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Minimize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Monitor.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Mosaic.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MouseResizableTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoFrillsDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/OneBig.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spacing.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SubLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Cursor.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedActions.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedScratchpad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/StringProp.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Types.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Paste.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Replace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Commands.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/ConstrainedResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CopyWindow.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleRecentWS.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleSelectedLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWS.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DeManage.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DwmPromote.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DynamicWorkspaces.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FindEmptyWorkspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleManipulate.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FocusNth.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseGestures.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseResize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/NoBorders.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PerWorkspaceKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Plane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Promote.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RotSlaves.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Search.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SimpleDate.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SinkAll.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Submap.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SwapWorkspaces.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TagWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdatePointer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Warp.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowBringer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowGo.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowNavigation.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Arossato.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Desktop.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Droundy.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Gnome.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Kde.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Sjanssen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Xfce.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Configuring.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Developing.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Extending.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicHooks.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicLog.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/EwmhDesktops.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FadeInactive.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageDocks.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageHelpers.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Script.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ServerMode.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/SetWMName.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/UrgencyHook.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/XPropManage.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Accordion.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BoringWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Circle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Combo.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Decoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DecorationMadness.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Dishes.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DragPane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DwmStyle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Gaps.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Grid.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedGrid.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IM.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutCombinators.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutHints.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutModifier.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutScreens.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MagicFocus.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Magnifier.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Master.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Maximize.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MosaicAlt.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle/Instances.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Named.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoBorders.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/PerWorkspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Reflect.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizableTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizeScreen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Roledex.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ShowWName.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleFloat.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Simplest.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimplestFloat.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spiral.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Square.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/StackTile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TabBarDecoration.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Tabbed.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ThreeColumns.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ToggleLayouts.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TwoPane.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowArranger.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowNavigation.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WorkspaceDir.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppLauncher.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppendFile.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/DirExec.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Directory.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Email.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Input.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Layout.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Man.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/RunOrRaise.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Shell.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Ssh.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Theme.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Window.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Workspace.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/XMonad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/CustomKeys.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dmenu.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dzen.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/EZConfig.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Font.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Invisible.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Loggers.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedWindows.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Run.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Scratchpad.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Themes.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Timer.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WindowProperties.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WorkspaceCompare.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XSelection.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XUtils.hi
-%%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxmonad-contrib-%%XMONADC_VERSION%%.a
-%%XMONADC_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatSnap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/GridSelect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/OnScreen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MessageFeedback.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PhysicalScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RandomBackground.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SpawnOn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TopicSpace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdateFocus.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowMenu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WithAll.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WorkspaceCursors.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Azerty.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FloatNext.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/InsertPosition.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Place.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/RestoreMinimized.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/WorkspaceByPos.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/AutoMaster.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BorderResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/CenteredMaster.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Cross.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Column.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ComboP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/FixedColumn.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/GridVariants.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IndependentScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutBuilder.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LimitWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MessageControl.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Minimize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Monitor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Mosaic.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MouseResizableTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoFrillsDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/OneBig.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spacing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SubLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Cursor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedActions.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedScratchpad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/StringProp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Paste.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Replace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Commands.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/ConstrainedResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CopyWindow.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleRecentWS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleSelectedLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/CycleWS.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DeManage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DwmPromote.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/DynamicWorkspaces.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FindEmptyWorkspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleManipulate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FlexibleResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FloatKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/FocusNth.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseGestures.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/MouseResize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/NoBorders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/PerWorkspaceKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Plane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Promote.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/RotSlaves.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Search.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SimpleDate.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SinkAll.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Submap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/SwapWorkspaces.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/TagWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/UpdatePointer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/Warp.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowBringer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowGo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions/WindowNavigation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Arossato.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Desktop.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Droundy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Gnome.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Kde.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Sjanssen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config/Xfce.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Configuring.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Developing.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc/Extending.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicHooks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/DynamicLog.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/EwmhDesktops.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/FadeInactive.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageDocks.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ManageHelpers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/Script.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/ServerMode.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/SetWMName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/UrgencyHook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks/XPropManage.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Accordion.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/BoringWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Circle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Combo.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Decoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DecorationMadness.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Dishes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DragPane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/DwmStyle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Gaps.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Grid.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedGrid.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/HintedTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/IM.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutCombinators.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutHints.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutModifier.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/LayoutScreens.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MagicFocus.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Magnifier.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Master.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Maximize.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MosaicAlt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle/Instances.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Named.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/NoBorders.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/PerWorkspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Reflect.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizableTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ResizeScreen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Roledex.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ShowWName.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimpleFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Simplest.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/SimplestFloat.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Spiral.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Square.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/StackTile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TabBarDecoration.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/Tabbed.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ThreeColumns.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/ToggleLayouts.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/TwoPane.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowArranger.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WindowNavigation.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/WorkspaceDir.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppLauncher.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/AppendFile.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/DirExec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Directory.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Email.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Input.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Layout.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Man.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/RunOrRaise.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Shell.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Ssh.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Theme.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/Workspace.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt/XMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/CustomKeys.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dmenu.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Dzen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/EZConfig.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Font.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Invisible.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Loggers.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/NamedWindows.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Run.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Scratchpad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Themes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/Timer.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WindowProperties.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/WorkspaceCompare.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XSelection.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util/XUtils.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
-@dirrm %%XMONADC_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%XMONADC_LIBDIR_REL%%
-@exec /bin/sh %D/%%XMONADC_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Util
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Prompt
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout/MultiToggle
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Hooks
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Doc
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Actions
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister xmonad-contrib
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11-wm/xmonad/Makefile b/x11-wm/xmonad/Makefile
index 29cdd11e0116..e53eda10541f 100644
--- a/x11-wm/xmonad/Makefile
+++ b/x11-wm/xmonad/Makefile
@@ -9,85 +9,20 @@ PORTNAME= xmonad
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= x11-wm haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad/${PORTVERSION}/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= Xmonad is a minimalist and tiling window manager for X
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= X11>=1.5.0.0
USE_XORG= x11
-GHC_VERSION= 6.10.4
-XMONAD_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DATADIR= ${PREFIX}/share/${DISTNAME}
-PORTDATA= *
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-XMONAD_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- XMONAD_VERSION=${XMONAD_VERSION} \
- XMONAD_LIBDIR_REL=${XMONAD_LIBDIR_REL}
-
MAN1= xmonad.1
+MAN1SRC= man
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
+EXECUTABLE= xmonad
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal
-.if !defined(NOPORTDATA)
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='${PREFIX}/share' --datasubdir='${DISTNAME}'
-.else
- cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
-.endif
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --executables --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${XMONAD_LIBDIR_REL}/register.sh \
- && ${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${MAN1PREFIX}/man/man1 \
- && ${INSTALL_DATA} ${WRKSRC}/CONFIG ${DOCSDIR}
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+PORTDATA= *
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11-wm/xmonad/pkg-plist b/x11-wm/xmonad/pkg-plist
index 70c9922513d3..49ddc371d8d1 100644
--- a/x11-wm/xmonad/pkg-plist
+++ b/x11-wm/xmonad/pkg-plist
@@ -1,23 +1,22 @@
@comment $FreeBSD$
bin/xmonad
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSxmonad-%%XMONAD_VERSION%%.o
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Core.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Main.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/ManageHook.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Operations.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
-%%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSxmonad-%%XMONAD_VERSION%%.a
-%%XMONAD_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Config.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Core.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Layout.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Main.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/ManageHook.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/Operations.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad/StackSet.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
-%%NOPORTDOCS%%%%DOCSDIR%%/CONFIG
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
-@dirrm %%XMONAD_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%XMONAD_LIBDIR_REL%%
-@exec /bin/sh %D/%%XMONAD_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/XMonad
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister xmonad
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11/hs-X11-xft/Makefile b/x11/hs-X11-xft/Makefile
index ca5d03221aea..9a63976c7dcf 100644
--- a/x11/hs-X11-xft/Makefile
+++ b/x11/hs-X11-xft/Makefile
@@ -9,76 +9,16 @@ PORTNAME= x11-xft
PORTVERSION= 0.3
PORTREVISION= 4
CATEGORIES= x11 haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/X11-xft/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
-DISTNAME= X11-xft-${PORTVERSION}
MAINTAINER= wahjava@gmail.com
COMMENT= Bindings to the Xft, Xrender and Freetype for Haskell programs
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-
+USE_HACKAGE= utf8-string>=0.1 X11>=1.2.1
USE_XORG= xft xrender
-GHC_VERSION= 6.10.4
-HSX11XFT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSX11XFT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSX11XFT_VERSION=${HSX11XFT_VERSION} \
- HSX11XFT_LIBDIR_REL=${HSX11XFT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSX11XFT_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+MASTER_SITES= http://hackage.haskell.org/packages/archive/X11-xft/${PORTVERSION}/
+DISTNAME= X11-xft-${PORTVERSION}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11/hs-X11-xft/pkg-plist b/x11/hs-X11-xft/pkg-plist
index 758847598f73..7bd28895ed43 100644
--- a/x11/hs-X11-xft/pkg-plist
+++ b/x11/hs-X11-xft/pkg-plist
@@ -1,16 +1,16 @@
@comment $FreeBSD$
-%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xft.hi
-%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xrender.hi
-%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-xft-%%HSX11XFT_VERSION%%.o
-%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-xft-%%HSX11XFT_VERSION%%.a
-%%HSX11XFT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xft.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xrender.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-xft-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-xft-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
-@dirrm %%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSX11XFT_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSX11XFT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister X11-xft
+@unexec %D/bin/ghc-pkg unregister X11-xft-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11/hs-X11/Makefile b/x11/hs-X11/Makefile
index cc749120cfca..56dacff9c3d2 100644
--- a/x11/hs-X11/Makefile
+++ b/x11/hs-X11/Makefile
@@ -8,89 +8,27 @@ PORTNAME= x11
PORTVERSION= 1.5.0.0
PORTREVISION= 1
CATEGORIES= x11 haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/X11/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
-DISTNAME= X11-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= X11 bindings for Haskell programs
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
+CABAL_SETUP= Setup.hs
USE_XORG= x11 xext sm
-GHC_VERSION= 6.10.4
-HSX11_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSX11_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSX11_VERSION=${HSX11_VERSION} \
- HSX11_LIBDIR_REL=${HSX11_LIBDIR_REL}
+MASTER_SITES= http://hackage.haskell.org/packages/archive/X11/${PORTVERSION}/
+DISTNAME= X11-${PORTVERSION}
OPTIONS= XINERAMA "Build with Xinerama support" off
.include <bsd.port.pre.mk>
.if defined(WITH_XINERAMA)
-USE_XORG+= xinerama
+USE_XORG+= xinerama
CONFIGURE_ARGS+= --configure-option=--with-xinerama
.else
CONFIGURE_ARGS+= --configure-option=--without-xinerama
.endif
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-post-patch:
- @${REINPLACE_CMD} 's|/usr/local/include|${LOCALBASE}/include|g' \
- ${WRKSRC}/configure
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSX11_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/x11/hs-X11/pkg-plist b/x11/hs-X11/pkg-plist
index 912608805b8a..c1867ac3519b 100644
--- a/x11/hs-X11/pkg-plist
+++ b/x11/hs-X11/pkg-plist
@@ -1,45 +1,45 @@
@comment $FreeBSD$
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/AP.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/DEC.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/HP.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/Sun.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XF86.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XorgDefault.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Types.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xinerama.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Atom.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Color.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Context.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Cursor.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Display.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Event.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Extras.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Font.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Image.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Misc.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Region.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Screen.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Types.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Window.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-%%HSX11_VERSION%%.o
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsAllKeysyms.h
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsXlib.h
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/XlibExtras.h
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-%%HSX11_VERSION%%.a
-%%HSX11_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/AP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/DEC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/HP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/Sun.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XF86.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XorgDefault.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xinerama.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Atom.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Color.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Context.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Cursor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Display.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Event.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Extras.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Font.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Image.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Misc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Region.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Screen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsAllKeysyms.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsXlib.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/XlibExtras.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSX11_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSX11_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister X11
+@unexec %D/bin/ghc-pkg unregister X11-%%PORTVERSION%%
@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
index cc749120cfca..56dacff9c3d2 100644
--- a/x11/hs-x11-ghc/Makefile
+++ b/x11/hs-x11-ghc/Makefile
@@ -8,89 +8,27 @@ PORTNAME= x11
PORTVERSION= 1.5.0.0
PORTREVISION= 1
CATEGORIES= x11 haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/X11/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
-DISTNAME= X11-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= X11 bindings for Haskell programs
-BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
-RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
-
+CABAL_SETUP= Setup.hs
USE_XORG= x11 xext sm
-GHC_VERSION= 6.10.4
-HSX11_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSX11_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSX11_VERSION=${HSX11_VERSION} \
- HSX11_LIBDIR_REL=${HSX11_LIBDIR_REL}
+MASTER_SITES= http://hackage.haskell.org/packages/archive/X11/${PORTVERSION}/
+DISTNAME= X11-${PORTVERSION}
OPTIONS= XINERAMA "Build with Xinerama support" off
.include <bsd.port.pre.mk>
.if defined(WITH_XINERAMA)
-USE_XORG+= xinerama
+USE_XORG+= xinerama
CONFIGURE_ARGS+= --configure-option=--with-xinerama
.else
CONFIGURE_ARGS+= --configure-option=--without-xinerama
.endif
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-post-patch:
- @${REINPLACE_CMD} 's|/usr/local/include|${LOCALBASE}/include|g' \
- ${WRKSRC}/configure
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
- ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSX11_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
-
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/x11/hs-x11-ghc/pkg-plist b/x11/hs-x11-ghc/pkg-plist
index 912608805b8a..c1867ac3519b 100644
--- a/x11/hs-x11-ghc/pkg-plist
+++ b/x11/hs-x11-ghc/pkg-plist
@@ -1,45 +1,45 @@
@comment $FreeBSD$
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/AP.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/DEC.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/HP.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/Sun.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XF86.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XorgDefault.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Types.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xinerama.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Atom.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Color.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Context.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Cursor.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Display.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Event.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Extras.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Font.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Image.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Misc.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Region.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Screen.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Types.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Window.hi
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-%%HSX11_VERSION%%.o
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsAllKeysyms.h
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsXlib.h
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/XlibExtras.h
-%%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-%%HSX11_VERSION%%.a
-%%HSX11_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/AP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/DEC.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/HP.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/Sun.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XF86.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes/XorgDefault.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xinerama.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Atom.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Color.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Context.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Cursor.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Display.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Event.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Extras.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Font.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Image.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Misc.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Region.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Screen.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Types.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib/Window.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsAllKeysyms.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/HsXlib.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/XlibExtras.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSX11_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSX11_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSX11_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xlib
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/ExtraTypes
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister X11
+@unexec %D/bin/ghc-pkg unregister X11-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11/hs-x11-xft-ghc/Makefile b/x11/hs-x11-xft-ghc/Makefile
index ca5d03221aea..9a63976c7dcf 100644
--- a/x11/hs-x11-xft-ghc/Makefile
+++ b/x11/hs-x11-xft-ghc/Makefile
@@ -9,76 +9,16 @@ PORTNAME= x11-xft
PORTVERSION= 0.3
PORTREVISION= 4
CATEGORIES= x11 haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/X11-xft/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
-DISTNAME= X11-xft-${PORTVERSION}
MAINTAINER= wahjava@gmail.com
COMMENT= Bindings to the Xft, Xrender and Freetype for Haskell programs
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.2.1:${PORTSDIR}/x11/hs-x11-ghc \
- hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-
+USE_HACKAGE= utf8-string>=0.1 X11>=1.2.1
USE_XORG= xft xrender
-GHC_VERSION= 6.10.4
-HSX11XFT_VERSION= ${PORTVERSION}
-
-GHC_CMD= ${LOCALBASE}/bin/ghc
-SETUP_CMD= ./setup
-
-DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
-HSX11XFT_LIBDIR_REL= lib/${DISTNAME}
-
-PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
- HSX11XFT_VERSION=${HSX11XFT_VERSION} \
- HSX11XFT_LIBDIR_REL=${HSX11XFT_LIBDIR_REL}
-
-.if defined(NOPORTDOCS)
-PLIST_SUB+= NOPORTDOCS=""
-.else
-PLIST_SUB+= NOPORTDOCS="@comment "
-.endif
-
-.if !defined(NOPORTDOCS)
-
-PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
-.if !empty(PORT_HADDOCK:M?0)
-BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
-.endif
-BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-
-HSCOLOUR_VERSION= 1.15
-HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
-
-PORTDOCS= *
-.endif
-
-.SILENT:
-
-do-configure:
- cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
- && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
-
-do-build:
- cd ${WRKSRC} && ${SETUP_CMD} build \
- && ${SETUP_CMD} register --gen-script
-
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
- --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
-.endif
-
-do-install:
- cd ${WRKSRC} && ${SETUP_CMD} install \
- && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HSX11XFT_LIBDIR_REL}/register.sh
-
-post-install:
- ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+MASTER_SITES= http://hackage.haskell.org/packages/archive/X11-xft/${PORTVERSION}/
+DISTNAME= X11-xft-${PORTVERSION}
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/x11/hs-x11-xft-ghc/pkg-plist b/x11/hs-x11-xft-ghc/pkg-plist
index 758847598f73..7bd28895ed43 100644
--- a/x11/hs-x11-xft-ghc/pkg-plist
+++ b/x11/hs-x11-xft-ghc/pkg-plist
@@ -1,16 +1,16 @@
@comment $FreeBSD$
-%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xft.hi
-%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xrender.hi
-%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-xft-%%HSX11XFT_VERSION%%.o
-%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-xft-%%HSX11XFT_VERSION%%.a
-%%HSX11XFT_LIBDIR_REL%%/register.sh
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xft.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xrender.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-xft-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-xft-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
-@dirrm %%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
-@dirrm %%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
-@dirrm %%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
-@dirrm %%HSX11XFT_LIBDIR_REL%%
-@exec /bin/sh %D/%%HSX11XFT_LIBDIR_REL%%/register.sh
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
-@unexec %D/bin/ghc-pkg unregister X11-xft
+@unexec %D/bin/ghc-pkg unregister X11-xft-%%PORTVERSION%%
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
diff --git a/x11/hs-xmobar/Makefile b/x11/hs-xmobar/Makefile
index 17e1e4f3cd5a..52d355deaf92 100644
--- a/x11/hs-xmobar/Makefile
+++ b/x11/hs-xmobar/Makefile
@@ -8,71 +8,32 @@ PORTNAME= xmobar
PORTVERSION= 0.9.2
PORTREVISION= 1
CATEGORIES= x11 haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmobar/${PORTVERSION}/ \
- http://carte.kerneled.org/mirror/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= A minimalistic text based status bar
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= X11>=1.3.0
USE_XORG= x11
-CABAL= ${LOCALBASE}/bin/runghc Setup.lhs
-GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
-SUBDIR= lib/${PORTNAME}-${PORTVERSION}
-
-DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
-PORTDOCS= *
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${PORTVERSION}
-PORTEXAMPLES= *
+EXECUTABLE= xmobar
+STANDALONE= yes
-PLIST_SUB= GHC_VERSION="${GHC_VERSION}" \
- PORTVERSION=${PORTVERSION} \
- SUBDIR=${SUBDIR}
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= ${INSTALL_DATA} ${WRKSRC}/xmobar.config-sample ${EXAMPLESDIR}
OPTIONS= XFT "Enable Xft support for fonts" Off \
UTF8 "Enable UTF-8 support" Off
.include <bsd.port.pre.mk>
-CONFIGURE_ARGS= --ghc --prefix=${PREFIX}
-
.if defined(WITH_XFT)
CONFIGURE_ARGS+= --flags="with_xft"
-BUILD_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
+USE_HACKAGE+= X11-xft>=0.2
.elif defined(WITH_UTF8)
CONFIGURE_ARGS+= --flags="with_utf8"
-BUILD_DEPENDS+= hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-.endif
-
-.if !defined(NOPORTDOCS)
-PLIST_SUB+= RMLIC="@comment "
-.else
-PLIST_SUB+= RMLIC=""
-.endif
-
-do-configure:
- cd ${WRKSRC} && ${CABAL} configure ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${CABAL} build
-
-do-install:
- cd ${WRKSRC} && ${CABAL} install --verbose=3
-.if !defined(NOPORTDOCS)
-.for d in README
- ${INSTALL_MAN} ${WRKSRC}/${d} ${DOCSDIR}
-.endfor
-.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
-.for f in xmobar.config-sample
- ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
-.endfor
+USE_HACKAGE+= utf8-string
.endif
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/x11/hs-xmobar/pkg-plist b/x11/hs-xmobar/pkg-plist
index 8aa558e830a5..f4b7e0083752 100644
--- a/x11/hs-xmobar/pkg-plist
+++ b/x11/hs-xmobar/pkg-plist
@@ -1,4 +1,4 @@
@comment $FreeBSD$
bin/xmobar
-%%RMLIC%%%%DOCSDIR%%/LICENSE
-%%RMLIC%%@dirrm %%DOCSDIR%%
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
diff --git a/x11/xmobar/Makefile b/x11/xmobar/Makefile
index 17e1e4f3cd5a..52d355deaf92 100644
--- a/x11/xmobar/Makefile
+++ b/x11/xmobar/Makefile
@@ -8,71 +8,32 @@ PORTNAME= xmobar
PORTVERSION= 0.9.2
PORTREVISION= 1
CATEGORIES= x11 haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/xmobar/${PORTVERSION}/ \
- http://carte.kerneled.org/mirror/
+PKGNAMEPREFIX=
MAINTAINER= haskell@FreeBSD.org
COMMENT= A minimalistic text based status bar
-BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
- hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
-LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
-
+USE_HACKAGE= X11>=1.3.0
USE_XORG= x11
-CABAL= ${LOCALBASE}/bin/runghc Setup.lhs
-GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
-SUBDIR= lib/${PORTNAME}-${PORTVERSION}
-
-DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
-PORTDOCS= *
-
-EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${PORTVERSION}
-PORTEXAMPLES= *
+EXECUTABLE= xmobar
+STANDALONE= yes
-PLIST_SUB= GHC_VERSION="${GHC_VERSION}" \
- PORTVERSION=${PORTVERSION} \
- SUBDIR=${SUBDIR}
+PORTEXAMPLES= *
+INSTALL_PORTEXAMPLES= ${INSTALL_DATA} ${WRKSRC}/xmobar.config-sample ${EXAMPLESDIR}
OPTIONS= XFT "Enable Xft support for fonts" Off \
UTF8 "Enable UTF-8 support" Off
.include <bsd.port.pre.mk>
-CONFIGURE_ARGS= --ghc --prefix=${PREFIX}
-
.if defined(WITH_XFT)
CONFIGURE_ARGS+= --flags="with_xft"
-BUILD_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
+USE_HACKAGE+= X11-xft>=0.2
.elif defined(WITH_UTF8)
CONFIGURE_ARGS+= --flags="with_utf8"
-BUILD_DEPENDS+= hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
-.endif
-
-.if !defined(NOPORTDOCS)
-PLIST_SUB+= RMLIC="@comment "
-.else
-PLIST_SUB+= RMLIC=""
-.endif
-
-do-configure:
- cd ${WRKSRC} && ${CABAL} configure ${CONFIGURE_ARGS}
-
-do-build:
- cd ${WRKSRC} && ${CABAL} build
-
-do-install:
- cd ${WRKSRC} && ${CABAL} install --verbose=3
-.if !defined(NOPORTDOCS)
-.for d in README
- ${INSTALL_MAN} ${WRKSRC}/${d} ${DOCSDIR}
-.endfor
-.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
-.for f in xmobar.config-sample
- ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
-.endfor
+USE_HACKAGE+= utf8-string
.endif
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.post.mk>
diff --git a/x11/xmobar/pkg-plist b/x11/xmobar/pkg-plist
index 8aa558e830a5..f4b7e0083752 100644
--- a/x11/xmobar/pkg-plist
+++ b/x11/xmobar/pkg-plist
@@ -1,4 +1,4 @@
@comment $FreeBSD$
bin/xmobar
-%%RMLIC%%%%DOCSDIR%%/LICENSE
-%%RMLIC%%@dirrm %%DOCSDIR%%
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%