# $Id: Portfile 30232 2007-10-22 23:05:56Z jmpp@macports.org $

PortSystem 1.0
name             insub
version          9.8
categories       irc
maintainers      nomaintainer
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        md5 0e5adddaf68e3ac4ef0bae166d254ffc

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
	}
}
