Update to darcs-2.0.2. This needs the net/hs-HTTP port I sent to
the list earlier.

I changed the default method for HTTP connections from libcurl to
hs-HTTP, because the Haskell bindings to libcurl used in darcs are
flawed (this problem has been discussed recently on some Haskell
mailinglists). For example, with darcs+libcurl, I was not able to
run ./darcs-all pull -av from a ghc working directory with all the
libraries ghc needs; it alwways bailed out at some point. With
hs-HTTP, ./darcs-all pull -av just worked.

Tests and comments are welcome, escpecially from people who are
actually using darcs. I'd also like to see the output of make regress
on amd64.

Ciao,
        Kili


Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/darcs/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile    21 Dec 2007 19:38:46 -0000      1.22
+++ Makefile    26 Aug 2008 20:59:34 -0000
@@ -2,18 +2,19 @@
 
 COMMENT=       advanced revision control system written in Haskell
 
-DISTNAME=      darcs-1.0.9
-PKGNAME=       ${DISTNAME}p1
+DISTNAME=      darcs-2.0.2
 
 CATEGORIES=    devel
 HOMEPAGE=      http://www.darcs.net/
 MASTER_SITES=  ${HOMEPAGE}
 MAINTAINER=    Matthias Kilian <[EMAIL PROTECTED]>
 
+WANTLIB=       c curses m pthread z
 MODULES=       lang/ghc
 MODGHC_RUNTIME=        No
-LIB_DEPENDS=   curl.>=2::net/curl \
-               gmp::devel/gmp
+LIB_DEPENDS=   gmp::devel/gmp
+RUN_DEPENDS=   ::net/hs-HTTP
+BUILD_DEPENDS= ${RUN_DEPENDS}
 
 CONFIGURE_STYLE=simple
 CONFIGURE_ARGS=        --prefix=${PREFIX} \
@@ -21,8 +22,8 @@ CONFIGURE_ARGS=       --prefix=${PREFIX} \
                --libexecdir=${PREFIX}/libexec/darcs \
                --mandir=${PREFIX}/man \
                --sysconfdir=${PREFIX}/share/darcs \
-               --disable-mmap \
-               --without-docs
+               --without-docs \
+               --without-libcurl
 CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
                LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" CFLAGS="" \
                GREP=/usr/bin/grep AWK=/usr/bin/awk
@@ -32,12 +33,12 @@ MAKE_FILE=  GNUmakefile
 INSTALL_TARGET=        install installserver installdocs
 MAKE_ENV+=     DARCS=${WRKSRC}/darcs
 REGRESS_TARGET=        check
+REGRESS_DEPENDS=::shells/bash
 
 # GPL
 PERMIT_PACKAGE_CDROM=  Yes
 PERMIT_PACKAGE_FTP=    Yes
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes
-WANTLIB=               c crypto curses idn m ssl z
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/darcs/distinfo,v
retrieving revision 1.15
diff -u -p -r1.15 distinfo
--- distinfo    21 Jun 2007 15:13:45 -0000      1.15
+++ distinfo    26 Aug 2008 20:59:34 -0000
@@ -1,5 +1,5 @@
-MD5 (darcs-1.0.9.tar.gz) = ByIs08UAqjHjMyhHVzpKsg==
-RMD160 (darcs-1.0.9.tar.gz) = RZyfhBWXmIja/uAh42jv7wamhaI=
-SHA1 (darcs-1.0.9.tar.gz) = 4IW3OwyC10ZfVHCcke8dFBR8Y+U=
-SHA256 (darcs-1.0.9.tar.gz) = pf5NWnQ9gFLWy/zqSApEWT+CGv2KQubW1K431A7SPNg=
-SIZE (darcs-1.0.9.tar.gz) = 1080280
+MD5 (darcs-2.0.2.tar.gz) = 8hawGdyfyDz5IPcVsdo3XA==
+RMD160 (darcs-2.0.2.tar.gz) = 5AG9KrZOLfTGVL3AM1XOIVoFMZU=
+SHA1 (darcs-2.0.2.tar.gz) = daGGuQasi7wRRMUSTCFeTFfAYiI=
+SHA256 (darcs-2.0.2.tar.gz) = FkyHu35B0egcRCNDKAS2NIYiaSkfpJXyXn9n8blb9J4=
+SIZE (darcs-2.0.2.tar.gz) = 1800653
Index: patches/patch-GNUmakefile
===================================================================
RCS file: /cvs/ports/devel/darcs/patches/patch-GNUmakefile,v
retrieving revision 1.10
diff -u -p -r1.10 patch-GNUmakefile
--- patches/patch-GNUmakefile   6 Jun 2007 19:52:17 -0000       1.10
+++ patches/patch-GNUmakefile   26 Aug 2008 20:59:34 -0000
@@ -1,15 +1,16 @@
 $OpenBSD: patch-GNUmakefile,v 1.10 2007/06/06 19:52:17 kili Exp $
 
-Don't try to build or install .ps docs, and don't regen the .html docs.
+Don't try to build or install .ps and .pdf docs, and don't regen
+the .html docs.
 
