# 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/* }