# -*- 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            gtk-nodoka-engine
version         0.7.5
revision        4
license         GPL-2+
description     Nodoka GTK2 Theme Engine
long_description \
                A theme that is nice, not attracting too much attention to itself, \
                rather calms than enrages, and that is focused on usability as well

maintainers     nomaintainer
categories      x11 gnome
platforms       darwin
homepage        http://fedoraproject.org/wiki/Artwork/NodokaTheme

master_sites    https://fedorahosted.org/releases/n/o/nodoka/

checksums       md5     22227adf29231ba2b87202ac3522e70f \
                sha1    edf9baacc22bfade02b01d45e80237e890f023e3 \
                rmd160  ea837815c87a4a3a5c6e8476e31a5901733a720b

depends_build   path:libexec/coreutils/libstdbuf.so:coreutils port:pkgconfig
depends_lib     path:lib/pkgconfig/gtk+-2.0.pc:gtk2

patchfiles      patch-glib-2.32.diff

post-patch {
    reinplace "s|/usr/bin/install|${prefix}/bin/ginstall|g" \
        ${worksrcpath}/src/Makefile.in
}

configure.args  --enable-animation

post-destroot {
    xinstall -m 644 ${worksrcpath}/README \
        ${destroot}${prefix}/share/themes/Nodoka
}

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