ports/142178: [new port]: haskell port www/hs-HTTP

Jacula Modyun jacula at gmail.com
Wed Dec 30 22:00:09 UTC 2009


>Number:         142178
>Category:       ports
>Synopsis:       [new port]: haskell port www/hs-HTTP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 30 22:00:08 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Jacula Modyun
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD splork.wirewater.yow 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Sat Oct 18 11:22:07 UTC 2008 root at splork.wirewater.yow:/usr/obj/usr/src/sys/JACULA i386


	
>Description:

HTTP: A library for client-side HTTP

This package contains updated versions of Warrick Gray's excellent
Haskell HTTPand Browser modules, supporting the issuing of HTTP 1.1
requests and handling their responses.

http://projects.haskell.org/http

>How-To-Repeat:
	
>Fix:

	

--- hs-HTTP.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	hs-HTTP
#	hs-HTTP/Makefile
#	hs-HTTP/distinfo
#	hs-HTTP/pkg-plist
#	hs-HTTP/pkg-descr
#
echo c - hs-HTTP
mkdir -p hs-HTTP > /dev/null 2>&1
echo x - hs-HTTP/Makefile
sed 's/^X//' >hs-HTTP/Makefile << '8d2a113ca050725c2061a23872d952df'
X# New ports collection makefile for: hs-HTTP
X# Date created:        December 20 2009
X# Whom:                Giuseppe Pilichi aka Jacula Modyun <jacula at gmail.com>
X#
X
XPORTNAME=	HTTP
XPORTVERSION=	4000.0.9
XCATEGORIES=	www haskell
XMASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
XPKGNAMEPREFIX=	hs-
X
XMAINTAINER=	jacula at gmail.com
XCOMMENT=	A library for client-side HTTP
X
XBUILD_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
XRUN_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
X
XGHC_VERSION=	6.10.4
XHTTP_VERSION=	${PORTVERSION}
X
XGHC_CMD=	${LOCALBASE}/bin/ghc
XSETUP_CMD=	./setup
X
XDOCSDIR=		${PREFIX}/share/doc/${DISTNAME}
XHTTP_LIBDIR_REL=	lib/${DISTNAME}
X
XPLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
X		HTTP_VERSION=${HTTP_VERSION} \
X		HTTP_LIBDIR_REL=${HTTP_LIBDIR_REL}
X
X.if defined(NOPORTDOCS)
XPLIST_SUB+=	NOPORTDOCS=""
X.else
XPLIST_SUB+=	NOPORTDOCS="@comment "
X.endif
X
X.if !defined(NOPORTDOCS)
X
XPORT_HADDOCK!=	(cd  ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
X.if !empty(PORT_HADDOCK:M?0)
XBUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
X.endif
XBUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
X
XHSCOLOUR_VERSION=	1.15
XHSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
X
XPORTDOCS=	*
X.endif
X
X.SILENT:
X
Xdo-configure:
X	cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
X		     && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
X
Xdo-build:
X	cd ${WRKSRC} && ${SETUP_CMD} build \
X		     && ${SETUP_CMD} register --gen-script
X
X.if !defined(NOPORTDOCS)
X	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
X					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
X.endif
X
Xdo-install:
X	cd ${WRKSRC} && ${SETUP_CMD} install \
X		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${HTTP_LIBDIR_REL}/register.sh
X
Xpost-install:
X	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
X
X.include <bsd.port.mk>
8d2a113ca050725c2061a23872d952df
echo x - hs-HTTP/distinfo
sed 's/^X//' >hs-HTTP/distinfo << 'aaeb17328efed21beb74db842f703ac8'
XMD5 (HTTP-4000.0.9.tar.gz) = bbd005935537ed8883bfefb624e8bf3c
XSHA256 (HTTP-4000.0.9.tar.gz) = 1e2b4a8b782ad1417c8755bb0d248851bc142b351366ed460e07f2945a5e95ba
XSIZE (HTTP-4000.0.9.tar.gz) = 59528
aaeb17328efed21beb74db842f703ac8
echo x - hs-HTTP/pkg-plist
sed 's/^X//' >hs-HTTP/pkg-plist << 'a998530abeec912ec661e03c99d96ab1'
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSHTTP-%%HTTP_VERSION%%.o
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Browser.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/BufferType.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Auth.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Base.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Base64.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Cookie.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/HandleStream.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Headers.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/MD5.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/MD5Aux.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Proxy.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Stream.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP/Utils.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Stream.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/StreamDebugger.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/StreamSocket.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/TCP.hi
X%%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSHTTP-%%HTTP_VERSION%%.a
X%%HTTP_LIBDIR_REL%%/register.sh
X%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
X%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
X at dirrm %%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HTTP
X at dirrm %%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
X at dirrm %%HTTP_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
X at dirrm %%HTTP_LIBDIR_REL%%
X at exec /bin/sh %D/%%HTTP_LIBDIR_REL%%/register.sh
X at exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
X at unexec %D/bin/ghc-pkg unregister HTTP
X at unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
a998530abeec912ec661e03c99d96ab1
echo x - hs-HTTP/pkg-descr
sed 's/^X//' >hs-HTTP/pkg-descr << '2770f05fc3ecfb4aae6807604f0903c0'
XThe HTTP package supports client-side web programming in Haskell. It lets
Xyou set up HTTP connections, transmitting requests and processing the
Xresponses coming back, all from within the comforts of Haskell. It's
Xdependent on the network package to operate, but other than that, the
Ximplementation is all written in Haskell.
X
XA basic API for issuing single HTTP requests + receiving responses is
Xprovided. On top of that, a session-level abstraction is also on offer
X(the BrowserAction monad); it taking care of handling the management of
Xpersistent connections, proxies, state (cookies) and authentication
Xcredentials required to handle multi-step interactions with a web server.
X
XThe representation of the bytes flowing across is extensible via the use
Xof a type class, letting you pick the representation of requests and
Xresponses that best fits your use. Some pre-packaged, common instances
Xare provided for you (ByteString, String.)
X
XWWW: http://projects.haskell.org/http/
2770f05fc3ecfb4aae6807604f0903c0
exit
--- hs-HTTP.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list