# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-mailbox-reader
version			1.0.4
revision		1
license			GPL-2+
platforms		darwin freebsd
supported_archs	noarch
maintainers		nomaintainer
description		python module for reading Unix mailboxes
long_description	small Python module which allows sequential message \
				reading from a Unix mailbox.

homepage		http://gradha.sdf-eu.org/program/mailbox_reader.en.html
master_sites	http://gradha.sdf-eu.org/program/mailbox_reader/
distname		mailbox_reader-${version}
checksums		md5 67d70b5da53314212a39b34731e05d3d

python.versions	24

if {${name} ne ${subport}} {
    patchfiles		patch-setup.py.diff
    post-patch {
        reinplace "s|__SUBPORT__|${subport}|" ${worksrcpath}/setup.py
    }
}
