# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
description XML parser written in Vala
long_description ${description}
homepage https://birdfont.org/${name}.php
master_sites https://birdfont.org/${name}-releases/
distname lib${name}-${version}
checksums rmd160 bbc05904d8612c4d3eebc4431ddcff62b982a8e8 \
sha256 e8b0d4984fc55865bbd60b67c8facfe1b3e7d0c8da7df665084772d230bef862 \
depends_build port:pkgconfig \
depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \
patchfiles fix-install-name.patch
reinplace "s|/usr/bin/python3|${prefix}/bin/python3.7|" \
configure.args --cc=${configure.cc} \
--cflags="${configure.cflags}" \
--ldflags="${configure.ldflags}"
destroot.cmd ./install.py --dest="${destroot}"
livecheck.url ${homepage}
livecheck.regex "lib${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"