diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-05-13 11:58:13 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-05-13 11:58:21 +0100 |
commit | ddfdb6835cbdefdb41016dd5896713eb7d87786c (patch) | |
tree | 06e465bedec97d57e2581c1cb065c27cd24a2633 /dev-lang/gforth/gforth-0.7.3-r1.ebuild | |
parent | media-fonts/sil-doulos: Remove 5.000 (r0) (diff) | |
download | gentoo-ddfdb6835cbdefdb41016dd5896713eb7d87786c.tar.gz gentoo-ddfdb6835cbdefdb41016dd5896713eb7d87786c.tar.bz2 gentoo-ddfdb6835cbdefdb41016dd5896713eb7d87786c.zip |
dev-lang/gforth: reenable build-time checks
Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'dev-lang/gforth/gforth-0.7.3-r1.ebuild')
-rw-r--r-- | dev-lang/gforth/gforth-0.7.3-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-lang/gforth/gforth-0.7.3-r1.ebuild b/dev-lang/gforth/gforth-0.7.3-r1.ebuild new file mode 100644 index 000000000000..c1d32de053d1 --- /dev/null +++ b/dev-lang/gforth/gforth-0.7.3-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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-fbsd ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris" +IUSE="emacs" + +DEPEND="dev-libs/ffcall + emacs? ( virtual/emacs )" +RDEPEND="${DEPEND}" + +SITEFILE="50${PN}-gentoo.el" + +PATCHES=( + "${FILESDIR}"/${PN}-0.7.0-make-elc.patch +) + +src_configure() { + econf \ + $(use emacs || echo "--without-lispdir") +} + +src_compile() { + # Parallel make breaks here + emake -j1 || die "emake failed" +} + +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 +} |