# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 86986 2011-11-07 20:44:23Z dports@macports.org $

PortSystem 1.0

name			pemail
version			1.2
revision        1
categories		mail
license			GPL-2+  
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		port:perl5.12
depends_run		port:p5.12-mail-pop3client \
				port:p5.12-mime-lite \
				port:p5.12-term-readkey

configure	{
	reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.12|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}
}
