# $Id: Portfile,v 1.1 2005/01/22 19:38:54 mww Exp $

PortSystem 1.0

name			imapcp
version			0.97
categories		mail
platforms		darwin
maintainers		mww@opendarwin.org
description		imapcp is a simple tool to copy mailbox accounts
long_description	imapcp is a simple tool to copy mailbox accounts. It was \
				used successfully to transfer mailboxes from a Washington \
				University IMAP server to a Courier IMAP server, and from an \
				OpenMail server to a WU IMAP server.

homepage		http://www.jplanglois.com/products/imapcp/
master_sites	${homepage}
extract.suffix	.tgz
checksums		md5 7d6b6e2129c08e9a737ff889e842ec78

depends_run		bin:python:python24

use_configure	no

build			{}

destroot {
	xinstall -m 755 ${worksrcpath}/mbcp.py ${destroot}${prefix}/bin/mbcp
	system "cd ${destroot}${prefix}/bin && ln -s mbcp imapcp"
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} readme.xml README LICENCE \
		${destroot}${prefix}/share/doc/${name}
}
