# -*- 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                vstr
version             1.0.15
categories          devel
license             LGPL-2.1+
maintainers         nomaintainer
description         Vstr string library
long_description    Vstr is a safe and fast string library for C.
homepage            http://www.and.org/vstr/
platforms           darwin
master_sites        ${homepage}${version}/ \
                    ftp://ftp.and.org/pub/james/vstr/${version}/

use_bzip2           yes
use_parallel_build  yes

checksums           md5 578061d198bfe2d30b28b75ef8d92ceb \
                    sha1 4d2c19cb83f30239b3800abc5c9eda4f24dd0b78 \
                    rmd160 4b10b3b62a86e9c910f3e45439b9cb862e6f8eba

# ld: duplicate symbol _vstr_ref_del in .libs/fix.o and .libs/assert_loop.o
configure.cflags-append -std=gnu89

configure.args      --mandir=${prefix}/share/man

livecheck.type      regex
livecheck.url       ${homepage}latest/
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
