# $Id: Portfile 56061 2009-08-24 00:33:19Z ryandesign@macports.org $

PortSystem 1.0
PortGroup	python24 1.0

name		py-archmage
version		0.0.8
categories	python textproc
platforms	darwin
description	Extensible reader/decompiler of files in CHM format
long_description	\
		ArCHMage is the extensible reader/decompiler of files \
		in CHM format (Microsoft HTML help, also known as \
		Compiled HTML). ArCHMage is based on chmlib by Jed \
		Wing and is written in Python.
maintainers	gmail.com:guido.soranzio
homepage	http://archmage.sourceforge.net/
master_sites	sourceforge:archmage
distname	archmage-${version}
checksums	md5 42b13b37de8acfeaaca7ed08002ea254
depends_lib     port:py-chm
post-extract	{
	reinplace "s|/usr/share|${prefix}/share|" ${worksrcpath}/arch.conf
	reinplace "s|/etc|${prefix}/etc|" ${worksrcpath}/archmod/CHM.py
	reinplace "s|/etc|etc|" ${worksrcpath}/setup.py
}
