# -*- 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 119533 2014-04-29 16:31:59Z devans@macports.org $

PortSystem      1.0
PortGroup       active_variants 1.1

name            metacity
set git_name    ${name}
set git_commit  7539045e24ca31415a97981a504d1b83a138f865
set git_date    20131011
version         2.34.21-${git_date}
revision        1
set branch      [join [lrange [split ${version} .] 0 1] .]
description     A window manager for the adult in you.
long_description \
                ${description}
maintainers     devans openmaintainer
categories      gnome x11-wm
license         GPL-2+
platforms       darwin
homepage        https://wiki.gnome.org/Projects/Metacity
master_sites    https://git.gnome.org/browse/${git_name}/snapshot/

distname        ${git_name}-${git_commit}

checksums       rmd160  1ba87216507f034968c980e2b48f3d8851b8cdb8 \
                sha256  1c55fb6cb16f15f0b400c5083cb8b9caa2caefd141add7d574c265e36fd0dfee

depends_build   port:gnome-doc-utils \
                port:pkgconfig \
                port:autoconf \
                port:automake \
                port:libtool \
                port:gnome-common \
                port:intltool \
                port:itstool

depends_lib     port:desktop-file-utils \
                port:gtk2 \
                port:libcanberra \
                port:gsettings-desktop-schemas \
                port:startup-notification \
                port:xorg-libXcomposite \
                port:xorg-libXfixes \
                port:xrender \
                port:xorg-libXdamage \
                port:xorg-libXcursor \
                port:xorg-libXinerama \
                port:xorg-libXext \
                port:xorg-libxkbfile \
                port:xorg-libXrandr \
                port:xorg-libsm \
                port:xorg-libice \
                port:libgtop \
                port:zenity

depends_run     port:gnome-settings-daemon

require_active_variants gtk2 x11

configure.cmd   ./autogen.sh

configure.args  --x-includes=${prefix}/include \
                --x-libraries=${prefix}/lib \
                --enable-debug \
                --disable-silent-rules \
                --disable-schemas-compile \
                --disable-themes-documentation

post-activate {
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}

livecheck.type  none
