summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2011-07-26 22:05:39 +0400
committerIgor Pashev <pashev.igor@gmail.com>2011-07-26 22:05:39 +0400
commitcf53c5ceb7738ac885899f232a6b81cac017b135 (patch)
treecd22cbb19f0d3f2dac59668a9476b3d910de6c69
parent3f66dfdf30adb4740651f19c8553fb9fbb298b6c (diff)
downloadebuilds-cf53c5ceb7738ac885899f232a6b81cac017b135.tar.gz
Added Open Axiom 1.3.0
-rw-r--r--sci-mathematics/open-axiom/open-axiom-1.3.0.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/sci-mathematics/open-axiom/open-axiom-1.3.0.ebuild b/sci-mathematics/open-axiom/open-axiom-1.3.0.ebuild
new file mode 100644
index 0000000..df367fc
--- /dev/null
+++ b/sci-mathematics/open-axiom/open-axiom-1.3.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="The open computer algebra system (Axiom fork)"
+HOMEPAGE="http://open-axiom.org"
+SRC_URI="http://sourceforge.net/projects/${PN}/files/${PN}/${PV}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LISPS='sbcl clisp ecls clozurecl'
+REQUIRED_USE="^^ ( $LISPS )"
+
+# The first lisp is default
+IUSE="X threads +$LISPS"
+
+
+
+RDEPEND="X? ( x11-libs/libXpm
+x11-libs/libXau
+x11-libs/libSM
+x11-libs/libxcb
+x11-libs/libXdmcp
+x11-libs/libICE )"
+
+DEPEND="${RDEPEND}
+app-text/noweb
+sbcl? ( >=dev-lisp/sbcl-1.0.22 !=dev-lisp/sbcl-1.0.29 )
+clisp? ( >=dev-lisp/clisp-1.44 )
+ecls? ( >=dev-lisp/ecls-11.1.1 )
+clozurecl? ( >=dev-lisp/clozurecl-1.3 )"
+
+
+
+src_configure() {
+ local l lisp;
+ for l in $LISPS; do
+ use $l && break;
+ done
+
+ case $l in
+ clozurecl) lisp=ccl;;
+ ecls) lisp=ecl;;
+ *) lisp=$l;;
+ esac
+
+ econf \
+ $(use_with X x) \
+ --disable-gcl \
+ --with-lisp=$lisp \
+ --with-gnu-ld \
+ $(use_enable threads threads) \
+ || die "econf failed"
+}
+
+src_compile() {
+ # Parallel make broken
+ emake -j1 || die "emake failed"
+
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc ChangeLog* NEWS README AUTHORS MAINTAINERS TODO STYLES INSTALL
+ doicon ${FILESDIR}/open-axiom.png
+ make_desktop_entry \
+ open-axiom \
+ OpenAxiom \
+ open-axiom \
+ "" \
+ "Terminal=true"
+}
+