# -*- 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

PortSystem          1.0
PortGroup           perl5 1.0

name                pemail
version             1.2
revision            7
categories          mail
license             GPL-2+
supported_archs     noarch
platforms           any
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           rmd160  c306823b850bafdbbba3513c3c986835d479a0bf \
                    sha256  da06564bf93e5ee497d5fd221d90c639a5f2d6aaec8c55742e0258de50a77c05 \
                    size    11675

perl5.branches      5.34

depends_lib         port:perl${perl5.major}
depends_run         port:p${perl5.major}-mail-pop3client \
                    port:p${perl5.major}-mime-lite \
                    port:p${perl5.major}-term-readkey

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