From e739d31a08c56ef92f53873ac96207e1fc070dd0 Mon Sep 17 00:00:00 2001 From: kili Date: Wed, 27 Aug 2008 18:55:05 +0000 Subject: [PATCH] A client-side HTTP library for GHC. Requirement for the upcoming update to darcs-2.0.2. --- net/hs-HTTP/Makefile | 65 ++++++++++++++++++++++++++++ net/hs-HTTP/distinfo | 5 +++ net/hs-HTTP/patches/patch-HTTP_cabal | 44 +++++++++++++++++++ net/hs-HTTP/pkg/DESCR | 2 + net/hs-HTTP/pkg/PLIST | 57 ++++++++++++++++++++++++ 5 files changed, 173 insertions(+) create mode 100644 net/hs-HTTP/Makefile create mode 100644 net/hs-HTTP/distinfo create mode 100644 net/hs-HTTP/patches/patch-HTTP_cabal create mode 100644 net/hs-HTTP/pkg/DESCR create mode 100644 net/hs-HTTP/pkg/PLIST diff --git a/net/hs-HTTP/Makefile b/net/hs-HTTP/Makefile new file mode 100644 index 00000000000..ba372456f40 --- /dev/null +++ b/net/hs-HTTP/Makefile @@ -0,0 +1,65 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/08/27 18:55:05 kili Exp $ + +ONLY_FOR_ARCHS= i386 amd64 + +COMMENT= client-side HTTP library for GHC + +V= 3001.0.4 +DISTNAME= HTTP-$V +PKGNAME= hs-${DISTNAME} + +CATEGORIES= net devel + +HOMEPAGE= http://www.haskell.org/http/ + +MAINTAINER= Matthias Kilian + +# BSD3 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= http://hackage.haskell.org/packages/archive/HTTP/$V/ + +MODULES= lang/ghc + +BUILD_DEPENDS= ::devel/haddock + +SETUP_CONF_ARGS= configure -g --prefix=${PREFIX} +SETUP_CONF_ENV= HOME=${PORTHOME} ${CONFIGURE_ENV} +SETUP_PROG= ${WRKSRC}/Setup +SUBST_VARS= V + +do-configure: + @cd ${WRKSRC} && ghc --make -o ${SETUP_PROG} Setup.lhs + @cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \ + ${SETUP_PROG} ${SETUP_CONF_ARGS} + +do-build: + @cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \ + ${SETUP_PROG} build + @cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \ + ${SETUP_PROG} haddock + @cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \ + ${SETUP_PROG} register --gen-script + @cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \ + ${SETUP_PROG} unregister --gen-script + perl -pi -e 's!/share/${DISTNAME}/doc/html!/share/doc/${DISTNAME}!' \ + ${WRKBUILD}/register.sh + +do-install: + @cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \ + ${SETUP_PROG} copy -v 5 --destdir=${DESTDIR} + +post-install: + find ${PREFIX} -type f + mv ${PREFIX}/share/${DISTNAME}/doc/html ${PREFIX}/share/doc/${DISTNAME} + rm -rf ${PREFIX}/share/${DISTNAME} +.for f in register.sh unregister.sh + ${INSTALL_SCRIPT} ${WRKBUILD}/$f ${PREFIX}/lib/${DISTNAME} +.endfor + +NO_REGRESS= Yes + +.include diff --git a/net/hs-HTTP/distinfo b/net/hs-HTTP/distinfo new file mode 100644 index 00000000000..c53fa9c0925 --- /dev/null +++ b/net/hs-HTTP/distinfo @@ -0,0 +1,5 @@ +MD5 (HTTP-3001.0.4.tar.gz) = LKsYDjGaTX2yWDLPpXz7xQ== +RMD160 (HTTP-3001.0.4.tar.gz) = MivT1+d9eHN4EmUqHc1E1of4UwY= +SHA1 (HTTP-3001.0.4.tar.gz) = sIokQLMeift1GRWT2Y/kwSxswLA= +SHA256 (HTTP-3001.0.4.tar.gz) = s10abzRadyXZJ8Q2qBmeAPvuMAjHQhWy+VNqh2cK6TM= +SIZE (HTTP-3001.0.4.tar.gz) = 35696 diff --git a/net/hs-HTTP/patches/patch-HTTP_cabal b/net/hs-HTTP/patches/patch-HTTP_cabal new file mode 100644 index 00000000000..4e111879d7f --- /dev/null +++ b/net/hs-HTTP/patches/patch-HTTP_cabal @@ -0,0 +1,44 @@ +$OpenBSD: patch-HTTP_cabal,v 1.1.1.1 2008/08/27 18:55:05 kili Exp $ +--- HTTP.cabal.orig Thu Dec 13 13:51:16 2007 ++++ HTTP.cabal Tue Aug 26 21:11:00 2008 +@@ -1,7 +1,5 @@ + Name: HTTP + Version: 3001.0.4 +-Cabal-Version: >= 1.2 +-Build-type: Simple + License: BSD3 + License-file: LICENSE + Copyright: +@@ -16,13 +14,8 @@ Author: Warrick Gray + Maintainer: Bjorn Bringert + Homepage: http://www.haskell.org/http/ + Description: A library for client-side HTTP +- +-Flag old-base +- description: Old, monolithic base +- default: False +- +-Library +- Exposed-modules: ++Build-depends: network, parsec, base < 3 ++Exposed-modules: + Network.Stream, + Network.StreamDebugger, + Network.StreamSocket, +@@ -30,14 +23,8 @@ Library + Network.HTTP, + Network.HTTP.Headers, + Network.Browser +- Other-modules: ++Other-modules: + Network.HTTP.Base64, + Network.HTTP.MD5, + Network.HTTP.MD5Aux +- GHC-options: -fwarn-missing-signatures +- Build-depends: network, parsec +- +- if flag(old-base) +- Build-depends: base < 3 +- else +- Build-depends: base >= 3, array ++GHC-options: -fwarn-missing-signatures diff --git a/net/hs-HTTP/pkg/DESCR b/net/hs-HTTP/pkg/DESCR new file mode 100644 index 00000000000..0aaea9ab0c5 --- /dev/null +++ b/net/hs-HTTP/pkg/DESCR @@ -0,0 +1,2 @@ +This package contains updated versions of Warrick Gray's excellent +Haskell HTTP and Browser modules. diff --git a/net/hs-HTTP/pkg/PLIST b/net/hs-HTTP/pkg/PLIST new file mode 100644 index 00000000000..4446d94eac6 --- /dev/null +++ b/net/hs-HTTP/pkg/PLIST @@ -0,0 +1,57 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/08/27 18:55:05 kili Exp $ +lib/HTTP-${V}/ +lib/HTTP-${V}/ghc-6.6.1/ +lib/HTTP-${V}/ghc-6.6.1/HSHTTP-${V}.o +lib/HTTP-${V}/ghc-6.6.1/Network/ +lib/HTTP-${V}/ghc-6.6.1/Network/Browser.hi +lib/HTTP-${V}/ghc-6.6.1/Network/HTTP/ +lib/HTTP-${V}/ghc-6.6.1/Network/HTTP.hi +lib/HTTP-${V}/ghc-6.6.1/Network/HTTP/Base64.hi +lib/HTTP-${V}/ghc-6.6.1/Network/HTTP/Headers.hi +lib/HTTP-${V}/ghc-6.6.1/Network/HTTP/MD5.hi +lib/HTTP-${V}/ghc-6.6.1/Network/HTTP/MD5Aux.hi +lib/HTTP-${V}/ghc-6.6.1/Network/Stream.hi +lib/HTTP-${V}/ghc-6.6.1/Network/StreamDebugger.hi +lib/HTTP-${V}/ghc-6.6.1/Network/StreamSocket.hi +lib/HTTP-${V}/ghc-6.6.1/Network/TCP.hi +lib/HTTP-${V}/ghc-6.6.1/include/ +lib/HTTP-${V}/ghc-6.6.1/libHSHTTP-${V}.a +lib/HTTP-${V}/register.sh +@exec /usr/bin/env HOME=/nonexistent %D/lib/HTTP-${V}/register.sh +@unexec /usr/bin/env HOME=/nonexistent %D/lib/HTTP-${V}/unregister.sh +lib/HTTP-${V}/unregister.sh +share/doc/HTTP-${V}/ +share/doc/HTTP-${V}/HTTP.haddock +share/doc/HTTP-${V}/Network-Browser.html +share/doc/HTTP-${V}/Network-HTTP-Headers.html +share/doc/HTTP-${V}/Network-HTTP.html +share/doc/HTTP-${V}/Network-Stream.html +share/doc/HTTP-${V}/Network-StreamDebugger.html +share/doc/HTTP-${V}/Network-StreamSocket.html +share/doc/HTTP-${V}/Network-TCP.html +share/doc/HTTP-${V}/doc-index-A.html +share/doc/HTTP-${V}/doc-index-B.html +share/doc/HTTP-${V}/doc-index-C.html +share/doc/HTTP-${V}/doc-index-D.html +share/doc/HTTP-${V}/doc-index-E.html +share/doc/HTTP-${V}/doc-index-F.html +share/doc/HTTP-${V}/doc-index-G.html +share/doc/HTTP-${V}/doc-index-H.html +share/doc/HTTP-${V}/doc-index-I.html +share/doc/HTTP-${V}/doc-index-L.html +share/doc/HTTP-${V}/doc-index-M.html +share/doc/HTTP-${V}/doc-index-N.html +share/doc/HTTP-${V}/doc-index-O.html +share/doc/HTTP-${V}/doc-index-P.html +share/doc/HTTP-${V}/doc-index-R.html +share/doc/HTTP-${V}/doc-index-S.html +share/doc/HTTP-${V}/doc-index-T.html +share/doc/HTTP-${V}/doc-index-U.html +share/doc/HTTP-${V}/doc-index-W.html +share/doc/HTTP-${V}/doc-index.html +share/doc/HTTP-${V}/haddock.css +share/doc/HTTP-${V}/haddock.js +share/doc/HTTP-${V}/haskell_icon.gif +share/doc/HTTP-${V}/index.html +share/doc/HTTP-${V}/minus.gif +share/doc/HTTP-${V}/plus.gif