diff options
author | pgj <pgj@FreeBSD.org> | 2010-05-13 00:33:59 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-05-13 00:33:59 +0800 |
commit | f203c3895196ffa8b69517527e8c488cc49ada57 (patch) | |
tree | d7be6abb9940698d6dc43b1587948a03039a23b5 /devel | |
parent | 965f4ecbcd1c9f6296e907af59901feeedfdc42f (diff) | |
download | freebsd-ports-gnome-f203c3895196ffa8b69517527e8c488cc49ada57.tar.gz freebsd-ports-gnome-f203c3895196ffa8b69517527e8c488cc49ada57.tar.zst freebsd-ports-gnome-f203c3895196ffa8b69517527e8c488cc49ada57.zip |
Introduce a new (and hopefully better) ports infrastructure for Haskell Cabal
ports which makes possible the direct translation of Cabal package
descriptions to FreeBSD ports. It promises both easier addition and
maintenance for Cabal-based ports.
Diffstat (limited to 'devel')
123 files changed, 1298 insertions, 4989 deletions
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 |