aboutsummaryrefslogtreecommitdiff
blob: 1db0dddcbc9c3113817e1670f2c2c5b31b2c7492 (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit eutils multilib pax-utils toolchain-funcs

MY_PV="$(ver_cut 1-3)"
MY_P="LuaJIT-${MY_PV}"

DESCRIPTION="Just-In-Time Compiler for the Lua programming language"
HOMEPAGE="http://luajit.org/"
SRC_URI="http://luajit.org/download/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="2.0.5"
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"

S="${WORKDIR}/${MY_P}"

# LUA_VERSION=$(readlink -e "${EROOT}"/usr/bin/lua | sed -ne 's:.*/usr/bin/lua\([\d.-]*\):\1:p')

HTML_DOCS=( doc/ )
PATCHES=( "${FILESDIR}"/${PN}-luaver.patch
		  "${FILESDIR}"/${PN}-nosymlinks.patch )

src_install(){
	default

	pax-mark m "${ED}usr/bin/luajit-${MY_PV}"

	einstalldocs
}