# -*- 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                yelp-xsl
version             3.34.2
license             GPL-2 LGPL-2.1
set branch          [join [lrange [split ${version} .] 0 1] .]
description         A collection of XSLT and other data files required by Yelp.
long_description    yelp-xsl contains various XSLT files for transforming DocBook, Mallard, \
                    and other formats as required by Yelp.
maintainers         {devans @dbevans} openmaintainer
categories          gnome
platforms           darwin
homepage            https://wiki.gnome.org/Apps/Yelp
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  dc48198a9e1820d674fdb414a480e94c964ebda0 \
                    sha256  0c3fe6146113df26fb1295901b1c7baed9f0fe67a87f4345e11543aefe7cb7ad \
                    size    640968

depends_build       port:pkgconfig \
                    port:intltool \
                    port:itstool \
                    port:autoconf \
                    port:automake

depends_lib         port:gtk3 \
                    port:libxslt \
                    port:libxml2

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

post-patch {
    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}

configure.cmd       ./autogen.sh

post-activate   {
    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
}

livecheck.type      gnome