summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/luajit/luajit-2.0.0_beta6.ebuild')
-rw-r--r--dev-lang/luajit/luajit-2.0.0_beta6.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-lang/luajit/luajit-2.0.0_beta6.ebuild b/dev-lang/luajit/luajit-2.0.0_beta6.ebuild
new file mode 100644
index 000000000000..ae1512bfb653
--- /dev/null
+++ b/dev-lang/luajit/luajit-2.0.0_beta6.ebuild
@@ -0,0 +1,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_beta6.ebuild,v 1.1 2011/03/09 15:42:10 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}"
+}