summaryrefslogtreecommitdiff
blob: 0ff0e63e35e10648c4b34b4dbbf3f867ea27cb54 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/qalculate-kde/qalculate-kde-0.9.6-r2.ebuild,v 1.1 2008/10/18 00:41:14 markusle Exp $

inherit kde

DESCRIPTION="A modern multi-purpose calculator for KDE"
LICENSE="GPL-2"
HOMEPAGE="http://qalculate.sourceforge.net/"
SRC_URI="mirror://sourceforge/qalculate/${P}.tar.gz"

SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~ppc ~sparc ~x86"

DEPEND=">=sci-libs/libqalculate-0.9.6-r1"

need-kde 3.1

DOCS="AUTHORS ChangeLog NEWS README TODO"

src_unpack() {
	kde_src_unpack
	epatch "${FILESDIR}"/${P}-remove-link.patch
	epatch "${FILESDIR}"/${P}-cln-config.patch
}

src_compile() {
	# remove configure to force rebuild of autotools
	# by the kde eclass
	rm -f ./configure || die "Failed to remove configure"
	kde_src_compile myconf configure
	sed -e "s:-fno-exceptions::g" \
		-i Makefile -i src/Makefile \
		|| die "Failed to disable -fno-exceptions"
	kde_src_compile make
}