summaryrefslogtreecommitdiff
blob: bfb8337090ea2078d51e32ecb6f242c8d9b9f023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit multilib

DESCRIPTION="Lisp-flavoured Erlang"
HOMEPAGE="http://lfe.github.io/"
SRC_URI="https://github.com/rvirding/lfe/archive/v${PV}.zip -> ${P}.zip"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-lang/erlang"
DEPEND="${RDEPEND}"

src_prepare() {
	export PATH="${S}/bin:$PATH"
}

src_compile() {
	emake compile -j1
}

src_install() {
	dobin bin/lfe
	dobin bin/lfec
	dobin bin/lfescript
	dodir /usr/$(get_libdir)/erlang/lib/lfe/ebin/
	dodir /usr/$(get_libdir)/erlang/lib/lfe/emacs/
	cp -R "${S}/ebin" "${D}/usr/$(get_libdir)/erlang/lib/lfe/"
	cp -R "${S}/emacs" "${D}/usr/$(get_libdir)/erlang/lib/lfe/"
}