# $Id: Portfile 69792 2010-07-16 18:40:58Z blb@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name			getmail
version			4.20.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     33a090d62b6039e0a8df4c3da545d851 \
				sha1    999e8987ff8321291eca507549ce5e8ce0e65030 \
				rmd160  bdf20ee8e30f3b1a1f087627e86003befa995fee
dist_subdir		${name}
patchfiles		patch-setup.py.diff

python.link_binaries_suffix

post-destroot {
	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
}

