blob: f995810d38635ace901db4132bdc94521a23875a (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.1.1.ebuild,v 1.10 2002/07/11 06:30:17 drobbins Exp $
inherit kde-base || die
need-kde 2.2.2
DESCRIPTION="KDE ${PV} - KOffice"
HOMEPAGE="http://www.koffice.org/"
# turns out kde.org.eclass doesn't work here
SRC_PATH="kde/stable/${P}/src/${P}.tar.bz2"
SRC_URI="ftp://ftp.kde.org/pub/$SRC_PATH
ftp://ftp.fh-heilbronn.de/pub/mirrors/$SRC_PATH
ftp://ftp.sourceforge.net/pub/mirrors/$SRC_PATH"
DEPEND="$DEPEND
>=dev-lang/python-2.0-r5"
# >=sys-devel/automake-1.4
# >=sys-devel/autoconf-1.13"
src_unpack() {
base_src_unpack all patch
}
src_compile() {
myconf="$myconf --enable-all"
myconf="$myconf --with-extra-libs=/usr/lib/python2.2/config"
kde_src_compile myconf
export LIBPYTHON="`python-config --libs`"
#the dir kchar/kdchart cannot be compiled with the -fomit-frame-pointer flag present
CXXFLAGS2="$CXXFLAGS"
CFLAGS2="$CFLAGS"
CFLAGS=${CFLAGS/-fomit-frame-pointer}
CXXFLAGS=${CXXFLAGS/-fomit-frame-pointer}
cd ${S}
kde_src_compile configure
cd ${S}/kchart/kdchart
make
CFLAGS="$CFLAGS2"
CXXFLAGS="$CXXFLAGS2"
cd ${S}
kde_src_compile configure
make
}
|