# $Id: Portfile 73908 2010-11-29 03:31:29Z toby@macports.org $

PortSystem 1.0

name             trio
version          1.14
categories       devel
maintainers      toby
description      trio is a set of printf and string functions
long_description \
	Trio is a fully matured and stable set of printf and \
	string functions designed be used by applications with \
	focus on portability or with the need for additional \
	features that are not supported by standard stdio \
	implementation.
homepage         http://daniel.haxx.se/projects/trio/
platforms        darwin
license          MIT
master_sites     sourceforge:ctrio
checksums        md5    0278513e365675ca62bacb6f257b5045 \
                 sha1   7e07039c8dd84c530c0eaf2c78c220cc952736f1 \
                 rmd160 67fa8a7d002189a369a154315267b4fe4800c1bf

patchfiles       patch-Makefile.in

post-configure {
	reinplace "s|__VERSION__|${version}|" ${worksrcpath}/Makefile
	reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/Makefile
}

test.run         yes
test.target      test

livecheck.regex  trio (\[^ \]+) released
livecheck.name   ctrio
