# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		metacity
version		2.26.0
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
platforms	darwin
homepage	http://www.gnome.org
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     eafb624e79fbcdab6da59acc222430b1 \
                sha1    70593f69148960a0248527c8ae8d442a3d251d08 \
                rmd160  26b75abb9b705f9fd7711dfbbff134e600dcfd56

depends_lib     port:gconf \
                port:startup-notification \
   	        port:gnome-themes \
                port:zenity

depends_build   port:gnome-doc-utils \
	        port:pkgconfig

use_bzip2 	yes

configure.args  --mandir=${prefix}/share/man \
                --x-includes=${prefix}/include \
                --x-libraries=${prefix}/lib \
                --disable-scrollkeeper

pre-fetch {
    if {![file exists $prefix/lib/libgdk-x11-2.0.dylib]} {
        ui_error "gtk2 must be installed with +x11 variant enabled."
        error "gtk2 must be installed with +x11 variant."
    }
}

post-activate {
	system "${prefix}/bin/scrollkeeper-update"
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
