# -*- 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 60554 2009-11-15 19:14:43Z jmr@macports.org $

PortSystem      1.0

name            py26-pygtksourceview
version         2.6.0
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      python x11
platforms       darwin
maintainers     nodamage.com:nodamage openmaintainer
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

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

configure.python    ${prefix}/bin/python2.6
set python_prefix   ${frameworks_dir}/Python.framework/Versions/2.6
configure.pre_args  --prefix=${python_prefix}
configure.args      --includedir=${python_prefix}/include/python2.6
configure.pkg_config_path  ${python_prefix}/lib/pkgconfig:${prefix}/lib/pkgconfig

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+)*)}