---- GNUmakefile.orig   Mon Jun  4 13:39:20 2007
-+++ GNUmakefile        Mon Jun  4 20:47:41 2007
-@@ -122,7 +122,7 @@ installbin:        all
+--- GNUmakefile.orig   Tue Jun 24 03:23:13 2008
++++ GNUmakefile        Tue Aug  5 20:21:54 2008
+@@ -182,7 +182,7 @@ installbin:        all
                $(INSTALL) -d $(DESTDIR)$(mandir)/man1
-       $(INSTALL_DATA) darcs.1 $(DESTDIR)$(mandir)/man1/
+       $(INSTALL_DATA) doc/darcs.1 $(DESTDIR)$(mandir)/man1/
  
--installdocs:  manual/darcs.ps manual/index.html
+-installdocs:  doc/manual/darcs.ps doc/manual/patch-theory.pdf 
doc/manual/index.html
 +installdocs:
-       test -d $(DESTDIR)$(datadir)/doc/darcs/manual || \
-               $(INSTALL) -d $(DESTDIR)$(datadir)/doc/darcs/manual
-       $(INSTALL_DATA) manual/* $(DESTDIR)$(datadir)/doc/darcs/manual
+       test -d $(DESTDIR)$(docdir)/manual || \
+               $(INSTALL) -d $(DESTDIR)$(docdir)/manual
+       $(INSTALL_DATA) doc/manual/* $(DESTDIR)$(docdir)/manual
Index: patches/patch-tests_missed_resolution_pl
===================================================================
RCS file: patches/patch-tests_missed_resolution_pl
diff -N patches/patch-tests_missed_resolution_pl
--- patches/patch-tests_missed_resolution_pl    6 Jun 2007 19:52:17 -0000       
1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
---- tests/missed_resolution.pl.orig    Mon Jun  4 13:39:21 2007
-+++ tests/missed_resolution.pl Tue Jun  5 14:56:20 2007
-@@ -46,8 +46,14 @@ darcs "pull --all ../tmp2";
- # we should have a marked conflict now.
- # we resolve it simply by removing conflict markers.
- 
--# I'm too lazy to translate this to Perl right now. 
--`grep -v '\(\^ \^\|\*\*\|v v\)' A > tmp`;
-+open(A, "A") || die;                                                          
                        
-+open(TMP, ">tmp") || die;                                                     
                        
-+while (<A>) {                                                                 
                        
-+       (/\^ \^|\*\*|v v/) or print TMP;                                       
                        
-+}                                                                             
                        
-+close(A);                                                                     
                        
-+close(TMP);                                                                   
                        
-+
- mv('tmp','A');
- 
- darcs "record -A x -m 'resolve' --all";
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/darcs/pkg/PLIST,v
retrieving revision 1.10
diff -u -p -r1.10 PLIST
--- pkg/PLIST   30 Jul 2006 21:02:32 -0000      1.10
+++ pkg/PLIST   26 Aug 2008 20:59:34 -0000
@@ -1,5 +1,5 @@
 @comment $OpenBSD: PLIST,v 1.10 2006/07/30 21:02:32 alek Exp $
-bin/darcs
[EMAIL PROTECTED] bin/darcs
 libexec/darcs/
 libexec/darcs/cgi-bin/
 libexec/darcs/cgi-bin/darcs.cgi
@@ -14,6 +14,7 @@ share/darcs/xslt/
 share/darcs/xslt/annotate.xslt
 share/darcs/xslt/browse.xslt
 share/darcs/xslt/common.xslt
+share/darcs/xslt/errors.xml
 share/darcs/xslt/errors.xslt
 share/darcs/xslt/patches.xslt
 share/darcs/xslt/repos.xslt
@@ -26,6 +27,7 @@ share/doc/darcs/examples/zsh_completion_
 share/doc/darcs/manual/
 share/doc/darcs/manual/WARNINGS
 share/doc/darcs/manual/contents.png
+share/doc/darcs/manual/crossref.png
 share/doc/darcs/manual/darcs.css
 share/doc/darcs/manual/darcs.html
 share/doc/darcs/manual/footnode.html
@@ -51,7 +53,18 @@ share/doc/darcs/manual/img22.png
 share/doc/darcs/manual/img23.png
 share/doc/darcs/manual/img24.png
 share/doc/darcs/manual/img25.png
+share/doc/darcs/manual/img26.png
+share/doc/darcs/manual/img27.png
+share/doc/darcs/manual/img28.png
+share/doc/darcs/manual/img29.png
 share/doc/darcs/manual/img3.png
+share/doc/darcs/manual/img30.png
+share/doc/darcs/manual/img31.png
+share/doc/darcs/manual/img32.png
+share/doc/darcs/manual/img33.png
+share/doc/darcs/manual/img34.png
+share/doc/darcs/manual/img35.png
+share/doc/darcs/manual/img36.png
 share/doc/darcs/manual/img4.png
 share/doc/darcs/manual/img5.png
 share/doc/darcs/manual/img6.png
@@ -74,6 +87,7 @@ share/doc/darcs/manual/node6.html
 share/doc/darcs/manual/node7.html
 share/doc/darcs/manual/node8.html
 share/doc/darcs/manual/node9.html
+share/doc/darcs/manual/nx_grp_g.png
 share/doc/darcs/manual/prev.png
 share/doc/darcs/manual/prev_g.png
 share/doc/darcs/manual/up.png

-- 
Our biggest mistake:
Using the scary term "monad" rather than "warm fuzzy thing"
                -- Simon Peyton Jones, POPL 2003

Reply via email to