summaryrefslogtreecommitdiff
blob: 01d261585c7d7e8df735bd9bc5b3d7f27c87c9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/gnumeric/gnumeric-1.1.15.ebuild,v 1.4 2003/03/11 21:11:44 seemant Exp $

#provide Xmake and Xemake
inherit virtualx libtool gnome2

DESCRIPTION="Gnumeric, the GNOME Spreadsheet"
HOMEPAGE="http://www.gnome.org/gnome-office/gnumeric.shtml"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc"
IUSE="nls libgda gb evo python guile perl"

#Eye Of Gnome (media-gfx/eog) is for image support.
# TODO libgsf-gnome is provided by libgsf
# check if this is always the case
RDEPEND=">=x11-libs/gtk+-2
	>=dev-libs/glib-2
	>=gnome-base/libgnome-2
	>=gnome-base/libgnomeui-2
	>=gnome-base/libbonobo-2
	>=gnome-base/libbonoboui-2
	>=gnome-base/bonobo-activation-1.0.2
	>=gnome-base/libgnomeprint-1.116.0
	>=gnome-base/libgnomeprintui-1.116.0
	>=gnome-extra/gal2-0.0.6
	>=gnome-extra/libgsf-1.6.0
	>=gnome-base/libglade-2
	>=dev-libs/libxml2-2.4.12
	perl?   ( >=dev-lang/perl-5.6 )
	python? ( >=dev-lang/python-2.0 )"

# disabled during the port
#	gb?     ( ~gnome-extra/gb-0.0.17 )
#	evo?    ( >=net-mail/evolution-1.0.8 )

# needs libgda-0.10, not in portage yet
#	libgda? ( >=gnome-extra/libgda-0.2.91
#	          >=gnome-base/bonobo-1.0.17 )

DEPEND="${RDEPEND}
	 nls? ( sys-devel/gettext
	 >=dev-util/intltool-0.11 )"

src_compile() {
	local myconf
	use nls || myconf="--disable-nls"

#	use gb \
#		&& myconf="${myconf} --with-gb" \
#		|| myconf="${myconf} --without-gb"

#	use guile \
#		&& myconf="${myconf} --with-guile" \
#		|| myconf="${myconf} --without-guile"

	use perl \
		&& myconf="${myconf} --with-perl" \
		|| myconf="${myconf} --without-perl"

  	use python \
		&& myconf="${myconf} --with-python" \
		|| myconf="${myconf} --without-python"

  	econf ${myconf}

	#the build process have to be able to connect to X
	Xemake || Xmake || die
}

src_install() {
	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
	make DESTDIR=${D} install || die "install failed" 

	unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
}

DOCS="AUTHORS COPYING* ChangeLog HACKING NEWS README TODO"