# -*- 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 74826 2011-01-03 10:28:48Z nox@macports.org $

PortSystem      1.0

name            gtk2-murrine-configurator
version         1.4
revision        1
categories      x11 gtk
platforms       macosx
maintainers     nomaintainer
description     The definitive tool for the Murrine lovers

long_description \
    This is absolutely the first Configurator for a Gtk Engine. \
    New Murrine Configurator give users the opportunity to configure \
    all the Murrine Engine style options, like glaze style, roundness, \
    menu bar and items styles, and many other aspects to reach their \
    desired effects.

homepage        http://gnome-look.org/content/show.php/?content=53951
master_sites    macports
use_bzip2       yes

checksums       md5 d722bdaf9a047526dfc78d2c40ecb457 \
                sha1 3d85212ddbaf1d4953d545f0719ea05f5c8446c4 \
                rmd160 3b8298fc72f076f63286189fa2fe256c89e27002

patchfiles      patch-src-newmurrineconfigurator.py.diff

depends_run     port:python25 \
                port:py25-gtk \
                port:gtk2-murrine

configure {
    reinplace s|@PREFIX@|$prefix| \
        $worksrcpath/src/newmurrineconfigurator.py
}

build {}

destroot.cmd        ./install.sh
destroot.target
destroot.destdir    --prefix ${destroot}${prefix}

pre-destroot {
    xinstall -d \
        ${destroot}${prefix}/share/applications \
        ${destroot}${prefix}/share/pixmaps
}

post-destroot {
    system "cd ${destroot}${prefix}/bin && \
        ln -s ../share/nmc/newmurrineconfigurator.py murrine-configurator"
}

universal_variant   no

livecheck.type  regex
livecheck.regex {"contentdata">(\d+(?:\.\d+)*)</span>}
