# -*- 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 89377 2012-01-27 07:52:32Z dports@macports.org $

PortSystem      1.0

name            shared-mime-info
version         1.0
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  90822c930799694cdb9753d2d63fdcee72e2d535 \
                sha256  d2e830e5aae213dd906e64495e9618cc4ef40d7b249e0971a190b04d5802ae8f

depends_build   port:pkgconfig \
                port:intltool

# The perl executable should be the one explicitly required by intltool
configure.env-append  INTLTOOL_PERL=${prefix}/bin/perl5.12

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

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