# $Id: Portfile 100701 2012-12-21 00:50:54Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-yenc
version			0.2
revision		1
platforms		darwin
license			GPL-2
maintainers		nomaintainer
description		provides raw yEnc encoding/decoding with crc32 calculation
long_description	py-yenc provides (only) raw yEnc encoding/decoding \
				with builitin crc32 calculation.

homepage		http://www.golug.it/yenc.html
master_sites	http://www.golug.it/pub/yenc/
distname		yenc-${version}
checksums		md5 2f1162447da3a25feb321e6776bdbb0a

python.versions	24

if {$subport != $name} {
    patchfiles		patch-yenc.c.diff \
                    patch-yenc.h.diff \
                    patch-yenc_wrap.c.diff
    
    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} CHANGES COPYING README TODO \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/examples logo.gif logo.yenc \
            ydecode.py yencode.py \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
