# Depends on: docbook-xml docbook-xsl itstool libxslt python2-six

description="Useful for extracting specially formatted comments from the code to create API docs. "
url="http://www.gnome.org/"
packager="remy <remy@nutyx.org>"
contributors="Pierre B,tnut"

run=(python2-six)

name=gtk-doc
version=1.29

source=( http://ftp.gnome.org/pub/gnome/sources/$name/$version/$name-$version.tar.xz)

uptodate(){
local latest lastversion url
url="http://ftp.gnome.org/pub/gnome/sources/$name"
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 "-" -f4`"
echo "$lastversion"
}
