PortSystem 1.0

name             trio
version          1.16
categories       devel
maintainers      {toby @tobypeterson}
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        rmd160 ce7aaa21611d5cc4c1d888d557bc0a13ad6b0e53 \
                 sha256 84d0e74f5b25f0b6c7d9b264ef41f98908e65a5056d4e75c5ef0e05d6a69fc0a

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-(\\d+(?:\\.\\d+)*).tar.gz
