blob: 42c15e4e0118bcaa82d744f47fddaf6b7dd12471 [file] [log] [blame]
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit autotools eutils java-pkg-opt-2
DESCRIPTION="General purpose computer algebra system"
HOMEPAGE="http://yacas.sourceforge.net/"
SRC_URI="http://${PN}.sourceforge.net/backups/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
IUSE="doc java server"
DEPEND="java? ( >=virtual/jdk-1.6 )"
RDEPEND="java? ( >=virtual/jre-1.6 )"
src_configure() {
econf \
$(use_enable doc html-doc) \
$(use_enable server) \
--with-html-dir="/usr/share/doc/${PF}/html"
}
src_compile() {
default
if use java; then
cd JavaYacas || die
# -j1 because of file generation dependence
emake -j1 -f makefile.yacas
fi
}
src_install() {
default
if use java; then
cd JavaYacas || die
java-pkg_dojar yacas.jar
java-pkg_dolauncher jyacas --main net.sf.yacas.YacasConsole
insinto /usr/share/${PN}
doins hints.txt yacasconsole.html
fi
}