# -*- 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 107653 2013-07-03 22:36:39Z jeremyhu@macports.org $

PortSystem      1.0

name            shared-mime-info
version         1.1
maintainers     nomaintainer
categories      devel
license         GPL-2+
platforms       darwin
description     Database of common types.

long_description \
    The core database of common types and the \
    update-mime-database command used to extend it.

homepage        http://freedesktop.org/wiki/Software/shared-mime-info
master_sites    http://people.freedesktop.org/~hadess/
use_xz          yes

checksums       rmd160  8d0c916690b43e5de99f7a3abc12e579833ab61c \
                sha256  184d094b157a9ec2607ad26a1a1837e6e07f3fcbeb38d8b6d412906156f9e06c

depends_build   port:pkgconfig \
                port:intltool

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

# Don't do intltool's INTLTOOL_PERL dance
use_autoreconf  yes
autoreconf.args -fvi

use_parallel_build no

configure.args  --disable-update-mimedb

post-activate {
    ui_debug "Updating MIME database..."
    system "${prefix}/bin/update-mime-database -V ${prefix}/share/mime"
}

livecheck.type  regex
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
