# $Id: Portfile 45603 2009-01-18 20:52:41Z jeremyhu@macports.org $

PortSystem			1.0
name				oleo
version				1.99.16
revision			2
categories			math
maintainers			nomaintainer
description			Lightweight spreadsheet program
long_description \
	GNU Oleo is a spreadsheet program with the following features: \
	Works on character terminals and under X \
	Macro language (still a bit untidy in places, but it works) \
	Charts generated from spreadsheet data (interface is not yet stable, \
		but the capability is in there) \
	Sizeable library of expressions (doesn't currently include statistical \
		regressions) \
	File format conversions (support of this is still pretty primitive\; \
		don't plan on importing E*cel files anytime soon)

platforms			darwin

homepage			http://www.gnu.org/software/oleo/oleo.html
master_sites		gnu

checksums			md5 d59801055b8ba6c6980ed1247a603f5f

patchfiles			patch-src_eval.c patch-src_global.h patch-src_io-utils.c \
					patch-src_ref.c patch-src_utils.c patch-src_cmd.c \
					patch-src_afm.c patch-Makefile.in patch-afm_Makefile.in \
					patch-Xresources_Makefile.in patch-src_io-term.h \
					patch-src_basic.h patch-src_io-x11.c patch-src_xrdb.c

configure.args		--without-x --without-motif --mandir=${prefix}/share/man \
					--infodir=${prefix}/share/info

post-destroot {
	file rename ${destroot}${prefix}/share/oleo/oleo.html \
		${destroot}${prefix}/share/doc/${name}/oleo.html
}

variant x11 {
	depends_lib-append		port:xorg-libs
	configure.args-delete	--without-x
	configure.args-append	--with-x
}

