diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-03 07:12:53 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-03 07:12:53 +0800 |
commit | 454bea27cbcc349eac8a9935f8c8bd2fa452b955 (patch) | |
tree | a5b390b199dc3cb85375490868bffd256d3f7a2f /www | |
parent | a7b80c627521802eec20f9b6c2926a6641b13057 (diff) | |
download | freebsd-ports-gnome-454bea27cbcc349eac8a9935f8c8bd2fa452b955.tar.gz freebsd-ports-gnome-454bea27cbcc349eac8a9935f8c8bd2fa452b955.tar.zst freebsd-ports-gnome-454bea27cbcc349eac8a9935f8c8bd2fa452b955.zip |
This is a Haskell library for writing CGI programs.
WWW: http://hackage.haskell.org/package/cgi
PR: ports/142181
Submitted by: Jacula Modyun <jacula(at)gmail.com>
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/hs-cgi/Makefile | 75 | ||||
-rw-r--r-- | www/hs-cgi/distinfo | 3 | ||||
-rw-r--r-- | www/hs-cgi/pkg-descr | 3 | ||||
-rw-r--r-- | www/hs-cgi/pkg-plist | 22 |
5 files changed, 104 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 6f8bbf3bf8de..0e6fff90141c 100644 --- a/www/Makefile +++ b/www/Makefile @@ -289,6 +289,7 @@ SUBDIR += horde-trean SUBDIR += horde-wicked SUBDIR += hs-HTTP + SUBDIR += hs-cgi SUBDIR += hs-url SUBDIR += htdump SUBDIR += html2hdml diff --git a/www/hs-cgi/Makefile b/www/hs-cgi/Makefile new file mode 100644 index 000000000000..ad10393c0675 --- /dev/null +++ b/www/hs-cgi/Makefile @@ -0,0 +1,75 @@ +# New ports collection makefile for: hs-cgi +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= cgi +PORTVERSION= 3001.1.7.1 +CATEGORIES= www haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= A Haskell library for writing CGI programs + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.10.4 +CGI_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +CGI_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + CGI_VERSION=${CGI_VERSION} \ + CGI_LIBDIR_REL=${CGI_LIBDIR_REL} + +.if defined(NOPORTDOCS) +PLIST_SUB+= NOPORTDOCS="" +.else +PLIST_SUB+= NOPORTDOCS="@comment " +.endif + +.if !defined(NOPORTDOCS) + +PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK) +.if !empty(PORT_HADDOCK:M?0) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +.endif +BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour + +HSCOLOUR_VERSION= 1.15 +HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} + +PORTDOCS= * +.endif + +.SILENT: + +do-configure: + cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \ + && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} + +do-build: + cd ${WRKSRC} && ${SETUP_CMD} build \ + && ${SETUP_CMD} register --gen-script + +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \ + --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css +.endif + +do-install: + cd ${WRKSRC} && ${SETUP_CMD} install \ + && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${CGI_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/www/hs-cgi/distinfo b/www/hs-cgi/distinfo new file mode 100644 index 000000000000..c763391bf945 --- /dev/null +++ b/www/hs-cgi/distinfo @@ -0,0 +1,3 @@ +MD5 (cgi-3001.1.7.1.tar.gz) = 02b1d2fe6f271a17c1eb8b897fbd1d7f +SHA256 (cgi-3001.1.7.1.tar.gz) = 7d1d710871fffbbec2a33d7288b2959ddbcfd794d47f0122127576c02550b339 +SIZE (cgi-3001.1.7.1.tar.gz) = 21144 diff --git a/www/hs-cgi/pkg-descr b/www/hs-cgi/pkg-descr new file mode 100644 index 000000000000..a29726377f07 --- /dev/null +++ b/www/hs-cgi/pkg-descr @@ -0,0 +1,3 @@ +This is a Haskell library for writing CGI programs. + +WWW: http://hackage.haskell.org/package/cgi diff --git a/www/hs-cgi/pkg-plist b/www/hs-cgi/pkg-plist new file mode 100644 index 000000000000..37b44e0ce9fe --- /dev/null +++ b/www/hs-cgi/pkg-plist @@ -0,0 +1,22 @@ +@comment $FreeBSD$ +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HScgi-%%CGI_VERSION%%.o +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI.hi +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Accept.hi +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Compat.hi +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Cookie.hi +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Header.hi +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Monad.hi +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Multipart.hi +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI/Protocol.hi +%%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHScgi-%%CGI_VERSION%%.a +%%CGI_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/CGI +@dirrm %%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network +@dirrm %%CGI_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%CGI_LIBDIR_REL%% +@exec /bin/sh %D/%%CGI_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister cgi +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |