blob: 99421ed5ddb1eca1bc5da55ea5f6f49e5133b190 (
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-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
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
doheader include/{terra.h,*.t}
}
|