PortSystem 1.0

name             insub
version          13.0
categories       irc
license          GPL-2+
maintainers      nomaintainer
supported_archs  noarch

description      extra cowsay cows and irssi script
long_description \
	Handy tools for being obnoxious on IRC. Warning: \
	some of the cows are potentially offensive.
homepage         http://gruntle.org/projects/irssi/insub/
platforms        darwin
master_sites     ${homepage}
use_bzip2        yes

checksums        sha1    4e8b492020f8cd5a8334fb1e52741557d51f33eb \
                 rmd160  426ca527fb38c932760d7cac8680f07a94e744fe

use_configure    no
build            {}

destroot {
	xinstall -d ${destroot}${prefix}/share/irssi/scripts
	xinstall -m 444 ${worksrcpath}/insub.pl \
		${destroot}${prefix}/share/irssi/scripts

	xinstall -d ${destroot}${prefix}/share/doc/insub
	xinstall -m 444 ${worksrcpath}/ChangeLog ${worksrcpath}/README \
		${destroot}${prefix}/share/doc/insub

	xinstall -d ${destroot}${prefix}/share/cowsay/cows
	foreach cow [glob -directory ${worksrcpath}/cows *.cow] {
		xinstall -m 444 ${cow} ${destroot}${prefix}/share/cowsay/cows
	}
}

livecheck.type   regex
livecheck.regex  ${name}-(\[0-9.\]+)${extract.suffix}