aboutsummaryrefslogtreecommitdiff
blob: ecfa7c14d5927c1587f13c454db421b23985764b (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=2

DESCRIPTION="Symbolic and algebraic computations system"
HOMEPAGE="http://www.open-axiom.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="X"

RDEPEND="X? ( x11-libs/libXpm )"
DEPEND="${RDEPEND}
	app-text/noweb
	>=dev-lisp/sbcl-1.0.22"

src_configure() {
	# There is an option to compile with other lisps. However:
	# - gcl is getting obsolete and unmaintained and is hard masked
	# - could not make it work with ecls
	econf \
		--with-lisp=sbcl \
		$(use_with X x)
}

src_compile() {
	# unfortunately could not track down the broken parallel build
	# -j5 ok but -j30 sbcl stalled
	emake -j1 || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc ChangeLog* NEWS README AUTHORS MAINTAINERS TODO STYLES
}