# $Id: Portfile 46842 2009-02-15 01:08:42Z tommyd@macports.org $

PortSystem 1.0

name            distract
version         0.2.5
categories      devel
maintainers	    tommyd openmaintainer
platforms	    darwin
description	    A distributed bug tracking system based on monotone
long_description	\
        DisTract is a distributed bug tracking system. It uses \
        the Firefox browser as frontend for user interaction and \
        the monotone version control system as backend, which \
        provides data storage and network services.

homepage	    http://www.distract.wellquite.org/

distname        DisTract-${version}
master_sites    http://www.distract.wellquite.org/downloads/
checksums       md5 c806002ec1f73bf860bbb3164e2042dd

depends_build   port:ghc		\
                port:hs-chunks		\
                port:hs-hinstaller
depends_run     port:monotone

configure {
    system "cd ${worksrcpath}/haskell && runghc Setup.hs configure"
}

build {
    system "cd ${worksrcpath}/haskell && runghc Setup.hs build"
}

destroot {
    system "cd ${worksrcpath}/haskell && runghc Setup copy --copy-prefix=${destroot}${prefix}"
}

