diff options
author | pgj <pgj@FreeBSD.org> | 2011-08-14 07:26:14 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2011-08-14 07:26:14 +0800 |
commit | 6d4d60e8f10d9b386c18c70ee20b56e574f0c25d (patch) | |
tree | a1e2609ecdce3f462a06c4a2fbf7b7641b9b6ee4 /www | |
parent | f7b0fbdb98ef3810ae56a3c229d8b6d6c21529e3 (diff) | |
download | freebsd-ports-gnome-6d4d60e8f10d9b386c18c70ee20b56e574f0c25d.tar.gz freebsd-ports-gnome-6d4d60e8f10d9b386c18c70ee20b56e574f0c25d.tar.zst freebsd-ports-gnome-6d4d60e8f10d9b386c18c70ee20b56e574f0c25d.zip |
Snap is a simple and fast web development framework and server written in
Haskell. For more information or to download the latest version, you can visit
the Snap project website.
The Snap HTTP server is a high performance, epoll-enabled, iteratee-based web
server library written in Haskell. Together with the "snap-core" library upon
which it depends, it provides a clean and efficient Haskell programming
interface to the HTTP protocol.
Higher-level facilities for building web applications (like user/session
management, component interfaces, data modeling, etc.) are planned but not
yet implemented, so this release will mostly be of interest for those who:
* need a fast and minimal HTTP API at roughly the same level of abstraction
as Java servlets, or
* are interested in contributing to the Snap Framework project.
WWW: http://snapframework.com/
Obtained from: FreeBSD Haskell
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/hs-snap-server/Makefile | 47 | ||||
-rw-r--r-- | www/hs-snap-server/distinfo | 2 | ||||
-rw-r--r-- | www/hs-snap-server/files/patch-snap-server.cabal | 20 | ||||
-rw-r--r-- | www/hs-snap-server/pkg-descr | 19 |
5 files changed, 89 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 4e7934f5f768..07590f585b03 100644 --- a/www/Makefile +++ b/www/Makefile @@ -318,6 +318,7 @@ SUBDIR += hs-oeis SUBDIR += hs-scgi SUBDIR += hs-snap-core + SUBDIR += hs-snap-server SUBDIR += hs-url SUBDIR += hs-wai SUBDIR += hs-warp diff --git a/www/hs-snap-server/Makefile b/www/hs-snap-server/Makefile new file mode 100644 index 000000000000..a20ec653b15c --- /dev/null +++ b/www/hs-snap-server/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: hs-snap-server +# Date created: September 19, 2010 +# Whom: haskell@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= snap-server +PORTVERSION= 0.5.2 +CATEGORIES= www haskell + +MAINTAINER= haskell@FreeBSD.org +COMMENT= A fast, iteratee-based, epoll-enabled web server for the Snap Framework + +LICENSE= BSD + +CABAL_SETUP= Setup.hs +USE_CABAL= attoparsec>=0.8.1 attoparsec-enumerator>=0.2.0.1 binary>=0.5 \ + blaze-builder>=0.2.1.4 blaze-builder-enumerator>=0.2 \ + bytestring-nums case-insensitive>=0.2 directory-tree \ + enumerator>=0.4.13.1 MonadCatchIO-transformers>=0.2.1 mtl>=2 \ + murmur-hash>=0.1 network>=2.3 PSQueue>=1.1 snap-core>=0.5.2 \ + text>=0.11 transformers unix-compat>=0.2 utf8-string \ + vector>=0.7 vector-algorithms>=0.4 + +OPTIONS= LIBEV "Use libev" off \ + GNUTLS "Enable https support using the libgnutls library" off + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk" +.include <bsd.port.options.mk> + +.if defined(WITH_LIBEV) +CONFIGURE_ARGS+= --flags="libev" +USE_CABAL+= hlibev +.else +CONFIGURE_ARGS+= --flags="-libev" +.endif + +.if defined(WITH_GNUTLS) +CONFIGURE_ARGS+= --flags="gnutls" +LIB_DEPENDS= gnutls:${PORTSDIR}/security/gnutls +.else +CONFIGURE_ARGS+= --flags="-gnutls" +.endif + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" +.include <bsd.port.mk> diff --git a/www/hs-snap-server/distinfo b/www/hs-snap-server/distinfo new file mode 100644 index 000000000000..e7ba0d892bd0 --- /dev/null +++ b/www/hs-snap-server/distinfo @@ -0,0 +1,2 @@ +SHA256 (cabal/snap-server-0.5.2.tar.gz) = 2e06bfdf6d0d19f18f4f0666feb691c003ee1faa52cb72a73e055728571ab142 +SIZE (cabal/snap-server-0.5.2.tar.gz) = 59328 diff --git a/www/hs-snap-server/files/patch-snap-server.cabal b/www/hs-snap-server/files/patch-snap-server.cabal new file mode 100644 index 000000000000..a88d07a1c6cb --- /dev/null +++ b/www/hs-snap-server/files/patch-snap-server.cabal @@ -0,0 +1,20 @@ +--- ./snap-server.cabal.orig 2011-07-20 22:05:26.000000000 +0200 ++++ ./snap-server.cabal 2011-08-13 10:58:29.000000000 +0200 +@@ -108,7 +108,7 @@ + blaze-builder-enumerator >= 0.2.0 && <0.3, + bytestring, + bytestring-nums, +- case-insensitive >= 0.2 && < 0.3, ++ case-insensitive >= 0.2, + containers, + directory-tree, + enumerator >= 0.4.13.1 && <0.5, +@@ -125,7 +125,7 @@ + transformers, + unix-compat == 0.2.*, + vector >= 0.7 && <0.8, +- vector-algorithms >= 0.4 && <0.5, ++ vector-algorithms >= 0.4, + PSQueue >= 1.1 && <1.2 + + if flag(portable) || os(windows) diff --git a/www/hs-snap-server/pkg-descr b/www/hs-snap-server/pkg-descr new file mode 100644 index 000000000000..01ff54feb376 --- /dev/null +++ b/www/hs-snap-server/pkg-descr @@ -0,0 +1,19 @@ +Snap is a simple and fast web development framework and server written in +Haskell. For more information or to download the latest version, you can visit +the Snap project website. + +The Snap HTTP server is a high performance, epoll-enabled, iteratee-based web +server library written in Haskell. Together with the "snap-core" library upon +which it depends, it provides a clean and efficient Haskell programming +interface to the HTTP protocol. + +Higher-level facilities for building web applications (like user/session +management, component interfaces, data modeling, etc.) are planned but not +yet implemented, so this release will mostly be of interest for those who: + +* need a fast and minimal HTTP API at roughly the same level of abstraction + as Java servlets, or + +* are interested in contributing to the Snap Framework project. + +WWW: http://snapframework.com/ |