# $Id: Portfile 62618 2010-01-12 08:34:24Z mww@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name			getmail
version			4.16.0
categories		mail python
platforms		darwin
maintainers		mww
description		extensible mail retrieval system with POP3, IMAP4, SSL support
long_description	getmail version 4 is a flexible, extensible mail retrieval \
					system with support for POP3, IMAP4, SSL variants of both, \
					maildirs, mboxrd files, external MDAs, arbitrary message \
					filtering, single-user and domain-mailboxes, and many \
					other useful features.

homepage		http://pyropus.ca/software/getmail/
master_sites	${homepage}/old-versions/
checksums           md5     07d81a4b20be1304bb74af25803db914 \
                    sha1    372513e8d1664d832d9e350918a841f26ca46685 \
                    rmd160  9cf6f408d50597a5935ed27c9d1de872a673e452
dist_subdir		${name}
patchfiles		patch-setup.py.diff

post-destroot {
	foreach binfile [glob -tails -directory ${destroot}${python.prefix}/bin *] {
		ln -s ${python.prefix}/bin/${binfile} \
			${destroot}${prefix}/bin/${binfile}
	}
	foreach manfile [glob -tails -directory ${destroot}${python.prefix}/share/man/man1 *] {
		ln -s ${python.prefix}/share/man/man1/${manfile} \
			${destroot}${prefix}/share/man/man1/${manfile}
	}
	delete ${destroot}${prefix}/share/doc/${name}
	move ${destroot}${python.prefix}/share/doc/${name} \
		${destroot}${prefix}/share/doc
}

