summaryrefslogtreecommitdiff
blob: a0a85163aace48a8308312c321fea1c2a4f3dc28 (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
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/ecls/ecls-0.9j_p1.ebuild,v 1.1 2008/01/11 14:50:18 hkbst Exp $

inherit eutils multilib

DESCRIPTION="ECL is an embeddable Common Lisp implementation."
SRC_URI="mirror://sourceforge/${PN}/ecl-${PV/_/-}.tgz"
HOMEPAGE="http://ecls.sourceforge.net/"
SLOT="0"
LICENSE="BSD LGPL-2"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"

DEPEND="=dev-libs/gmp-4*
		app-text/texi2html
		>=dev-libs/boehm-gc-6.8"

IUSE="X threads unicode"

PROVIDE="virtual/commonlisp"

S="${WORKDIR}"/ecl-${PV:0:4}

_src_unpack() {
	unpack ${A}
	epatch "${FILESDIR}"/${PV}-headers-gentoo.patch
}

src_compile() {
	econf \
		--with-system-gmp \
		--enable-boehm=system \
		--enable-longdouble \
		--enable-c99-complex \
		$(use_with threads) \
		$(use_with threads __thread) \
		$(use_with unicode) \
		$(use_with X x) \
		$(use_with X clx) \
		|| die "econf failed"
	#parallel fails
	emake -j1 || die "make failed"
}

src_install () {
	emake DESTDIR="${D}" install || die

	dohtml doc/*.html
	dodoc ANNOUNCEMENT Copyright

#	dodoc "${FILESDIR}"/README.Gentoo
}