# $Id: Portfile 66818 2010-04-23 04:05:08Z ryandesign@macports.org $

PortSystem          1.0

name                gf
version             3.1
categories          lang
maintainers         upc.edu:jordi.saludes
platforms           darwin
description         Grammatical Framework
long_description    GF, Grammatical Framework, is a programming language \
                    for multilingual grammar applications.
homepage            http://www.grammaticalframework.org/
master_sites        ${homepage}download/
extract.suffix      -src.tar.gz

checksums           md5     6691df5ffbc48ccc6983b07f9b7e766b \
                    sha1    14ae263c031cdc03af76885d3ed588dcb0a92820 \
                    rmd160  d9770a3ec8c9e963b8e8c58e38e23073e33390bc

depends_lib         port:ghc

universal_variant   no

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

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

destroot {
    system "cd ${worksrcpath} && runghc Setup copy --destdir=${destroot}"
}
