# $Id: Portfile,v 1.9 2006/06/18 16:22:33 rhwood Exp $

PortSystem 1.0
name		gcalctool
version		5.8.16
revision	1
description	a GNOME 2 desktop calculator.
long_description        gcalctool is the desktop calculator that has been proposed \
			for GNOME. It has Basic, Financial and Scientific modes.
maintainers	gnome-darwinports@opendarwin.org
categories	gnome math
platforms	darwin 
homepage	http://calctool.sourceforge.net/
master_sites    gnome:sources/gcalctool/5.8/

checksums	md5 3c14ad97edd4e445b14ca99bb7c60e5b \
		sha1 f0b71fd4e9842b6c49dd842b26529ee7ed558fbb \
		rmd160 2daafee6bb398fb1fade5c8214b344cef5e9d11c

use_bzip2	yes

depends_lib \
	lib:libgnomeui-2:libgnomeui
depends_build \
	port:gnome-doc-utils

configure.args  --mandir=${prefix}/share/man \
		--disable-scrollkeeper
configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include -I/usr/X11R6/include -L/usr/X11R6/lib" 

post-destroot {
	system "rm -rf ${destroot}${prefix}/var/lib/scrollkeeper"
	system "rm -rf ${destroot}${prefix}/var/scrollkeeper"
}

post-install {
	system "scrollkeeper-update"
}
