# $Id: Portfile 53594 2009-07-09 14:02:46Z gwright@macports.org $

PortSystem 1.0
name		darcs
version		2.2.1
categories	devel haskell
maintainers	gwright
platforms	darwin
description	A distributed, interactive, smart revision control system
long_description	\
                David's Advanced Revision Control System is yet         \
                another replacement for CVS. It is written in Haskell,  \
                and has been tested on Linux and Mac OS X. Darcs        \
                includes a cgi script, which can be used to view the    \
                contents of your repository.

homepage	http://darcs.net
master_sites	http://hackage.haskell.org/packages/archive/${name}/${version}

checksums	md5     99d79036c031185c9e2d48eb7d195ea7		\
		sha1    9bf214898f895c72e5a9ba36b5d6f7e7ceb5d6dc 	\
		rmd160  c26d27fa40efee05436b7f6c5ff7495175bb8f65

depends_build	port:ghc
depends_lib	port:curl	\
		port:ncurses	\
		port:gmp

configure       {
                  system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix}"
                }

build           {
                  system "cd ${worksrcpath} && runhaskell Setup build"
                }

destroot        {
                  system "cd ${worksrcpath} && runhaskell Setup copy --copy-prefix=${destroot}${prefix}"
                }

livecheck.check regex
livecheck.regex "version (.+) released"
