# $Id: Portfile,v 1.7 2004/05/02 18:25:37 mww Exp $

PortSystem 1.0
name		thirdeye
version		1.72
categories	irc
maintainers	eric@opendarwin.org
description	Colorful and effective script for the epic irc client
long_description	Third Eye is a script for the EPIC IRC client (epic4-2000 or later). \
			It includes features such as flood protection, configurable ansi colors and themes, \
			netsplit/rejoin detection, automated login/verifications to eggdrop, \
			nick/chanserv, and undernet cserve bots. 

platforms	darwin
master_sites	http://te.E1F.net/arc/
distname	te${portversion}
use_bzip2	yes
checksums	md5 7a074605a868a9d46870a1861474852a
configure	{}
build		{}
depends_run	bin:epic:epic5

destroot	{ system "install -m 755 -d \
		    ${destroot}${prefix}/share/thirdeye/user"
		  system "cp ${workpath}/README.te ${destroot}${prefix}/share/thirdeye"
		  system "cp ${workpath}/te.irc ${destroot}${prefix}/share/thirdeye"
		  system "cp -Rp ${workpath}/.te/* \
		    ${destroot}${prefix}/share/thirdeye/user"
#		  system "chown -R root ${destroot}${prefix}/share/thirdeye"
		  system "chmod -R +r ${destroot}${prefix}/share/thirdeye/*"
		  system "install -m 755 -d ${destroot}${prefix}/bin"
		  system "install -m 555 -c \
		    ${portpath}/files/thirdeye.sh ${destroot}${prefix}/bin/thirdeye"
		  reinplace "s|__PREFIX|${prefix}|g" \
		    ${destroot}${prefix}/bin/thirdeye }

