summaryrefslogtreecommitdiff
blob: 43e50ce7f9b7ceb919ca56c5bdb81830d3978b42 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/kalamaris/kalamaris-0.7.1-r1.ebuild,v 1.2 2006/04/09 23:42:48 cryos Exp $

inherit kde flag-o-matic

DESCRIPTION="The KDE Computer Algebra System"
HOMEPAGE="http://developer.kde.org/~larrosa/kalamaris.html"
SRC_URI="http://developer.kde.org/~larrosa/bin/${P}.tar.bz2"
LICENSE="GPL-2"

KEYWORDS="~amd64 ~ppc ~sparc ~x86"

DEPEND="dev-libs/gmp"

need-kde 3

S="${WORKDIR}/${PN}"

src_unpack() {
	unpack ${A}
	cd ${S}
	mkdir fakebin
	for prog in mcopidl artsc-config; do
		echo '#!/bin/sh' > fakebin/${prog}
		chmod +x fakebin/${prog}
	done
}

src_compile() {
	# need this to make kalamaris compile using gcc-3.4
	# see bug #103273
	append-flags -DQT_NO_STL

	PATH="${PATH}:${KDEDIR}/bin:fakebin" econf || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	kde_src_install
	insinto /usr/share/${PN}/examples
	doins kalamaris/examples/*
	insinto /usr/share/${PN}/examples2
	doins kalamaris/examples2/*
}