# $Id: Portfile,v 1.1 2004/12/09 14:52:08 mww Exp $

PortSystem 1.0

name			sunwait
version			20041208
categories		sysutils
platforms		darwin
maintainers		mww@opendarwin.org
description		calculates sunrise, sunset, twilight
long_description	Sunwait is a small program for calculating sunrise, \
				sunset, civil twilight, nautical twilight, and astronomical \
				twilight. It has options to wait until some time-offset from \
				one of these events, making it useful for home automation \
				tasks that should happen relative to the sun's position.

homepage		http://www.risacher.org/sunwait/
master_sites	${homepage}
checksums		md5 957dbcb6d16cb8f3b1ead0687397b495

use_configure	no

build.target	sunwait

destroot	{
	xinstall -m 755 ${worksrcpath}/sunwait ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/COPYING \
		${destroot}${prefix}/share/doc/${name}
}
