# $Id: Portfile,v 1.1 2004/07/21 08:53:25 mww Exp $

PortSystem 1.0

name			argh
version			0.2.1
categories		lang
platforms		darwin
maintainers		mww@opendarwin.org
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/content/13_eso/
checksums		md5 00e69cd2de10ffbec1d4b581f2f43f2f
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
}
