# -*- 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 68210 2010-05-29 01:22:14Z jmr@macports.org $

PortSystem      1.0

name            gnome-mime-data
version         2.18.0
set branch      [join [lrange [split ${version} .] 0 1] .]
revision        3
maintainers     nomaintainer
categories      gnome
platforms       darwin
description     This module contains the base MIME and Application database for GNOME.

long_description \
    $description

homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums \
    md5 541858188f80090d12a33b5a7c34d42c \
    sha1 9ce7b1a24a97f275f60b416fae82d81c1010cb65 \
    rmd160 62436da673b9a9e1d27259511401ff69f0397a1a

depends_build   path:bin/perl:perl5 \
                port:p5-xml-parser \
                port:intltool
configure.env-append INTLTOOL_PERL=${prefix}/bin/perl

depends_lib     port:libiconv \
                port:gettext

configure.cppflags-append -L${prefix}/lib

if {[info exists supported_archs]} {
    supported_archs noarch
} else {
    universal_variant   no
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
