You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
61 lines
1.4 KiB
10 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
10 years ago
|
# $Header: /var/cvsroot/gentoo-x86/dev-lang/gforth/gforth-0.7.3.ebuild,v 1.1 2014/09/04 10:08:32 pinkbyte Exp $
|
||
13 years ago
|
|
||
10 years ago
|
EAPI=5
|
||
|
|
||
|
inherit elisp-common eutils
|
||
13 years ago
|
|
||
|
DESCRIPTION="GNU Forth is a fast and portable implementation of the ANSI Forth language"
|
||
|
HOMEPAGE="http://www.gnu.org/software/gforth"
|
||
12 years ago
|
SRC_URI="mirror://gnu/gforth/${P}.tar.gz"
|
||
13 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
10 years ago
|
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~ppc-macos ~sparc-solaris"
|
||
13 years ago
|
IUSE="emacs"
|
||
|
|
||
|
DEPEND="dev-libs/ffcall
|
||
|
emacs? ( virtual/emacs )"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
10 years ago
|
SITEFILE="50${PN}-gentoo.el"
|
||
13 years ago
|
|
||
10 years ago
|
src_prepare() {
|
||
|
epatch "${FILESDIR}/${PN}-0.7.0-make-elc.patch"
|
||
|
epatch_user
|
||
13 years ago
|
}
|
||
|
|
||
10 years ago
|
src_configure() {
|
||
13 years ago
|
# May want to add a USE flag for --enable-force-cdiv, if necessary
|
||
|
# At this point I do not know when that is appropriate, and I don't
|
||
|
# want to add an ebuild-specific USE flag without understanding.
|
||
10 years ago
|
econf \
|
||
|
--without-check \
|
||
|
$(use emacs || echo "--without-lispdir")
|
||
|
}
|
||
13 years ago
|
|
||
10 years ago
|
src_compile() {
|
||
13 years ago
|
# Parallel make breaks here
|
||
|
emake -j1 || die "emake failed"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
10 years ago
|
emake DESTDIR="${D}" install
|
||
13 years ago
|
|
||
|
dodoc AUTHORS BUGS ChangeLog NEWS* README* ToDo doc/glossaries.doc doc/*.ps
|
||
|
|
||
|
if use emacs; then
|
||
10 years ago
|
elisp-install ${PN} gforth.el gforth.elc
|
||
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||
13 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
use emacs && elisp-site-regen
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
use emacs && elisp-site-regen
|
||
|
}
|