# $Id: Portfile 93010 2012-05-14 02:11:05Z ryandesign@macports.org $

PortSystem 1.0

name			msort
version             8.53
categories		textproc
platforms		darwin
maintainers		nomaintainer
license			GPL-3
description		program for sorting files in sophisticated ways
long_description	Msort 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

depends_lib		port:tre port:gettext port:libuninum port:libutf8proc
depends_run		port:tcl port:tk port:iwidgets

patchfiles		patch-CFLAGS.diff

configure.args	--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}
}
