# -*- 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

PortSystem          1.0
PortGroup           gobject_introspection 1.0

name                uhttpmock
version             0.5.3
revision            1
description         A HTTP web service mocking library for GNOME.

long_description    ${description}

maintainers         {devans @dbevans} openmaintainer
categories          gnome net
license             LGPL-2.1+
homepage            https://gitlab.com/groups/${name}
master_sites        http://tecnocode.co.uk/downloads/${name}/

use_xz              yes

checksums           rmd160  310f93b4115e95617e5e4d86715c67da25e104a2 \
                    sha256  90843223c3a30bdb7f1eb3442373a03fee425af85a9df289cd687698ccff112f \
                    size    318708

depends_build       port:pkgconfig \
                    path:bin/vala:vala

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:libsoup-2.4

gobject_introspection yes

configure.args      --enable-vala \
                    --enable-compile-warnings=minimum \
                    --disable-silent-rules

test.run            yes
test.target         check

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