# -*- 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 59057 2009-10-09 00:53:31Z devans@macports.org $

PortSystem 1.0

name            alacarte
version         0.12.1
epoch           1
set branch      [join [lrange [split ${version} .] 0 1] .]
description     A simple freedesktop.org compliant menu editor for use with GNOME

long_description \
                ${description}

maintainers     devans openmaintainer
categories      gnome
platforms       darwin
homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

use_bzip2       yes

checksums       md5     c6d77f7e5ee6129532e4bb1a35a07194 \
                sha1    7407dcb4cd000e0991b12c53113615771fc385a7 \
                rmd160  4fe59d1c6df2cdc8f22d901d9a3ce125bc9dc27d

patchfiles      patch-Makefile.in.diff \
                patch-alacarte.in.diff

depends_lib     port:py26-gtk \
                port:gnome-menus

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

post-destroot {
    file rename ${destroot}${prefix}/bin/alacarte.py ${destroot}${prefix}/bin/alacarte
}

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