# $Id: Portfile 49335 2009-04-08 00:00:26Z blb@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-discord
version			1.0.1
categories		python
platforms		darwin
maintainers		nomaintainer
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     6d73d3b37e58a067b01437c849bb7cd7 \
				sha1    638da56b15963a83ed6ff4d2c3a84f193ff15216 \
				rmd160  192456dc4ec0c93a87a95fff5311180150117e3a

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} 
}
