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

# No tags in repository. No source code release download available.
# https://github.com/ali-rantakari/asprint/issues/2
github.setup        ali-rantakari asprint 89398c852a26fca0fb8696b9bfc0c61a3caeb16e
version             0.5.0
revision            1
checksums           rmd160  914656c1c6da46468773c7f1d00230ddabdf3010 \
                    sha256  61ac7ac47c42aabd9ada171b80c10a49e2910ab851401a6f2d8b51e917d8623b \
                    size    14245

categories          sysutils
platforms           {darwin >= 9}
maintainers         perlhacker.org:sepp
license             Apache-2

description         prints out the contents of a compiled AppleScript file

long_description    ${name} is a command-line program that pretty-prints the \
                    contents of compiled AppleScript (.scpt) files using \
                    ANSI escape sequences.

homepage            http://hasseg.org/asprint/
github.tarball_from archive

patchfiles          patch-Makefile.diff \
                    patch-asprint.pod.diff

use_configure       no

variant universal {}

build.args          COMPILER="${configure.cc} [get_canonical_archflags cc]"
build.target-append ${name}.1

destroot {
    xinstall -m 755 -W ${worksrcpath} asprint ${destroot}${prefix}/bin
    xinstall -m 644 -W ${worksrcpath} asprint.1 ${destroot}${prefix}/share/man/man1
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath}/deployment-files readme.txt ${docdir}
}

livecheck.version   ${version}
livecheck.url       ${homepage}
livecheck.type      regex
livecheck.regex     ${name}-v(\[0-9.\]+)\\.
