# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Xcas is a FLTK GUI for the Giac computer algebra system" HOMEPAGE="http://xcas.sourceforge.net" SRC_URI="mirror://sourceforge/xcas/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~ia64 ~amd64 ~arm" IUSE="debug" DEPEND=">=sys-devel/autoconf-2.52 >=sci-mathematics/giac-0.5.0 x11-libs/flvw" src_unpack() { unpack ${A} } src_compile() { local myconf myconf="" use debug && myconf="${myconf} -DBUILD=debug" bakefile -f gnu xcas.bkl ${myconf} -DCXXFLAGS="${CXXFLAGS}" -DLDFLAGS="${LDFLAGS}" -o Makefile || die make || die } src_install() { einstall || die dodoc README* AUTHORS COPYING NEWS TROUBLES }