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

PortSystem      1.0

name            desktop-file-utils
version         0.15
revision        1
maintainers     nomaintainer
categories      gnome
platforms       darwin
description     Command line utilities for working with desktop entries.

long_description \
    ${description}

homepage        http://www.freedesktop.org/wiki/Software/desktop-file-utils
master_sites    http://www.freedesktop.org/software/desktop-file-utils/releases/

checksums       md5     2fe8ebe222fc33cd4a959415495b7eed \
                sha1    10e9a3d2033fd676d7bb44ca7ba376f815ca0821 \
                rmd160  ab6fc0bc116d6ec338ef2699b96d57698d4a1d03

depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:popt

# emacs could probably be turned back on in a variant, depending on emacs
# from MacPorts, as for some this may otherwise fail (ticket #15922)
configure.env-append        EMACS="no"

post-activate {
    system "update-desktop-database -q ${prefix}/share/applications; true"
}

livecheck.type  regex
livecheck.url   "http://www.freedesktop.org/software/desktop-file-utils/releases/?C=M;O=D"
livecheck.regex {desktop-file-utils-([0-9\.]+)\.tar\.gz}
