blob: e2f621e1bb8319f4aafecfd3eb35b5662a3e8083 (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Martin Schlemmer <azarah@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-office/gnumeric/gnumeric-1.0.5-r2.ebuild,v 1.2 2002/04/09 21:22:13 azarah Exp $
#provide Xmake and Xemake
. /usr/portage/eclass/inherit.eclass
inherit virtualx
S=${WORKDIR}/${P}
DESCRIPTION="Gnumeric, the GNOME Spreadsheet"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnumeric/${P}.tar.bz2"
HOMEPAGE="http://www.gnome.org/gnome-office/gnumeric.shtml"
#Eye Of Gnome (media-gfx/eog) is for image support.
RDEPEND=">=x11-libs/gtk+-1.2.10-r3
>=gnome-base/gnome-libs-1.4.1.2-r1
>=gnome-base/oaf-0.6.7
>=gnome-base/ORBit-0.5.12-r1
>=gnome-base/libglade-0.17
>=gnome-base/gnome-print-0.31
>=gnome-extra/gal-0.18
>=dev-libs/libole2-0.2.4
>=media-gfx/eog-0.6
=dev-libs/libxml-1.8*
=media-libs/freetype-1.3*
bonobo? ( >=gnome-base/bonobo-1.0.17 )
perl? ( >=sys-devel/perl-5.6 )
python? ( >=dev-lang/python-2.0 )
gb? ( ~gnome-extra/gb-0.0.17 )
libgda? ( >=gnome-extra/libgda-0.2.91
>=gnome-base/bonobo-1.0.17 )
evo? ( >=net-mail/evolution-0.13 )"
#will only work once everybody has decided that they should support
#the latest versions of programs, or if we live in a perfect world,
#and subsequent versions do not break compatibility.
# guile? ( >=dev-util/guile-1.5 )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext
>=dev-util/intltool-0.11 )"
src_unpack() {
unpack ${A}
#patch 'gnumeric-doc.make' to look for files in the correct place.
cd ${S}/doc
patch -p0 <${FILESDIR}/${P}-docbuild.patch || die
cd ${S}
}
src_compile() {
# fix the relink bug, and invalid paths in .ls files.
libtoolize --copy --force
local myconf
if [ -z "`use nls`" ] ; then
myconf="--disable-nls"
fi
if [ -n "`use gb`" ]; then
myconf="${myconf} --with-gb"
else
myconf="${myconf} --without-gb"
fi
#broken as we cannot use guile-1.5 (break gnucash)
if [ -n "`use guile`" ]; then
myconf="${myconf} --without-guile"
else
myconf="${myconf} --without-guile"
fi
if [ -n "`use perl`" ]; then
myconf="${myconf} --with-perl"
else
myconf="${myconf} --without-perl"
fi
if [ -n "`use python`" ]; then
myconf="${myconf} --with-python"
else
myconf="${myconf} --without-python"
fi
if [ -n "`use libgda`" ]; then
myconf="${myconf} --with-gda --with-bonobo"
else
myconf="${myconf} --without-gda"
fi
if [ -n "`use evo`" ]; then
myconf="${myconf} --with-evolution"
fi
if [ -n "`use bonobo`" ]; then
myconf="${myconf} --with-bonobo"
elif [ -z "`use libgda`" ]; then
myconf="${myconf} --without-bonobo"
fi
CFLAGS="$CFLAGS `gdk-pixbuf-config --cflags`"
./configure --host=${CHOST} \
--prefix=/usr \
--sysconfdir=/etc \
${myconf} || die
#'gnumeric --dump-func-defs' needs to write to ${HOME}/.gnome/, or
#else the build fails.
addwrite "${HOME}/.gnome"
#the build process have to be able to connect to X
Xemake || Xmake || die
}
src_install() {
make prefix=${D}/usr \
sysconfdir=${D}/etc \
install || die
dodoc AUTHORS COPYING *ChangeLog HACKING NEWS README TODO
}
|