# $Id$

PortSystem              1.0

name                    boo
version                 0.9.1.3287
categories              lang mono
platforms               darwin
license                 BSD
maintainers             nomaintainer
homepage                http://boo.codehaus.org/
master_sites            http://dist.codehaus.org/boo/distributions/
distname                ${distname}-src
use_zip                 yes

description             object oriented statically typed programming language \
                        for CLI

long_description        Boo is a new object oriented statically typed \
                        programming language for the Common Language \
                        Infrastructure with a Python-inspired syntax and a \
                        special focus on language and compiler extensibility.

checksums               md5     7fed4903a6015777fa4a589f0d0ea397 \
                        sha1    9c42253abd374f63b06685ce99ae7632678b1a80 \
                        rmd160  535ca6caeccac2a9b71cc9d9dc5aa101e56bc003

depends_lib             port:mono
depends_build           port:nant port:pkgconfig

extract.mkdir           yes

patchfiles              patch-default.build.diff

use_configure           no

build.cmd               ${prefix}/bin/nant
build.target

test.run                yes
test.cmd                ${build.cmd} compile-tests && nunit-console tests/build/*Tests.dll

destroot.cmd            ${build.cmd}
destroot.destdir        -D:install.prefix=${prefix} -D:install.destdir=${destroot}
post-destroot {
    file delete -force ${destroot}/tmp
    reinplace "s|/usr/local|${prefix}|g" \
        ${destroot}${prefix}/bin/booc \
        ${destroot}${prefix}/bin/booi \
        ${destroot}${prefix}/bin/booish
}

livecheck.type          regex
livecheck.url           [lindex ${master_sites} 0]?C=M&O=D
livecheck.regex         ${name}-(\[0-9.\]+)\\.tar