# -*- 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

PortSystem          1.0
PortGroup           github 1.0

# Please keep commit-based set-up until next release
github.setup        adrian-thurston colm d00ef7930a9d42469c19a5880744a086065ee20c
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
epoch               1
version             0.14.7
revision            1
categories          lang devel
license             MIT

maintainers         nomaintainer

description         Programming language for analysis and transformation.

long_description    Colm is a programming language designed for the analysis \
                    and transformation of computer languages. Colm is \
                    influenced primarily by TXL. It is in the family of \
                    program transformation languages.

homepage            http://www.colm.net/open-source/colm/

checksums           rmd160  8d98e88613557d0064eb19271c34715becaa1bdb \
                    sha256  7916fe38ef3d2fb8c280663bff7852dccfd0e197ff5f73951305fe05b1c2a797 \
                    size    1764023

use_autoconf        yes
autoconf.cmd        ./autogen.sh

depends_build-append \
                    port:autoconf \
                    port:automake \
                    port:libtool \
                    port:pkgconfig

platform darwin 10 powerpc {
    # Rosetta gets it wrong otherwise
    configure.args-append \
                    --build=powerpc-apple-darwin${os.major}
}

post-destroot {
    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} README.md \
        ${destroot}${prefix}/share/doc/${name}
}
