blob: f63ff3d8c719852e3645fcda44a9694a6ca94a87 (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# /home/cvsroot/gentoo-x86/gnome-office/gnumeric/gnumeric-0.66.ebuild,v 1.1 2001/06/28 09:47:57 hallski Exp
# $Header: /var/cvsroot/gentoo-x86/app-office/gnumeric/gnumeric-0.74.ebuild,v 1.1 2001/11/04 04:54:30 azarah Exp $
S=${WORKDIR}/${P}
DESCRIPTION="gnumeric"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnumeric/${P}.tar.bz2"
HOMEPAGE="http://www.gnome.org/gnome-office/gnumeric.shtml"
# We actually need guile-1.5
RDEPEND=">=x11-libs/gtk+-1.2.10-r3
>=gnome-base/gnome-libs-1.4.1.2
>=gnome-base/oaf-0.6.6
>=gnome-base/libglade-0.16
>=gnome-base/gnome-print-0.31
>=gnome-extra/gal-0.14
>=dev-libs/libxml-1.8.16
>=dev-libs/libole2-0.2.3-r1
perl? ( >=sys-devel/perl-5 )
python? ( >=dev-lang/python-2.0 )
gb? ( >=gnome-extra/gb-0.0.20-r1 )
guile? ( >=dev-util/guile-1.4 )
libgda? ( >=gnome-extra/libgda-0.2.91 )
bonobo? ( >=gnome-base/bonobo-1.0.9-r1 )
evo? ( >=net-mail/evolution-0.13 )"
DEPEND="${RDEPEND}
>=dev-util/intltool-0.11
nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd ${S}
# patch -p0 < ${FILESDIR}/${P}-gdk-gc-ref.patch
# patch -p1 < ${FILESDIR}/${P}-compile.patch
# automake
}
src_compile() {
local myconf
if [ -z "`use nls`" ] ; then
myconf="--disable-nls"
fi
if [ -z "`use bonobo`" ] ; then
myconf="${myconf} --without-bonobo"
fi
if [ "`use gb`" ]; then
#does not work atm
myconf="${myconf} --without-gb"
else
myconf="${myconf} --without-gb"
fi
if [ "`use guile`"]; then
myconf="${myconf} --with-guile"
else
myconf="${myconf} --without-guile"
fi
if [ "`use perl`" ]; then
myconf="${myconf} --with-perl"
else
myconf="${myconf} --without-perl"
fi
if [ "`use python`" ]; then
myconf="${myconf} --with-python"
else
myconf="${myconf} --without-python"
fi
if [ "`use libgda`" ]; then
myconf="${myconf} --with-gda"
else
myconf="${myconf} --without-gda"
fi
if [ "`use evo`" ]; then
myconf="${myconf} --with-evolution"
fi
./configure --host=${CHOST} \
--prefix=/usr \
--sysconfdir=/etc \
${myconf} || die
emake || die "Building of package failed."
}
src_install() {
make prefix=${D}/usr \
sysconfdir=${D}/etc \
install || die
dodoc AUTHORS COPYING *ChangeLog HACKING NEWS README TODO
}
|