| 1 |
# Copyright 1999-2010 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/ecls/ecls-10.4.1.ebuild,v 1.1 2010/04/12 11:53:52 grozin Exp $ |
| 4 |
|
| 5 |
EAPI=3 |
| 6 |
inherit eutils multilib |
| 7 |
|
| 8 |
MY_P=ecl-${PV} |
| 9 |
|
| 10 |
DESCRIPTION="ECL is an embeddable Common Lisp implementation." |
| 11 |
HOMEPAGE="http://common-lisp.net/project/ecl/" |
| 12 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
| 13 |
|
| 14 |
LICENSE="BSD LGPL-2" |
| 15 |
SLOT="0" |
| 16 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
| 17 |
IUSE="debug gengc precisegc threads +unicode X" |
| 18 |
|
| 19 |
RDEPEND="dev-libs/gmp |
| 20 |
virtual/libffi |
| 21 |
>=dev-libs/boehm-gc-7.1[threads?]" |
| 22 |
DEPEND="${RDEPEND} |
| 23 |
app-text/texi2html" |
| 24 |
PDEPEND="dev-lisp/gentoo-init" |
| 25 |
|
| 26 |
S="${WORKDIR}"/${MY_P} |
| 27 |
|
| 28 |
pkg_setup() { |
| 29 |
if use gengc || use precisegc; then |
| 30 |
ewarn "USE flags gengc and precisegc are experimental" |
| 31 |
ewarn "Don't use them if you want a stable ecl" |
| 32 |
fi |
| 33 |
} |
| 34 |
|
| 35 |
src_prepare() { |
| 36 |
epatch "${FILESDIR}"/${PV}-headers-gentoo.patch |
| 37 |
} |
| 38 |
|
| 39 |
src_configure() { |
| 40 |
econf \ |
| 41 |
--with-system-gmp \ |
| 42 |
--enable-boehm=system \ |
| 43 |
--enable-longdouble \ |
| 44 |
$(use_enable gengc) \ |
| 45 |
$(use_enable precisegc) \ |
| 46 |
$(use_with debug debug-cflags) \ |
| 47 |
$(use_enable threads) \ |
| 48 |
$(use_with threads __thread) \ |
| 49 |
$(use_enable unicode) \ |
| 50 |
$(use_with X x) \ |
| 51 |
$(use_with X clx) |
| 52 |
} |
| 53 |
|
| 54 |
src_compile() { |
| 55 |
#parallel fails |
| 56 |
emake -j1 || die "Compilation failed" |
| 57 |
} |
| 58 |
|
| 59 |
src_install () { |
| 60 |
emake DESTDIR="${D}" install || die "Installation failed" |
| 61 |
|
| 62 |
dodoc ANNOUNCEMENT Copyright |
| 63 |
dodoc "${FILESDIR}"/README.Gentoo |
| 64 |
pushd build/doc |
| 65 |
newman ecl.man ecl.1 |
| 66 |
newman ecl-config.man ecl-config.1 |
| 67 |
popd |
| 68 |
} |