blob: dcbfb6407c3dde4295b920ddd904c1e1e6da5909 (
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
37
38
39
40
41
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/luajit-2.0.0_beta7.ebuild,v 1.1 2011/05/07 11:06:00 rafaelmartins Exp $
EAPI="2"
inherit eutils multilib pax-utils
MY_P="LuaJIT-${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"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/${MY_P}"
src_prepare(){
# fixing prefix and version
sed -i -e "s|/usr/local|/usr|" \
-e "s|/lib|/$(get_libdir)|" \
-e "s|VERSION=.*|VERSION= ${PV}|" \
Makefile || die "failed to fix prefix in Makefile"
sed -i -e 's|/usr/local|/usr|' \
-e "s|lib/|$(get_libdir)/|" \
src/luaconf.h || die "failed to fix prefix in luaconf.h"
# removing strip
sed -i -e '/$(Q)$(TARGET_STRIP)/d' src/Makefile \
|| die "failed to remove forced strip"
}
src_install(){
einstall DESTDIR="${D}"
pax-mark m "${D}usr/bin/luajit-${PV}"
dosym "luajit-${PV}" "/usr/bin/luajit-${SLOT}"
}
|