summaryrefslogtreecommitdiff
blob: f4254db023230ce4b6626b3e17c9f7eb6143a63b (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-2014 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/"
}