# $Id: Portfile 59830 2009-10-23 15:40:04Z avsm@macports.org $

PortSystem 1.0

name			pemail
version			1.2
categories		mail
platforms		darwin
maintainers		nomaintainer
description		pop3 email client for the command line
long_description	pemail allows you to view POP3 email from the command \
				line, with a fairly intuitive interface, much like the UNIX \
				mail(1) command does.  pemail also allows you to send email \
				from the same interface, making it pretty much an all in one \
				mail client for the UNIX command line.

homepage		http://pemail.sourceforge.net
master_sites		sourceforge
checksums		md5 4fbd8f9e8a3912c3b86bbe4a69ed29cd

depends_lib		path:bin/perl:perl5
depends_run		port:p5-mail-pop3client \
				port:p5-mime-lite \
				port:p5-term-readkey

configure	{
	reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" ${worksrcpath}/pemail.pl
}

build			{}

destroot	{
	xinstall -m 755 ${worksrcpath}/pemail.pl ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} BUGS FIXED INSTALL LICENSE README TODO \
		${destroot}${prefix}/share/doc/${name}
}
