diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2010-01-12 22:03:14 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2010-01-12 22:03:14 +0000 |
commit | 7f56f539cd6cf6fd370dccf26325b3ac7d1d3b3f (patch) | |
tree | e0d51f215bf286416a2af25ecbfc3a9631a88f6c /www/hs-scgi | |
parent | da34eb1b7eaa96862e03cfc0a54c410fa50d29ae (diff) | |
download | ports-7f56f539cd6cf6fd370dccf26325b3ac7d1d3b3f.tar.gz ports-7f56f539cd6cf6fd370dccf26325b3ac7d1d3b3f.zip |
Notes
Diffstat (limited to 'www/hs-scgi')
-rw-r--r-- | www/hs-scgi/Makefile | 77 | ||||
-rw-r--r-- | www/hs-scgi/distinfo | 3 | ||||
-rw-r--r-- | www/hs-scgi/pkg-descr | 4 | ||||
-rw-r--r-- | www/hs-scgi/pkg-plist | 14 |
4 files changed, 98 insertions, 0 deletions
diff --git a/www/hs-scgi/Makefile b/www/hs-scgi/Makefile new file mode 100644 index 000000000000..1613c1c34d75 --- /dev/null +++ b/www/hs-scgi/Makefile @@ -0,0 +1,77 @@ +# New ports collection makefile for: hs-scgi +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= scgi +PORTVERSION= 0.3.1 +CATEGORIES= www haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= A Haskell library for writing SCGI programs + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-cgi>=3000.0.0:${PORTSDIR}/www/hs-cgi +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-cgi>=3000.0.0:${PORTSDIR}/www/hs-cgi + +GHC_VERSION= 6.10.4 +SCGI_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +SCGI_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + SCGI_VERSION=${SCGI_VERSION} \ + SCGI_LIBDIR_REL=${SCGI_LIBDIR_REL} + +.if defined(NOPORTDOCS) +PLIST_SUB+= NOPORTDOCS="" +.else +PLIST_SUB+= NOPORTDOCS="@comment " +.endif + +.if !defined(NOPORTDOCS) + +PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK) +.if !empty(PORT_HADDOCK:M?0) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +.endif +BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour + +HSCOLOUR_VERSION= 1.15 +HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} + +PORTDOCS= * +.endif + +.SILENT: + +do-configure: + cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \ + && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} + +do-build: + cd ${WRKSRC} && ${SETUP_CMD} build \ + && ${SETUP_CMD} register --gen-script + +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \ + --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css +.endif + +do-install: + cd ${WRKSRC} && ${SETUP_CMD} install \ + && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${SCGI_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/www/hs-scgi/distinfo b/www/hs-scgi/distinfo new file mode 100644 index 000000000000..4406cf412f5f --- /dev/null +++ b/www/hs-scgi/distinfo @@ -0,0 +1,3 @@ +MD5 (scgi-0.3.1.tar.gz) = 460f4f35a1a8ade0f7be86b5e4fd891b +SHA256 (scgi-0.3.1.tar.gz) = 05e0a311f98e673b7dba5d9f56534ac86c53819582131010442e637c0fbd8505 +SIZE (scgi-0.3.1.tar.gz) = 13957 diff --git a/www/hs-scgi/pkg-descr b/www/hs-scgi/pkg-descr new file mode 100644 index 000000000000..ef953544baeb --- /dev/null +++ b/www/hs-scgi/pkg-descr @@ -0,0 +1,4 @@ +This Haskell library lets you write SCGI programs. This package reuses +the cgi package API, making it very easy to port CGI programs to SCGI. + +WWW: http://github.com/esessoms/scgi diff --git a/www/hs-scgi/pkg-plist b/www/hs-scgi/pkg-plist new file mode 100644 index 000000000000..ec8e865a60dd --- /dev/null +++ b/www/hs-scgi/pkg-plist @@ -0,0 +1,14 @@ +@comment $FreeBSD$ +%%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSscgi-%%SCGI_VERSION%%.o +%%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/SCGI.hi +%%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSscgi-%%SCGI_VERSION%%.a +%%SCGI_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/COPYING +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network +@dirrm %%SCGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%SCGI_LIBDIR_REL%% +@exec /bin/sh %D/%%SCGI_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister scgi +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |