# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 61460 2009-12-11 22:16:58Z ryandesign@macports.org $

PortSystem          1.0

name                pxsl-tools
version             1.0
categories          textproc
maintainers         snc openmaintainer
description         A convenient shorthand for writing markup-heavy XML \
                    documents.
long_description    PXSL ("pixel") is a convenient shorthand for writing \
                    markup-heavy XML documents. It provides XML authors and \
                    programmers with a simple, concise syntax that they can \
                    use to create XML documents. For more advanced users, PXSL \
                    offers customizable shortcuts and sophisticated \
                    refactoring tools like functional macros that can markedly \
                    reduce the size and complexity of markup-dense XML \
                    documents.

platforms           darwin freebsd
use_parallel_build  yes
homepage            http://community.moertel.com/ss/space/PXSL
master_sites        http://community.moertel.com/pxsl/sources/

checksums           md5 f136de0a05aa26e605579ff48730be3c \
                    sha1 3afb794a7e6b7f1b356f63252a374206a7aa7cb8 \
                    rmd160 fd4727cbb6255f8b7c6da9005042ea75c3df4586

depends_build       port:ghc

configure {
    system "cd ${worksrcpath} && runhaskell Setup.lhs configure --prefix=${destroot}${prefix}"
}

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

destroot {
    system "cd ${worksrcpath} && runhaskell Setup.lhs install"
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}-(\\d+\\.\\d+(\\.\\d+)?)${extract.suffix}"
