# -*- 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                ripmime
version             1.4.0.10
categories          mail
platforms           darwin
license             BSD
maintainers         nomaintainer

description         ripmime is for extracting attached files out of a MIME package

long_description    ${description}

homepage            http://www.pldaniels.com/ripmime/
master_sites        ${homepage}

checksums           rmd160  312f6ca37e73a5a024dd8cf07e6b969b6d7a952d \
                    sha256  896115488a7b7cad3b80f2718695b0c7b7c89fc0d456b09125c37f5a5734406a

depends_lib         port:libiconv

patchfiles          patch-no-Werror.diff

use_configure       no

variant universal {}

build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
                    LIBS="${configure.ldflags} -liconv"

destroot {
    xinstall -s -m 755 ${worksrcpath}/ripmime ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/ripmime.1 ${destroot}${prefix}/share/man/man1
}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
