summaryrefslogtreecommitdiff
path: root/www/hs-HTTP
diff options
context:
space:
mode:
authorszptvlfn <szptvlfn@pkgsrc.org>2014-07-24 21:18:24 +0000
committerszptvlfn <szptvlfn@pkgsrc.org>2014-07-24 21:18:24 +0000
commitd6abc39acb4402ce1208fca121b3853e585c4a37 (patch)
treefcf05172d3a922955dc8c59c828315a1d8563dca /www/hs-HTTP
parent469a3e80360be11225c626a7abf7e95ba9362e4e (diff)
downloadpkgsrc-d6abc39acb4402ce1208fca121b3853e585c4a37.tar.gz
Import HTTP-4000.2.17 as www/hs-HTTP,
packaged for wip by pho. The HTTP package supports client-side web programming in Haskell. It lets you set up HTTP connections, transmitting requests and processing the responses coming back, all from within the comforts of Haskell. It's dependent on the network package to operate, but other than that, the implementation is all written in Haskell. A basic API for issuing single HTTP requests + receiving responses is provided. On top of that, a session-level abstraction is also on offer (the BrowserAction monad); it taking care of handling the management of persistent connections, proxies, state (cookies) and authentication credentials required to handle multi-step interactions with a web server. The representation of the bytes flowing across is extensible via the use of a type class, letting you pick the representation of requests and responses that best fits your use. Some pre-packaged, common instances are provided for you (ByteString, String).
Diffstat (limited to 'www/hs-HTTP')
-rw-r--r--www/hs-HTTP/DESCR16
-rw-r--r--www/hs-HTTP/Makefile14
-rw-r--r--www/hs-HTTP/PLIST83
-rw-r--r--www/hs-HTTP/buildlink3.mk16
-rw-r--r--www/hs-HTTP/distinfo5
5 files changed, 134 insertions, 0 deletions
diff --git a/www/hs-HTTP/DESCR b/www/hs-HTTP/DESCR
new file mode 100644
index 00000000000..27e4a099d3c
--- /dev/null
+++ b/www/hs-HTTP/DESCR
@@ -0,0 +1,16 @@
+The HTTP package supports client-side web programming in Haskell. It lets
+you set up HTTP connections, transmitting requests and processing the
+responses coming back, all from within the comforts of Haskell. It's
+dependent on the network package to operate, but other than that, the
+implementation is all written in Haskell.
+
+A basic API for issuing single HTTP requests + receiving responses is
+provided. On top of that, a session-level abstraction is also on offer (the
+BrowserAction monad); it taking care of handling the management of
+persistent connections, proxies, state (cookies) and authentication
+credentials required to handle multi-step interactions with a web server.
+
+The representation of the bytes flowing across is extensible via the use of
+a type class, letting you pick the representation of requests and responses
+that best fits your use. Some pre-packaged, common instances are provided
+for you (ByteString, String).
diff --git a/www/hs-HTTP/Makefile b/www/hs-HTTP/Makefile
new file mode 100644
index 00000000000..0ca82d2649d
--- /dev/null
+++ b/www/hs-HTTP/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2014/07/24 21:18:24 szptvlfn Exp $
+
+DISTNAME= HTTP-4000.2.17
+CATEGORIES= www
+
+MAINTAINER= pho@cielonegro.org
+COMMENT= Haskell library for client-side HTTP
+LICENSE= modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../devel/hs-mtl/buildlink3.mk"
+.include "../../net/hs-network/buildlink3.mk"
+.include "../../textproc/hs-parsec/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/hs-HTTP/PLIST b/www/hs-HTTP/PLIST
new file mode 100644
index 00000000000..0cbbd3c07bc
--- /dev/null
+++ b/www/hs-HTTP/PLIST
@@ -0,0 +1,83 @@
+@comment $NetBSD: PLIST,v 1.1 2014/07/24 21:18:24 szptvlfn Exp $
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/HSHTTP-${PKGVERSION}.o
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/Browser.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/BufferType.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/Auth.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/Base.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/Base64.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/Cookie.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/HandleStream.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/Headers.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/MD5Aux.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/Proxy.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/Stream.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/HTTP/Utils.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/Stream.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/StreamDebugger.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/StreamSocket.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Network/TCP.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/Paths_HTTP.hi
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/libHSHTTP-${PKGVERSION}.a
+lib/HTTP-${PKGVERSION}/${HASKELL_VERSION}/package-description
+share/doc/HTTP-${PKGVERSION}/LICENSE
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/HTTP.haddock
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-Browser.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-BufferType.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-HTTP-Auth.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-HTTP-Base.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-HTTP-Cookie.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-HTTP-HandleStream.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-HTTP-Headers.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-HTTP-Proxy.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-HTTP-Stream.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-HTTP.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-Stream.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-StreamDebugger.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-StreamSocket.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/Network-TCP.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-A.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-All.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-B.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-C.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-D.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-E.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-F.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-G.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-H.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-I.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-L.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-M.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-N.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-O.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-P.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-Q.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-R.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-S.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-T.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-U.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index-W.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/doc-index.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/frames.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/haddock-util.js
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/hslogo-16.png
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/index-frames.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/index.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-Browser.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-BufferType.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-HTTP-Auth.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-HTTP-Base.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-HTTP-Cookie.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-HTTP-HandleStream.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-HTTP-Headers.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-HTTP-Proxy.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-HTTP-Stream.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-HTTP.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-Stream.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-StreamDebugger.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-StreamSocket.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/mini_Network-TCP.html
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/minus.gif
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/ocean.css
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/plus.gif
+${PLIST.doc}share/doc/HTTP-${PKGVERSION}/html/synopsis.png
diff --git a/www/hs-HTTP/buildlink3.mk b/www/hs-HTTP/buildlink3.mk
new file mode 100644
index 00000000000..4dc062d9c4e
--- /dev/null
+++ b/www/hs-HTTP/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/07/24 21:18:24 szptvlfn Exp $
+
+BUILDLINK_TREE+= hs-HTTP
+
+.if !defined(HS_HTTP_BUILDLINK3_MK)
+HS_HTTP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-HTTP+= hs-HTTP>=4000.2.17
+BUILDLINK_PKGSRCDIR.hs-HTTP?= ../../www/hs-HTTP
+
+.include "../../devel/hs-mtl/buildlink3.mk"
+.include "../../net/hs-network/buildlink3.mk"
+.include "../../textproc/hs-parsec/buildlink3.mk"
+.endif # HS_HTTP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-HTTP
diff --git a/www/hs-HTTP/distinfo b/www/hs-HTTP/distinfo
new file mode 100644
index 00000000000..576122ac21d
--- /dev/null
+++ b/www/hs-HTTP/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/07/24 21:18:24 szptvlfn Exp $
+
+SHA1 (HTTP-4000.2.17.tar.gz) = e4dd82f84fab6bd90a025a087573e7a46c72ed4a
+RMD160 (HTTP-4000.2.17.tar.gz) = ff48cd11b46da823e5bb93d88c41fdc30104b8b7
+Size (HTTP-4000.2.17.tar.gz) = 69706 bytes