summaryrefslogtreecommitdiff
blob: acb726e78ebd7ef5a787cadb5e8c55d39f67a213 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author Bart Verwilst <verwilst@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.2_beta1.ebuild,v 1.1 2002/04/26 06:45:15 verwilst Exp $
. /usr/portage/eclass/inherit.eclass || die
inherit kde-base || die

need-kde 3

S="${WORKDIR}/koffice-1.2-beta1"
DESCRIPTION="KDE Office Set"
HOMEPAGE="http://www.koffice.org/"

SRC_URI="http://www.gentoo.org/~verwilst/koffice-1.2-beta1.tar.bz2"

DEPEND="$DEPEND
	>=dev-lang/python-2.2"


src_unpack() {

	unpack koffice-1.2-beta1.tar.bz2
	cd ${S}/kword
	patch -p0 < ${FILESDIR}/${P}-kwdoc.diff
	patch -p0 < ${FILESDIR}/${P}-kwcanvas.diff
	patch -p0 < ${FILESDIR}/${P}-kwtableframeset.diff
	patch -p0 < ${FILESDIR}/${P}-kwtextframeset.diff
	patch -p0 < ${FILESDIR}/${P}-kwtextframeset.h.diff

}

src_compile() {

    export LIBPYTHON="`python-config --libs`"
    export LIBPYTHON="${LIBPYTHON//-L \/usr\/lib\/python2.2\/config}"

    myconf="$myconf --enable-all"
    kde_src_compile myconf

    #the dir kchar/kdchart cannot be compiled with the -fomit-frame-pointer flag present
    CFLAGS2="$CFLAGS"
    CXXFLAGS2="$CXXFLAGS"

    CFLAGS=${CFLAGS/-fomit-frame-pointer}
    CXXFLAGS=${CXXFLAGS/-fomit-frame-pointer}

    cd ${S}
    kde_src_compile configure
    cd kchart/kdchart
    emake || die

    cd ${S}
    CFLAGS="$CFLAGS2"
    CXXFLAGS="$CXXFLAGS2"
    kde_src_compile configure
    emake || die

}