1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib
8 # test phase only works if ecls already installed #516876
13 DESCRIPTION="ECL is an embeddable Common Lisp implementation"
14 HOMEPAGE="https://common-lisp.net/project/ecl/"
15 SRC_URI="https://common-lisp.net/project/ecl/files/release/${PV}/${MY_P}.tgz"
19 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
20 IUSE="cxx debug emacs gengc precisegc cpu_flags_x86_sse +threads +unicode +libatomic X"
22 CDEPEND="dev-libs/gmp:0
24 libatomic? ( dev-libs/libatomic_ops )
25 >=dev-libs/boehm-gc-7.1[threads?]
26 >=dev-lisp/asdf-2.33-r3:="
29 emacs? ( virtual/emacs >=app-eselect/eselect-emacs-1.12 )"
32 S="${WORKDIR}"/${MY_P}
35 if use gengc || use precisegc ; then
36 ewarn "You have enabled the generational garbage collector or"
37 ewarn "the precise collection routines. These features are not very stable"
38 ewarn "at the moment and may cause crashes."
39 ewarn "Don't enable them unless you know what you're doing."
44 epatch "${FILESDIR}"/${PV}-headers-gentoo.patch
45 cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
51 --enable-boehm=system \
52 --enable-longdouble=yes \
56 $(use_enable precisegc) \
57 $(use_with debug debug-cflags) \
58 $(use_enable libatomic libatomic system) \
59 $(use_with cpu_flags_x86_sse sse) \
60 $(use_enable threads) \
61 $(use_with threads __thread) \
62 $(use_enable unicode) \
63 $(use_with unicode unicode-names) \
70 local ETAGS=$(eselect --brief etags list | sed -ne '/emacs/{p;q}')
71 [[ -n ${ETAGS} ]] || die "No etags implementation found"
72 pushd build > /dev/null || die
73 emake ETAGS=${ETAGS} TAGS
80 emake -j1 || die "Compilation failed"
84 emake DESTDIR="${D}" install || die "Installation failed"
86 dodoc README.md CHANGELOG
87 dodoc "${FILESDIR}"/README.Gentoo
90 newman ecl-config.man ecl-config.1