# -*- 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 85721 2011-10-16 03:56:38Z dports@macports.org $

PortSystem      1.0

name            py25-pygtksourceview
version         2.6.0
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      python x11
platforms       darwin
license         LGPL
maintainers     nomaintainer
description     Python bindings for GtkSourceView2
long_description ${description}

homepage        http://www.gnome.org/
master_sites    gnome:sources/pygtksourceview/${branch}/
distname        pygtksourceview-${version}

checksums       md5     069633ab8724ec5cfeaadace6e7f1317 \
                sha1    0de3af1e0dfc2871c1065ee389c1e5253c504135 \
                rmd160  f55634b12143175b4684f63e41f95d8853fd0992

depends_build   port:pkgconfig \
                port:libxslt \
                port:docbook-xsl

depends_lib     port:py25-gobject \
                port:py25-gtk \
                port:gtksourceview2

configure.python    ${prefix}/bin/python2.5

platform darwin 9 {
    post-patch {
        reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/Makefile.in
    }
}

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