# -*- 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 120106 2014-05-15 16:34:46Z devans@macports.org $

PortSystem      1.0

name            shared-mime-info
version         1.3
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  b7a1b278a9db6d1fa895c7a5ed61a683823ab610 \
                sha256  4fd49c8c7ca9ecb10c59845094a18dbb73b69c72b4bad3db5e864f2111cb323a

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+)*)
