PortSystem 1.0

name                sendemail
version             1.56
categories          mail
maintainers         nomaintainer
license             GPL-2+
platforms           any
description         lightweight, completly command line based SMTP email agent
long_description    \
    sendemail is a lightweight, completly command line \
    based, SMTP email agent. If you have the need to send email \
    from a command prompt this tool is perfect. It was designed to \
    be used in bash scripts, Perl programs, and web sites, but it \
    is also quite useful in many other contexts.  sendemail is \
    written in Perl and is unique in that it requires no special modules.

homepage            http://caspian.dotconf.net/menu/Software/SendEmail/
master_sites        ${homepage}
distname            sendEmail-v${version}
checksums           md5     a8ee889b18356694546d3c1b2254e78c \
                    sha1    5c7c03ce60785c7b7695ec486c84d6e15704df38 \
                    rmd160  ab7a84635daca173a3e8c8c526e851682f925069

supported_archs     noarch

depends_run         port:perl5

configure {
    reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" ${worksrcpath}/sendEmail
}

build {}

destroot {
    xinstall -m 755 ${worksrcpath}/sendEmail ${destroot}${prefix}/bin/sendemail
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} CHANGELOG README TODO \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     sendEmail-v(\[0-9\\.\]+)\\.tar\\.gz
