summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Martins <rafaelmartins@gentoo.org>2013-05-28 00:59:37 +0000
committerRafael Martins <rafaelmartins@gentoo.org>2013-05-28 00:59:37 +0000
commitcabf5f48858dfe34d76f99957e8f593a2161388a (patch)
treec02d31878124dd082a957fc436fa03146ca84591 /dev-lang/luajit
parentInitial ebuild #412451 by candrews. (diff)
downloadgentoo-2-cabf5f48858dfe34d76f99957e8f593a2161388a.tar.gz
gentoo-2-cabf5f48858dfe34d76f99957e8f593a2161388a.tar.bz2
gentoo-2-cabf5f48858dfe34d76f99957e8f593a2161388a.zip
Version bump. Clean ebuild for now.
(Portage version: 2.2.0_alpha175/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'dev-lang/luajit')
-rw-r--r--dev-lang/luajit/ChangeLog8
-rw-r--r--dev-lang/luajit/luajit-2.0.1_p1.ebuild68
-rw-r--r--dev-lang/luajit/metadata.xml6
3 files changed, 81 insertions, 1 deletions
diff --git a/dev-lang/luajit/ChangeLog b/dev-lang/luajit/ChangeLog
index ee24ff920cbc..376240470d27 100644
--- a/dev-lang/luajit/ChangeLog
+++ b/dev-lang/luajit/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/luajit
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v 1.11 2013/03/05 21:54:23 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v 1.12 2013/05/28 00:59:37 rafaelmartins Exp $
+
+*luajit-2.0.1_p1 (28 May 2013)
+
+ 28 May 2013; Rafael G. Martins <rafaelmartins@gentoo.org>
+ +luajit-2.0.1_p1.ebuild, metadata.xml:
+ Version bump. Clean ebuild for now.
05 Mar 2013; Sébastien Fabbro <bicatali@gentoo.org> luajit-2.0.0.ebuild:
Keyword amd64-linux and x86-linux
diff --git a/dev-lang/luajit/luajit-2.0.1_p1.ebuild b/dev-lang/luajit/luajit-2.0.1_p1.ebuild
new file mode 100644
index 000000000000..d086cd2c11df
--- /dev/null
+++ b/dev-lang/luajit/luajit-2.0.1_p1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/luajit-2.0.1_p1.ebuild,v 1.1 2013/05/28 00:59:37 rafaelmartins Exp $
+
+EAPI=5
+
+inherit eutils multilib pax-utils versionator toolchain-funcs
+
+MY_PV="$(get_version_component_range 1-3)"
+MY_P="LuaJIT-${MY_PV}"
+if [[ $(get_version_component_range 4) != "" ]]; then
+ HOTFIX="v${PV}"
+ HOTFIX="${HOTFIX/_p/_hotfix}.patch"
+fi
+
+DESCRIPTION="Just-In-Time Compiler for the Lua programming language"
+HOMEPAGE="http://luajit.org/"
+SRC_URI="http://luajit.org/download/${MY_P}.tar.gz
+ ${HOTFIX:+http://luajit.org/download/${HOTFIX}}"
+
+LICENSE="MIT"
+# this should probably be pkgmoved to 2.0 for sake of consistency.
+SLOT="2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="lua52compat"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare(){
+ if [[ -n ${HOTFIX} ]]; then
+ epatch "${DISTDIR}/${HOTFIX}"
+ fi
+ sed -i 's,PREFIX= /usr/local,PREFIX= /usr,' Makefile || die 'sed failed.'
+}
+
+src_compile() {
+ emake \
+ Q= \
+ PREFIX=/usr \
+ DESTDIR="${D}" \
+ HOST_CC="$(tc-getBUILD_CC)" \
+ STATIC_CC="$(tc-getCC)" \
+ DYNAMIC_CC="$(tc-getCC) -fPIC" \
+ TARGET_LD="$(tc-getCC)" \
+ TARGET_AR="$(tc-getAR) rcus" \
+ TARGET_STRIP="true" \
+ LDCONFIG="true" \
+ LIBDIR="$(get_libdir)" \
+ XCFLAGS="$(usex lua52compat "-DLUAJIT_ENABLE_LUA52COMPAT" "")"
+}
+
+src_install(){
+ emake install \
+ DESTDIR="${D}" \
+ HOST_CC="$(tc-getBUILD_CC)" \
+ STATIC_CC="$(tc-getCC)" \
+ DYNAMIC_CC="$(tc-getCC) -fPIC" \
+ TARGET_LD="$(tc-getCC)" \
+ TARGET_AR="$(tc-getAR) rcus" \
+ TARGET_STRIP="true" \
+ LDCONFIG="true" \
+ LIBDIR="$(get_libdir)"
+
+ pax-mark m "${ED}usr/bin/luajit-${MY_PV}"
+
+ cd "${S}"/doc
+ dohtml -r *
+}
diff --git a/dev-lang/luajit/metadata.xml b/dev-lang/luajit/metadata.xml
index 6997ffdd77ec..e3ee128b8a2c 100644
--- a/dev-lang/luajit/metadata.xml
+++ b/dev-lang/luajit/metadata.xml
@@ -5,6 +5,12 @@
<email>rafaelmartins@gentoo.org</email>
<name>Rafael G. Martins</name>
</maintainer>
+ <use>
+ <flag name='lua52compat'>
+ Enable some upwards-compatible features
+ from Lua 5.2 that are unlikely to break existing code.
+ </flag>
+ </use>
<longdescription lang="en">
LuaJIT is a Just-In-Time Compiler for the Lua programming language.
</longdescription>