diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-04 15:17:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-04 15:17:45 +0100 |
commit | 2273b13517c999048fff4aa7714d14415478de1d (patch) | |
tree | d0ff945bd67ab1efccbaa9c7bcc077c8f8032338 /dev-lang/lfe/lfe-2.1.2.ebuild | |
parent | 5e0e6a28799c4a5134e55d203b373f1d6811c004 (diff) |
gentoo auto-resync : 04:08:2023 - 15:17:45
Diffstat (limited to 'dev-lang/lfe/lfe-2.1.2.ebuild')
-rw-r--r-- | dev-lang/lfe/lfe-2.1.2.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-lang/lfe/lfe-2.1.2.ebuild b/dev-lang/lfe/lfe-2.1.2.ebuild new file mode 100644 index 000000000000..0ec43431ab6d --- /dev/null +++ b/dev-lang/lfe/lfe-2.1.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp-common toolchain-funcs + +DESCRIPTION="Lisp-flavoured Erlang, a lisp syntax front-end to the Erlang compiler" +HOMEPAGE="http://lfe.github.io/ + https://github.com/rvirding/lfe/" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_BRANCH="develop" + EGIT_REPO_URI="https://github.com/rvirding/${PN}.git" +else + SRC_URI="https://github.com/rvirding/${PN}/archive/${PV}.tar.gz + -> ${P}.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.el" + +src_compile() { + emake HOSTCC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" compile + + use emacs && emake emacs +} + +src_install() { + insinto /usr/$(get_libdir)/erlang/lib/lfe/ + doins -r ebin + exeinto /usr/bin + doexe ./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 +} |