# -*- 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 117789 2014-03-12 21:49:01Z devans@macports.org $

PortSystem      1.0

name            desktop-file-utils
version         0.22
maintainers     nomaintainer
categories      gnome
license         GPL-2+
installs_libs   no
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/

use_xz          yes

checksums       rmd160  b95fdd904ebd94e085df725cb1266c06c1a508ae \
                sha256  843532672692f98e9b2d6ae6cc8658da562dfde1606c7f33d9d227a344de56c5

depends_build   port:pkgconfig
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 "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
