# $Id: Portfile 30254 2007-10-23 02:22:51Z jmpp@macports.org $

PortSystem 1.0

name			sunwait
version			20041208
categories		sysutils
platforms		darwin
maintainers		nomaintainer
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}
}
