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

name                etpan
set my_name         etpan-ng
version             0.7.1
revision            1
categories          mail
platforms           darwin
license             BSD
maintainers         nomaintainer
description         etPan is a console mail user agent based on libEtPan
long_description    ${description}

homepage            http://libetpan.sourceforge.net/etpan/
master_sites        sourceforge:libetpan
distname            ${my_name}-${version}

checksums           md5     c4ab9a5471d84be930809950bae9fd69 \
                    sha1    2261913d31bbe64efe64a24cc37740eaf21d1d89 \
                    rmd160  bbd196a2151f99032dbdfc0ebb652a50567792f8

depends_lib         path:bin/perl:perl5 \
                    port:libetpan

# the submake of libversit does not respect the variables we set in configure.env
universal_variant   no

build.args-append   CC="${configure.cc} [get_canonical_archflags cc]"

destroot.destdir    prefix=${destroot}${prefix}
post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} COPYRIGHT Changelog NEWS README TODO \
        doc/CONFIG doc/INTERNAL ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      none
