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

github.setup        mlutfy gnome-turtle f8fd2ae
version             0.1.3
revision            1
categories          gnome math
license             GPL-2+
platforms           darwin
maintainers         nomaintainer

description         A turtle and lsys drawing program for GNOME.
long_description    ${description} \
                    It can generate fractals from an L-System definition.

checksums           rmd160  b3e8a5c7053768bae44e9bc5b9b267540ab9899d \
                    sha256  024695c3e37e6e4394453a76735cf4a1846a0ddad52bd0d78703f3686398e02d

depends_build       port:pkgconfig \
                    port:intltool \
                    port:gnome-common \
                    port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         port:libgnomeprintui \
                    port:libgnomeui

# bison/flex processing fails if a parallel build is used

use_parallel_build  no

patchfiles          patch-Makefile.am.diff

configure.cmd       sh my_autogen.sh

# this distribution provides no *.po files so no i18n is available

configure.args      --disable-nls \
                    --enable-compile-warnings=minimum

# install doc files, examples

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}/examples

    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING README TODO \
        ${destroot}${prefix}/share/doc/${name}

    xinstall -m 644 {*}[glob ${worksrcpath}/examples/*] \
        ${destroot}${prefix}/share/doc/${name}/examples
}

notes "
For example input files see ${prefix}/share/doc/${name}/examples.
"

livecheck.type      none