# -*- 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            libcroco
version         0.6.13
revision        1
license         LGPL-2
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      gnome
maintainers     nomaintainer
description     A CSS2 parsing and manipulation toolkit for GNOME

long_description \
    A generic Cascading Style Sheet (CSS) parsing and manipulation \
    toolkit for GNOME applications that need CSS support.

homepage        https://gitlab.gnome.org/Archive/libcroco
master_sites    gnome:sources/${name}/${branch}/
use_xz          yes

checksums       rmd160  057e2f30655f972aceb65fbab530964f95cb5182 \
                sha256  767ec234ae7aa684695b3a735548224888132e063f92db585759b422570621d4 \
                size    487840

depends_build   port:pkgconfig

depends_lib     port:gettext \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:libiconv \
                port:libxml2 \
                port:zlib

patchfiles      patch-CVE-2020-12825.diff

configure.args  --disable-Bsymbolic \
                --disable-silent-rules

test.run        yes
test.env        DYLD_LIBRARY_PATH=${worksrcpath}/src/.libs

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
        ${destroot}${docdir}
}

livecheck.type  gnome
