# -*- 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            msort
version         8.53
categories      textproc
maintainers     nomaintainer
license         GPL-3
description     Program for sorting files in sophisticated ways
long_description \
                ${name} is a program for sorting files in sophisticated \
                ways. Records need not be single lines.

homepage        http://billposer.org/Software/msort.html
master_sites    http://www.billposer.org/Software/Downloads/
use_bzip2       yes

checksums       rmd160  5d806026f4020f8c66acbb2e2a5d9ed280141e35 \
                sha256  596793367839a2886863f3564086a74a8249651c968ad6bb74aace531e3b7120 \
                size    440307

depends_lib-append \
                port:gettext \
                port:libuninum \
                port:libutf8proc \
                port:tre

depends_run-append \
                port:iwidgets \
                port:tcl \
                port:tk

patchfiles-append \
                patch-CFLAGS.diff \
                patch-fix-includes.diff

configure.args-append \
                --mandir=${prefix}/share/man
configure.ldflags-append \
                -lintl

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc
    copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        CREDITS \
        ChangeLog \
        NEWS \
        README \
        TODO \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       http://billposer.org/Software/msort.html
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
