# -*- 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
# $Id: Portfile 118882 2014-04-13 23:18:01Z devans@macports.org $

PortSystem      1.0

name            yelp-xsl
version         3.12.0
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 openmaintainer
categories      gnome
platforms       darwin
homepage        https://wiki.gnome.org/Apps/Yelp
master_sites    gnome:sources/${name}/${branch}/

use_xz          yes

checksums       rmd160  ab9a15d37ee31f25547943ee9d7a92193c528ff6 \
                sha256  dd0b8af338b1cdae50444273d7c761e3f511224421487311103edc95a4493656

depends_build   port:pkgconfig \
                port:intltool \
                port:itstool

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

# update m4/intltool.m4 and autoreconf

pre-configure {
    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
}

use_autoreconf      yes
autoreconf.args     -fvi

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

livecheck.type  gnome
