# -*- 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		gnumeric
version		1.8.4
set branch      [join [lrange [split ${version} .] 0 1] .]
description	A spreadsheet with gnome support.
long_description	${description}
maintainers	nomaintainer
categories	gnome math
platforms	darwin
homepage	http://projects.gnome.org/gnumeric/

master_sites    gnome:sources/${name}/${branch}/
use_bzip2	yes
checksums       md5     338f0084f04a16f78797ad01f85d3251 \
                sha1    2d765b0d06509e0695c4d3ec96b94f8acba88735 \
                rmd160  461ea59b2ce30d2ce7dd5bca2cea2c50b955dc57
depends_lib	port:libgsf \
                port:goffice \
                port:libbonoboui \
                port:libgnomeprintui \
                port:libgnomeui \
                port:py25-gtk
depends_build	port:gnome-doc-utils

patchfiles      patch-plugins-python-loader-gnm-python.c \
                patch-plugins-python-loader-py-gnumeric.c

configure.args  --disable-scrollkeeper
configure.python ${prefix}/bin/python2.5

post-activate {
	system "${prefix}/bin/scrollkeeper-update"
}

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

