# -*- 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 120337 2014-05-23 18:18:53Z devans@macports.org $

PortSystem      1.0

name            gnome-themes-standard
conflicts       gnome-themes
version         3.12.0
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      gnome
maintainers     devans openmaintainer
license         LGPL-2.1+ GPL-2+
platforms       darwin
description     Default GNOME 3 theme

long_description \
                gnome-themes-standard contains various components of the \
                default GNOME 3 themes for GTK+ 2 and GTK+ 3 applications \
                (Adwaita, HighContrast, LowContrast).

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

use_xz          yes

checksums       rmd160  261021d7df4dc1745db9ded24e709362cb3a81ae \
                sha256  a05d1b7ca872b944a69d0c0cc2369408ece32ff4355e37f8594a1b70d13c3217

depends_build   port:intltool \
                port:pkgconfig

depends_lib     port:gtk3 \
                port:gtk2 \
                port:librsvg

# update m4/intltool.m4 and autoreconf

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

use_autoreconf  yes
autoreconf.args -fvi

configure.args  --disable-silent-rules

notes "
You can make Adwaita the default theme with:
------------------------------------------------------
mkdir -p ~/.config/gtk-3.0 &&
cat > ~/.config/gtk-3.0/settings.ini << \"EOF\"
\[Settings\]
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome
EOF
------------------------------------------------------
"

livecheck.type  gnome
