# $Id: Portfile 56184 2009-08-25 06:11:10Z ryandesign@macports.org $

PortSystem 1.0
name		thirdeye
version		1.72
categories	irc
maintainers	nomaintainer
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${version}
use_bzip2	yes
checksums	md5 7a074605a868a9d46870a1861474852a
use_configure	no
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 }

