# -*- 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 63531 2010-02-07 17:32:09Z rmsfisher@macports.org $

PortSystem      1.0

name            shared-mime-info
version         0.71
maintainers     nomaintainer
categories      devel
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_bzip2       yes

checksums           md5     0a90508234d415f761a79fbffdff74f4 \
                    sha1    6f3d3379662857646b0c5b95d5d26e47c0b6250a \
                    rmd160  4b228ce926c60e11afacc8804772f423d9b73158

depends_build   port:pkgconfig \
                port:p5-xml-parser \
                port:intltool

configure.env-append  INTLTOOL_PERL=${prefix}/bin/perl

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

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