aboutsummaryrefslogtreecommitdiff
blob: 01d37bde2c30b75ac95311d468596eb169f0ceca (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-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

DESCRIPTION="A low-level counterpart to Lua"
HOMEPAGE="http://terralang.org/"
#cannot be unbundled easily, because needs to compiled with clang
LUAJIT="LuaJIT-2.0.3.tar.gz"
SRC_URI="https://github.com/zdevito/terra/archive/release-${PV//./-}.tar.gz -> ${P}.tar.gz
	http://luajit.org/download/${LUAJIT}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

DEPEND="sys-devel/clang
	dev-lang/luajit:2"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack "${P}.tar.gz"
	mv "${PN}"-* "${S}" || die
	ln -s "${DISTDIR}/${LUAJIT}" "${S}/build" || die
}

src_install() {
	cd release || die
	dobin terra
	dolib.so libterra.so
	dodoc README.md
	cd include || die
	doheader terra.h *.t
}