diff options
author | pgj <pgj@FreeBSD.org> | 2009-03-07 03:46:33 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2009-03-07 03:46:33 +0800 |
commit | 3673d7f7b717c0807b091623e08cd4e9d8e30f44 (patch) | |
tree | ed0709a8adf2fd422763aa3a126159acb7581f50 /devel | |
parent | aedb03ba8ead80722b1a87b98e9cf62eef9b17a8 (diff) | |
download | freebsd-ports-gnome-3673d7f7b717c0807b091623e08cd4e9d8e30f44.tar.gz freebsd-ports-gnome-3673d7f7b717c0807b091623e08cd4e9d8e30f44.tar.zst freebsd-ports-gnome-3673d7f7b717c0807b091623e08cd4e9d8e30f44.zip |
Language C is a Haskell library for the analysis and generation of C
code. It features a complete, well tested parser and pretty printer for
all of C99 and a large set of GNU extensions.
WWW: http://www.sivity.net/projects/language.c/
Approved by: tabthorpe
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/hs-language-c-ghc/Makefile | 57 | ||||
-rw-r--r-- | devel/hs-language-c-ghc/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-language-c-ghc/pkg-descr | 5 | ||||
-rw-r--r-- | devel/hs-language-c-ghc/pkg-plist | 49 | ||||
-rw-r--r-- | devel/hs-language-c/Makefile | 57 | ||||
-rw-r--r-- | devel/hs-language-c/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-language-c/pkg-descr | 5 | ||||
-rw-r--r-- | devel/hs-language-c/pkg-plist | 49 |
9 files changed, 229 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index c2d0c9769a1a..69d0a3edf6b0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -505,6 +505,7 @@ SUBDIR += hs-hdoc SUBDIR += hs-hmake SUBDIR += hs-idoc + SUBDIR += hs-language-c-ghc SUBDIR += hs-pcre-light-ghc SUBDIR += hs-utf8-string-ghc SUBDIR += hs-uuagc diff --git a/devel/hs-language-c-ghc/Makefile b/devel/hs-language-c-ghc/Makefile new file mode 100644 index 000000000000..22695a9f67f0 --- /dev/null +++ b/devel/hs-language-c-ghc/Makefile @@ -0,0 +1,57 @@ +# New ports collection makefile for: hs-language-c-ghc +# Date created: March 2, 2009 +# Whom: Gabor Pali <pgj@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= language-c +PORTVERSION= 0.3.1.1 +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 + +GHC_VERSION= 6.8.3 +CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs +CABALDIR= lib/ghc-${GHC_VERSION}/cabal + +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + PORTNAME=${PORTNAME} \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${CABALDIR} +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} +PORTDOCS= LICENSE html + +CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir='' + +.if !defined(NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +PLIST_SUB+= RMLIC="@comment " +.else +PLIST_SUB+= RMLIC="" +.endif + +do-configure: + cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS} + +do-build: + cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${CABALCMD} haddock +.endif + +do-install: + cd ${WRKSRC} && ${CABALCMD} install + ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh + +.include <bsd.port.mk> diff --git a/devel/hs-language-c-ghc/distinfo b/devel/hs-language-c-ghc/distinfo new file mode 100644 index 000000000000..9c64ffadea77 --- /dev/null +++ b/devel/hs-language-c-ghc/distinfo @@ -0,0 +1,3 @@ +MD5 (language-c-0.3.1.1.tar.gz) = 4e0360b6439bd8d6519cec6bc213d906 +SHA256 (language-c-0.3.1.1.tar.gz) = f0599a449bb60a6203a9d3aea9a6d20af6f4a12debf4914cca74741dfd6ebe0d +SIZE (language-c-0.3.1.1.tar.gz) = 140876 diff --git a/devel/hs-language-c-ghc/pkg-descr b/devel/hs-language-c-ghc/pkg-descr new file mode 100644 index 000000000000..596676508857 --- /dev/null +++ b/devel/hs-language-c-ghc/pkg-descr @@ -0,0 +1,5 @@ +Language C is a Haskell library for the analysis and generation of C +code. It features a complete, well tested parser and pretty printer for +all of C99 and a large set of GNU extensions. + +WWW: http://www.sivity.net/projects/language.c/ diff --git a/devel/hs-language-c-ghc/pkg-plist b/devel/hs-language-c-ghc/pkg-plist new file mode 100644 index 000000000000..9710c4be8b0a --- /dev/null +++ b/devel/hs-language-c-ghc/pkg-plist @@ -0,0 +1,49 @@ +@comment $FreeBSD$ +%%SUBDIR%%/Language/C.hi +%%SUBDIR%%/Language/C/Analysis/AstAnalysis.hi +%%SUBDIR%%/Language/C/Analysis/Debug.hi +%%SUBDIR%%/Language/C/Analysis/DeclAnalysis.hi +%%SUBDIR%%/Language/C/Analysis/DefTable.hi +%%SUBDIR%%/Language/C/Analysis/Export.hi +%%SUBDIR%%/Language/C/Analysis/NameSpaceMap.hi +%%SUBDIR%%/Language/C/Analysis/SemError.hi +%%SUBDIR%%/Language/C/Analysis/SemRep.hi +%%SUBDIR%%/Language/C/Analysis/TravMonad.hi +%%SUBDIR%%/Language/C/Data/Error.hi +%%SUBDIR%%/Language/C/Data/Ident.hi +%%SUBDIR%%/Language/C/Data/InputStream.hi +%%SUBDIR%%/Language/C/Data/Name.hi +%%SUBDIR%%/Language/C/Data/Node.hi +%%SUBDIR%%/Language/C/Data/Position.hi +%%SUBDIR%%/Language/C/Data/RList.hi +%%SUBDIR%%/Language/C/Parser/Builtin.hi +%%SUBDIR%%/Language/C/Parser/Lexer.hi +%%SUBDIR%%/Language/C/Parser/Parser.hi +%%SUBDIR%%/Language/C/Parser/ParserMonad.hi +%%SUBDIR%%/Language/C/Parser/Tokens.hi +%%SUBDIR%%/Language/C/Syntax/AST.hi +%%SUBDIR%%/Language/C/Syntax/Constants.hi +%%SUBDIR%%/Language/C/Syntax/Ops.hi +%%SUBDIR%%/Language/C/System/GCC.hi +%%SUBDIR%%/Language/C/System/Preprocess.hi +%%SUBDIR%%/Language/C/Analysis.hi +%%SUBDIR%%/Language/C/Data.hi +%%SUBDIR%%/Language/C/Parser.hi +%%SUBDIR%%/Language/C/Pretty.hi +%%SUBDIR%%/Language/C/Syntax.hi +%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o +%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%SUBDIR%%/%%PORTNAME%%-register.sh +@dirrm %%SUBDIR%%/Language/C/Analysis +@dirrm %%SUBDIR%%/Language/C/Data +@dirrm %%SUBDIR%%/Language/C/Parser +@dirrm %%SUBDIR%%/Language/C/Syntax +@dirrm %%SUBDIR%%/Language/C/System +@dirrm %%SUBDIR%%/Language/C +@dirrmtry %%SUBDIR%%/Language +%%RMLIC%%%%DOCSDIR%%/LICENSE +%%RMLIC%%@dirrm %%DOCSDIR%% +@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh +@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec ghc-pkg unregister %%PORTNAME%% +@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old diff --git a/devel/hs-language-c/Makefile b/devel/hs-language-c/Makefile new file mode 100644 index 000000000000..22695a9f67f0 --- /dev/null +++ b/devel/hs-language-c/Makefile @@ -0,0 +1,57 @@ +# New ports collection makefile for: hs-language-c-ghc +# Date created: March 2, 2009 +# Whom: Gabor Pali <pgj@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= language-c +PORTVERSION= 0.3.1.1 +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 + +GHC_VERSION= 6.8.3 +CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs +CABALDIR= lib/ghc-${GHC_VERSION}/cabal + +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + PORTNAME=${PORTNAME} \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${CABALDIR} +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} +PORTDOCS= LICENSE html + +CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir='' + +.if !defined(NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +PLIST_SUB+= RMLIC="@comment " +.else +PLIST_SUB+= RMLIC="" +.endif + +do-configure: + cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS} + +do-build: + cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${CABALCMD} haddock +.endif + +do-install: + cd ${WRKSRC} && ${CABALCMD} install + ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh + +.include <bsd.port.mk> diff --git a/devel/hs-language-c/distinfo b/devel/hs-language-c/distinfo new file mode 100644 index 000000000000..9c64ffadea77 --- /dev/null +++ b/devel/hs-language-c/distinfo @@ -0,0 +1,3 @@ +MD5 (language-c-0.3.1.1.tar.gz) = 4e0360b6439bd8d6519cec6bc213d906 +SHA256 (language-c-0.3.1.1.tar.gz) = f0599a449bb60a6203a9d3aea9a6d20af6f4a12debf4914cca74741dfd6ebe0d +SIZE (language-c-0.3.1.1.tar.gz) = 140876 diff --git a/devel/hs-language-c/pkg-descr b/devel/hs-language-c/pkg-descr new file mode 100644 index 000000000000..596676508857 --- /dev/null +++ b/devel/hs-language-c/pkg-descr @@ -0,0 +1,5 @@ +Language C is a Haskell library for the analysis and generation of C +code. It features a complete, well tested parser and pretty printer for +all of C99 and a large set of GNU extensions. + +WWW: http://www.sivity.net/projects/language.c/ diff --git a/devel/hs-language-c/pkg-plist b/devel/hs-language-c/pkg-plist new file mode 100644 index 000000000000..9710c4be8b0a --- /dev/null +++ b/devel/hs-language-c/pkg-plist @@ -0,0 +1,49 @@ +@comment $FreeBSD$ +%%SUBDIR%%/Language/C.hi +%%SUBDIR%%/Language/C/Analysis/AstAnalysis.hi +%%SUBDIR%%/Language/C/Analysis/Debug.hi +%%SUBDIR%%/Language/C/Analysis/DeclAnalysis.hi +%%SUBDIR%%/Language/C/Analysis/DefTable.hi +%%SUBDIR%%/Language/C/Analysis/Export.hi +%%SUBDIR%%/Language/C/Analysis/NameSpaceMap.hi +%%SUBDIR%%/Language/C/Analysis/SemError.hi +%%SUBDIR%%/Language/C/Analysis/SemRep.hi +%%SUBDIR%%/Language/C/Analysis/TravMonad.hi +%%SUBDIR%%/Language/C/Data/Error.hi +%%SUBDIR%%/Language/C/Data/Ident.hi +%%SUBDIR%%/Language/C/Data/InputStream.hi +%%SUBDIR%%/Language/C/Data/Name.hi +%%SUBDIR%%/Language/C/Data/Node.hi +%%SUBDIR%%/Language/C/Data/Position.hi +%%SUBDIR%%/Language/C/Data/RList.hi +%%SUBDIR%%/Language/C/Parser/Builtin.hi +%%SUBDIR%%/Language/C/Parser/Lexer.hi +%%SUBDIR%%/Language/C/Parser/Parser.hi +%%SUBDIR%%/Language/C/Parser/ParserMonad.hi +%%SUBDIR%%/Language/C/Parser/Tokens.hi +%%SUBDIR%%/Language/C/Syntax/AST.hi +%%SUBDIR%%/Language/C/Syntax/Constants.hi +%%SUBDIR%%/Language/C/Syntax/Ops.hi +%%SUBDIR%%/Language/C/System/GCC.hi +%%SUBDIR%%/Language/C/System/Preprocess.hi +%%SUBDIR%%/Language/C/Analysis.hi +%%SUBDIR%%/Language/C/Data.hi +%%SUBDIR%%/Language/C/Parser.hi +%%SUBDIR%%/Language/C/Pretty.hi +%%SUBDIR%%/Language/C/Syntax.hi +%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o +%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a +%%SUBDIR%%/%%PORTNAME%%-register.sh +@dirrm %%SUBDIR%%/Language/C/Analysis +@dirrm %%SUBDIR%%/Language/C/Data +@dirrm %%SUBDIR%%/Language/C/Parser +@dirrm %%SUBDIR%%/Language/C/Syntax +@dirrm %%SUBDIR%%/Language/C/System +@dirrm %%SUBDIR%%/Language/C +@dirrmtry %%SUBDIR%%/Language +%%RMLIC%%%%DOCSDIR%%/LICENSE +%%RMLIC%%@dirrm %%DOCSDIR%% +@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh +@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec ghc-pkg unregister %%PORTNAME%% +@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |