# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit elisp-common eutils DESCRIPTION="GNU Forth is a fast and portable implementation of the ANSI Forth language" HOMEPAGE="https://www.gnu.org/software/gforth" SRC_URI="mirror://gnu/gforth/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris" IUSE="+check emacs" DEPEND="dev-libs/ffcall emacs? ( >=app-editors/emacs-23.1:* )" RDEPEND="${DEPEND}" SITEFILE="50${PN}-gentoo.el" PATCHES=( "${FILESDIR}"/${PN}-0.7.0-make-elc.patch ) src_configure() { econf \ $(use emacs || echo "--without-lispdir") \ $(use_with check) } src_compile() { # Parallel make breaks here emake -j1 } src_install() { default dodoc AUTHORS BUGS ChangeLog NEWS* README* ToDo doc/glossaries.doc doc/*.ps if use emacs; then elisp-install ${PN} gforth.el gforth.elc elisp-site-file-install "${FILESDIR}/${SITEFILE}" fi } pkg_postinst() { use emacs && elisp-site-regen } pkg_postrm() { use emacs && elisp-site-regen }