# Depends on: gtksourceview2 python2-gtk 

description="For expand the functions text of GTK for include the highlighting of the syntax."
url="http://www.gnome.org/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

name=python2-gtksourceview2
version=2.10.1
release=2

source=(http://ftp.gnome.org/pub/gnome/sources/pygtksourceview/2.10/pygtksourceview-${version}.tar.bz2)

build() {
cd pygtksourceview-$version
PYTHON=python2 ./configure --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var --disable-static --disable-docs
make
make DESTDIR=$PKG install

# Obsolet lib
rm $PKG/usr/lib/python2.7/site-packages/gtksourceview2.la

}
uptodate(){
local latest lastversion url
url="http://ftp.gnome.org/pub/gnome/sources/pygtksourceview"
latest="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$url/?C=N\;O=D|grep [0-9]/$|head -1`"
lastversion="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$latest/?C=N\;O=D|grep LATEST|grep [0-9]$|cut -d "-" -f3`"
echo "$lastversion"
}
