# -*- 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
PortGroup           gobject_introspection 1.0
PortGroup           yelp 1.0

name                gnome-panel
# update to version 3.28.0+ requires libsystemd
version             3.26.0
revision            4
set branch          [join [lrange [split ${version} .] 0 1] .]
maintainers         {devans @dbevans} openmaintainer
categories          gnome
license             GPL-2+ LGPL-2+
platforms           darwin
description         Panel component for the GNOME 2 Desktop.

long_description    ${description}

homepage            https://wiki.gnome.org/Projects/GnomePanel
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  9d46c59616d5c675fed6ee210418e05b5e9d4275 \
                    sha256  ada88f8c7c55ab5f8b1879efe9276c45abedf5db9c317c1a3616877f6ed76271 \
                    size    2966884

depends_build       port:pkgconfig \
                    port:itstool \
                    port:yelp-tools \
                    port:python27

depends_lib         port:desktop-file-utils \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:dconf \
                    port:gdm \
                    port:gnome-desktop \
                    port:gnome-menus \
                    port:policykit \
                    port:libgweather \
                    path:lib/pkgconfig/librsvg-2.0.pc:librsvg \
                    port:libwnck3 \
                    port:xorg-libX11 \
                    port:xorg-libXau \
                    port:xorg-libice \
                    port:xorg-libsm \
                    port:xorg-libXrandr

depends_run         port:adwaita-icon-theme \
                    port:nautilus

gobject_introspection yes

configure.python    ${prefix}/bin/python2.7

configure.args      --disable-silent-rules \
                    --enable-compile-warnings=no \
                    --disable-eds \
                    --disable-schemas-compile

variant eds description {Enable evolution data server support} {
    depends_lib-append      port:evolution-data-server
    configure.args-delete   --disable-eds
}

if {[variant_isset eds]} {
    universal_variant no
}

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}

livecheck.type      gnome
