# -*- 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

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       any
supported_archs noarch
license         GPL-2
installs_libs   no

description     This module contains the base MIME and Application database for GNOME.

long_description \
    {*}$description

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

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

depends_build   port:gettext \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gnome-common \
                port:intltool

license_noconflict  glib2

patchfiles      patch-automake-1.13.diff

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
post-patch {
    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
}
use_autoreconf  yes
autoreconf.cmd  ${prefix}/bin/gnome-autogen.sh
autoreconf.env  NOCONFIGURE=1
depends_build-append \
                port:autoconf \
                port:automake \
                port:libtool

livecheck.type  gnome
