diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2010-05-12 16:33:59 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2010-05-12 16:33:59 +0000 |
commit | ec29a59ec3d0472e808e9907b2f18dce2e9fe68c (patch) | |
tree | bd2ff04188a74e09a51bfecae86236b3684491e5 /devel/hs-language-c | |
parent | ba00ef6b8cc071eb53bf9287bfbc328da82f7eb8 (diff) | |
download | ports-ec29a59ec3d0472e808e9907b2f18dce2e9fe68c.tar.gz ports-ec29a59ec3d0472e808e9907b2f18dce2e9fe68c.zip |
Notes
Diffstat (limited to 'devel/hs-language-c')
-rw-r--r-- | devel/hs-language-c/Makefile | 64 | ||||
-rw-r--r-- | devel/hs-language-c/pkg-plist | 92 |
2 files changed, 50 insertions, 106 deletions
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 |