# $Id: Portfile 108159 2013-07-15 02:38:01Z devans@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-chm
version			0.8.4
revision                1
categories		python textproc
platforms		darwin
maintainers		jameskyle
description		PyCHM is a set of Python bindings for Jed Wing's chmlib.
long_description	${description}

homepage		http://gnochm.sourceforge.net/pychm.html
master_sites	sourceforge:gnochm
distname		pychm-${version}
checksums		sha1 73104f4a351dc1450a16f07680d772817b05442d

python.versions	24 25 26 27

if {$subport != $name} {
    depends_lib-append	port:chmlib

    patchfiles          patch-no-inline.diff

    build.env	CFLAGS=-I${prefix}/include \
				LDFLAGS=-L${prefix}/lib

    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog NEWS README \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
