# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 118642 2014-04-06 17:59:47Z devans@macports.org $

PortSystem          1.0

name                gnome-icon-theme
version             3.12.0
set branch          [join [lrange [split ${version} .] 0 1] .]
maintainers         nomaintainer
categories          gnome
platforms           darwin
license             LGPL-3
description         A collection of icons for the GNOME 3 desktop.

long_description    gnome-icon-theme is a collection of icons and \
                    emblems for the GNOME 3 desktop.

homepage            http://www.gnome.org/
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  90cde65cc4459f9fdc2b9ab480951c78465a2582 \
                    sha256  359e720b9202d3aba8d477752c4cd11eced368182281d51ffd64c8572b4e503a

depends_build       port:intltool \
                    port:pkgconfig \
                    port:icon-naming-utils \
                    port:gtk3
    
supported_archs     noarch

# update m4/intltool.m4 and autoreconf

post-patch {
    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
}

use_autoreconf      yes
autoreconf.args     -fi

configure.env-append \
                    GTK_UPDATE_ICON_CACHE=${prefix}/bin/gtk-update-icon-cache-3.0

configure.args      --enable-icon-mapping

livecheck.type      gnome
