A client-side HTTP library for GHC. Requirement for the upcoming update to
darcs-2.0.2.
This commit is contained in:
parent
fe55ca7696
commit
e739d31a08
65
net/hs-HTTP/Makefile
Normal file
65
net/hs-HTTP/Makefile
Normal file
@ -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 <kili@openbsd.org>
|
||||
|
||||
# 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 <bsd.port.mk>
|
5
net/hs-HTTP/distinfo
Normal file
5
net/hs-HTTP/distinfo
Normal file
@ -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
|
44
net/hs-HTTP/patches/patch-HTTP_cabal
Normal file
44
net/hs-HTTP/patches/patch-HTTP_cabal
Normal file
@ -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 <warrick.gray@hotmail.com>
|
||||
Maintainer: Bjorn Bringert <bjorn@bringert.net>
|
||||
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
|
2
net/hs-HTTP/pkg/DESCR
Normal file
2
net/hs-HTTP/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
This package contains updated versions of Warrick Gray's excellent
|
||||
Haskell HTTP and Browser modules.
|
57
net/hs-HTTP/pkg/PLIST
Normal file
57
net/hs-HTTP/pkg/PLIST
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user