# -*- 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
platforms darwin freebsd linux
maintainers {devans @dbevans} openmaintainer
description GTK+/GNOME API documentation generator
long_description GTK-Doc generates API documentation from comments added to C code. \
It is typically used to document the public API of GTK+ and GNOME \
libraries, but it can also be used to document application code.
homepage http://www.gtk.org/gtk-doc/
master_sites gnome:sources/${name}/${version}/
checksums rmd160 cbf70474d838612da096ec98af69d3cfffe3da78 \
sha256 911e29e302252c96128965ee1f4067d5431a88e00ad1023a8bc1d6b922af5715 \
# set 'pbranch' to the desired perl version to use
# currently 5.26 (#55208)
depends_build port:pkgconfig \
path:lib/pkgconfig/glib-2.0.pc:glib2
depends_lib port:libxml2 \
depends_test port:py36-mock
configure.perl ${prefix}/bin/perl${pbranch}
configure.python ${prefix}/bin/python3.6
configure.env-append XSLTPROC=${prefix}/bin/xsltproc
configure.args --with-xml-catalog=${prefix}/etc/xml/catalog \
--with-highlight=source-highlight \
reinplace "s|^#!.*|#!${configure.perl} -w|" \
${worksrcpath}/tools/docpercentages.pl