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

PortSystem 1.0

name		mdate
version		1.5.1
categories	sysutils
platforms	darwin freebsd
maintainers	nomaintainer
description	utility that converts Gregorian dates to Mayan Long Count dates
long_description	${description}

homepage	http://mdate.sourceforge.net/
master_sites	sourceforge
checksums		md5 a759efa3838a990f4e5332d45fa89cab

use_configure	no

platform darwin	{
	build.target	target=osx
}

platform freebsd	{
	build.target	target=freebsd
}

destroot	{
	xinstall -s -m 755 ${worksrcpath}/mdate ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/mdate.1 \
		${destroot}${prefix}/share/man/man1
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} API AUTHORS BUGS ChangeLog NEWS \
		README Translators mdate-1.html mdate-2.html mdate-3.html \
		mdate-4.html mdate.html ${destroot}${prefix}/share/doc/${name}
}
