blob: f448f2c63b67a9dd7629abd986e0c4c7a22b20b2 (
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
|
# 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>
# $Header: /var/cvsroot/gentoo-x86/app-office/siag/siag-3.5.2-r2.ebuild,v 1.1 2002/06/17 22:18:09 lostlogic Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A free Office package for Linux"
SRC_URI="ftp://siag.nu/pub/siag/${P}.tar.gz"
HOMEPAGE="http://siag.nu/"
DEPEND="virtual/x11
>=dev-libs/gmp-3.1.1
>=media-libs/xpm-3.4
>=x11-misc/mowitz-0.2.1
>=dev-lang/tcl-8.0.0"
# >=media-libs/t1lib-1.0.1"
RDEPEND="virtual/x11"
# >=media-libs/t1lib-1.0.1"
src_unpack() {
unpack ${A}
cd ${S}
if [ -z "`use kde`" ] || [ -z ${KDEDIR} ]; then
einfo "Not using KDE"
for file in `find . -iname "Makefile.*"`; do
grep -v "kdeinst" ${file} >${file}.hacked && \
mv ${file}.hacked ${file} || die "Hacking of ${file} failed"
done
else
einfo "Using KDE"
sed -e "s:VERBOSE=no:VERBOSE=no\nKDEDIR=${D}${KDEDIR}:" common/kdeinst \
> common/kdeinst.hacked && \
mv common/kdeinst.hacked common/kdeinst || die "Hacking of kdeinst failed"
fi
}
src_compile() {
local myconf
#Causes segfaults in 3.5.2 on my system...
# if [ "`use guile`" ]
# then
# myconf="$myconf --with-guile"
# else
# myconf="$myconf --without-guile"
# fi
./configure --prefix=/usr \
--with-x \
--with-xawm="Xaw" \
--mandir=/usr/share/man \
--host=${CHOST} \
--with-tcl \
--with-gmp \
$myconf || die "Configure failed"
# --with-t1lib \
make || die "Make failed"
}
src_install () {
if [ -n "`use kde`" ] && [ ! -z ${KDEDIR} ]; then
echo "Still using KDE"
dodir ${KDEDIR}
fi
make DESTDIR=${D} install || die "Install failed"
}
|