# -*- 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 85482 2011-10-14 02:12:31Z dports@macports.org $

PortSystem 1.0

name            libxklavier
version         5.0
set branch      [join [lrange [split ${version} .] 0 1] .]
description     libxklavier - utility library to make XKB stuff easier
long_description    ${description}
maintainers     nomaintainer
categories      gnome
license         LGPL-2+
platforms       darwin
homepage        http://www.freedesktop.org/Software/LibXklavier
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     134c7ea177ff901123b909de77394780 \
                sha1    e914adc00a7b1d39c5057aa415a5181856a697ae \
                rmd160  771dffe92efa1b992ea6ee78535c81d859a2b090

use_bzip2       yes

depends_build   port:pkgconfig
depends_lib     port:libxml2 \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:iso-codes \
                port:xorg-libXi \
                port:xorg-libxkbfile \
                port:xkbcomp

configure.args  --x-includes=${prefix}/include \
                --x-libraries=${prefix}/lib

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