# $Id: Portfile 61233 2009-12-06 05:57:23Z ryandesign@macports.org $

PortSystem 1.0

name			msort
version			8.52
categories		textproc
platforms		darwin
maintainers		nomaintainer
license			GPLv3
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/
checksums		md5     b5f07461b8f587df67494da0fe83e383 \
			sha1    9ca7b85920cbc3af186a1899345183b0bdf4a39f \
			rmd160  272c49af9f761de4584ff1c512d6a6597d69617d
use_bzip2		yes

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

patchfiles		patch-tre-0.8.diff \
			patch-CFLAGS.diff

use_autoreconf		yes

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}
}
