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

name			argh
version			0.2.3
categories		lang
license			GPL-2+
platforms		darwin
maintainers		nomaintainer
description		an interpreter for the GOTO languages Argh! and Aargh!
long_description	${description}

homepage		http://www.sha-bang.de/index.php?page=13_eso
master_sites	http://www.sha-bang.de/12_eso/
checksums           md5     ebc4e31c1e76cd433bbee734b95c967b \
                    sha1    ed4dec1a36d39c44084e3292e6d08226f31e2c3e \
                    rmd160  35cbc417dbe90054b6dc5cc83031bdd273a30ad7
extract.suffix	.tgz

use_configure		no

destroot	{
	xinstall -m 755 -W ${worksrcpath} argh aargh ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
	xinstall -m 644 -W ${worksrcpath} Argh-Spec.txt README COPYING \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/examples 2dec.agh beer.agh cat1.agh \
		cat2.agh cat2dec.agh cat3.agh hello.agh revert.agh revert2.agh \
		tenhello.agh tricky1.agh \
		${destroot}${prefix}/share/doc/${name}/examples
	xinstall -m 644 -W ${worksrcpath}/contrib fib.agh quine.agh rot13.agh \
		${destroot}${prefix}/share/doc/${name}/examples
	xinstall -m 755 -d ${destroot}${prefix}/share/vim/vim62/syntax
	xinstall -m 644 ${worksrcpath}/contrib/argh.vim \
		${destroot}${prefix}/share/vim/vim62/syntax
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name}-(\\d+.\\d+\\.\\d+)
