# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name                libgnomekbd
version             2.26.0
set branch          [join [lrange [split ${version} .] 0 1] .]
description         Libgnomekbd is something new.
long_description    Libgnomekbd is something new.
maintainers         devans openmaintainer
categories          gnome
platforms           darwin
homepage            http://www.gnome.org/

master_sites        gnome:sources/${name}/${branch}/

checksums           md5     aee58c088c4fd980e1bf813ea813c156 \
                    sha1    0b7543df516271e16198135323471b2107dca0ec \
                    rmd160  0a4b5d133efc8b08482d1dc27cdf2ca56655fd48

depends_lib         port:libxklavier \
                    port:libgnomeui

use_bzip2           yes

post-patch {
    reinplace "s|test capplet|capplet|" ${worksrcpath}/Makefile.in
}

configure.args      --mandir=${prefix}/share/man

variant no_x11 {
        configure.args-append --without-x
}

if {![variant_isset no_x11]} {
        configure.args-append --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+)*)}

