1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit elisp-common eutils
9 DESCRIPTION="GNU Forth is a fast and portable implementation of the ANSI Forth language"
10 HOMEPAGE="https://www.gnu.org/software/gforth"
11 SRC_URI="mirror://gnu/gforth/${P}.tar.gz"
15 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~ppc-macos ~sparc-solaris"
18 DEPEND="dev-libs/ffcall
19 emacs? ( virtual/emacs )"
22 SITEFILE="50${PN}-gentoo.el"
25 epatch "${FILESDIR}/${PN}-0.7.0-make-elc.patch"
30 # May want to add a USE flag for --enable-force-cdiv, if necessary
31 # At this point I do not know when that is appropriate, and I don't
32 # want to add an ebuild-specific USE flag without understanding.
35 $(use emacs || echo "--without-lispdir")
39 # Parallel make breaks here
40 emake -j1 || die "emake failed"
44 emake DESTDIR="${D}" install
46 dodoc AUTHORS BUGS ChangeLog NEWS* README* ToDo doc/glossaries.doc doc/*.ps
49 elisp-install ${PN} gforth.el gforth.elc
50 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
55 use emacs && elisp-site-regen
59 use emacs && elisp-site-regen