Install this version:
emerge -a =dev-lang/lfe-2.2.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-lang/lfe-2.2.2
Or alternatively:
emerge --autounmask-write -a =dev-lang/lfe-2.2.2
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit elisp-common toolchain-funcs
DESCRIPTION="Lisp-flavoured Erlang, a lisp syntax front-end to the Erlang compiler"
HOMEPAGE="https://lfe.io/
https://github.com/rvirding/lfe/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_BRANCH="develop"
EGIT_REPO_URI="https://github.com/rvirding/${PN}"
else
SRC_URI="https://github.com/rvirding/${PN}/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="Apache-2.0"
SLOT="0"
IUSE="emacs"
RDEPEND="
dev-lang/erlang
emacs? ( >=app-editors/emacs-23.1:* )
"
BDEPEND="
${RDEPEND}
"
SITEFILE="70${PN}-gentoo-r1.el"
src_compile() {
emake HOSTCC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" compile
if use emacs ; then
cd emacs || die
elisp-compile ./*.el
elisp-make-autoload-file
fi
}
src_install() {
insinto "/usr/$(get_libdir)/erlang/lib/lfe/"
doins -r ebin
dobin ./bin/*
dodoc doc/*.txt
doman doc/man/*
if use emacs ; then
elisp-install lfe emacs/*
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
Manage flags for this package:
euse -i <flag> -p dev-lang/lfe |
euse -E <flag> -p dev-lang/lfe |
euse -D <flag> -p dev-lang/lfe
dev-lang/erlang emacs? ( >=app-editors/emacs-23.1:* )
dev-lang/erlang emacs? ( >=app-editors/emacs-23.1:* )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | lfe-2.2.2.gh.tar.gz | 402171 bytes | https://github.com/rvirding/lfe/archive/2.2.2.tar.gz |