# $Id: Portfile,v 1.2 2004/12/30 16:42:48 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-discord
version			1.0
revision		1
categories		python
platforms		darwin
maintainers		mww@opendarwin.org
description		conversion from gregorian to discordian dates
long_description	python module which allows for conversion from  normal \
				dates (via time.time, time.localtime, etc.) to \
				discordian dates (a silly made-up dating system that \
				divides a year into five seasons of 73 days each).

homepage		http://www.alcyone.com/software/discord/
master_sites	${homepage}
distname		discord-${version}
checksums		md5 25070285b0299a135c65fff471133c52

post-extract	{
	file copy ${filespath}/setup.py ${worksrcpath}
	reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
}

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} doc/discord.py.html doc/index.html \
		README COPYING ${destroot}${prefix}/share/doc/${name} 
}
