# -*- 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            libyaml
set dname       yaml
version         0.2.5
maintainers     {toby @tobypeterson} openmaintainer
categories      devel
platforms       darwin
license         MIT

description     YAML parser and emitter library
long_description \
                LibYAML is a YAML parser and emitter library.

homepage        https://pyyaml.org/wiki/LibYAML
master_sites    https://pyyaml.org/download/libyaml

distname        ${dname}-${version}
worksrcdir      ${dname}-${version}

checksums       rmd160  cc175ed640046722fb7790de828002633407b6b9 \
                sha256  c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4 \
                size    609454

use_autoreconf  yes

test.run        yes
test.target     check

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex "${dname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
