summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Martins <rafaelmartins@gentoo.org>2012-05-13 20:37:14 +0000
committerRafael Martins <rafaelmartins@gentoo.org>2012-05-13 20:37:14 +0000
commit9d4379afcbbb0feca7e5eb3ca686ff676cf2b752 (patch)
treecb6f29d027a3bc3b0cd0a5be0be08971bd358a74 /dev-lang
parentRestrict tests, bug #404989. (diff)
downloadhistorical-9d4379afcbbb0feca7e5eb3ca686ff676cf2b752.tar.gz
historical-9d4379afcbbb0feca7e5eb3ca686ff676cf2b752.tar.bz2
historical-9d4379afcbbb0feca7e5eb3ca686ff676cf2b752.zip
Version bump. Thanks to Paulo Matias.
Package-Manager: portage-2.2.0_alpha100/cvs/Linux x86_64
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/luajit/ChangeLog10
-rw-r--r--dev-lang/luajit/Manifest15
-rw-r--r--dev-lang/luajit/files/LuaJIT-2.0.0-beta10-gentoo.patch171
-rw-r--r--dev-lang/luajit/luajit-2.0.0_beta10.ebuild65
4 files changed, 248 insertions, 13 deletions
diff --git a/dev-lang/luajit/ChangeLog b/dev-lang/luajit/ChangeLog
index 022fccf81897..6201ffb6e7a0 100644
--- a/dev-lang/luajit/ChangeLog
+++ b/dev-lang/luajit/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/luajit
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v 1.8 2011/10/30 21:21:57 flameeyes Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v 1.9 2012/05/13 20:37:14 rafaelmartins Exp $
+
+*luajit-2.0.0_beta10 (13 May 2012)
+
+ 13 May 2012; Rafael G. Martins <rafaelmartins@gentoo.org>
+ +luajit-2.0.0_beta10.ebuild, +files/LuaJIT-2.0.0-beta10-gentoo.patch:
+ Version bump. Thanks to Paulo Matias.
*luajit-2.0.0_beta8_p1 (30 Oct 2011)
diff --git a/dev-lang/luajit/Manifest b/dev-lang/luajit/Manifest
index 78333b9be9fe..58a7f286e6d8 100644
--- a/dev-lang/luajit/Manifest
+++ b/dev-lang/luajit/Manifest
@@ -1,20 +1,13 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+AUX LuaJIT-2.0.0-beta10-gentoo.patch 6439 RMD160 4af600a463e1d45c07628da3cd575068f34e747f SHA1 bfb6554f0cd3478b2fabec2b1c3cedf396c346d4 SHA256 d50dc2bd8ef6acc90376aac756f07c771bec49935b38c29d6481db22c3bf7cae
AUX LuaJIT-2.0.0-beta8-gentoo.patch 6330 RMD160 8913a94dc4fddafa1218b0a2720f58f05ebc9e3e SHA1 dd1bb25267bf356c162fc90056fe4e85775568d8 SHA256 3b0516e66741e302972e3708246cb4dad4d27e679cd4b050b61165c60cbbafaf
DIST LuaJIT-1.1.6.tar.gz 364447 RMD160 9ad03d5a88bb15548edd2f7263f79cc99be4a7c6 SHA1 cfe7e3f84b3641bba237164d2ad1c3d37f41cada SHA256 c3dee987635540f64ebe834aa6c8ef17e0c0b8248324ee20953f50c98be2dd8a
+DIST LuaJIT-2.0.0-beta10.tar.gz 890830 RMD160 7159791c2ad27856cb39e62a9b9f337a756ab9d2 SHA1 560d06621ea616bea1d67867faa235d608040396 SHA256 750e9317ca2c61fa17e739abc582c55c1fe69749ba65442dfd7f04ce20cf9ff6
DIST LuaJIT-2.0.0-beta7.tar.gz 674740 RMD160 3a76a0f5c09712f1c99556b8978ed9de039f4d4d SHA1 77657de3cf7794437daac29a03870515213d0711 SHA256 ab28c05d7d306c6a678fe3f0549dcecd4373ed4ee7cb9d85444a958e584087d8
DIST LuaJIT-2.0.0-beta8.tar.gz 720393 RMD160 34af1d6fe72c76f48e9023602bdbdea20e26e6f8 SHA1 4eadd45f6dc75d7b6daefe442925649028654753 SHA256 408aaa6606dc91a37fd58f2b75d47a20f831b1d57d33d1af18721327d745653f
DIST beta8_hotfix1.patch 4876 RMD160 cb8f197a66e6fb59f6728515f75296438dce38ce SHA1 e540861975f0d44cad57efd8be616a399ac5f111 SHA256 142716faaa0dbb97938aa50179fc2ee4d3e45aab80951adfd7f96dc1fd1d7c43
EBUILD luajit-1.1.6.ebuild 1413 RMD160 30641905d6b1e5443a3abdc1db42208ba4683b48 SHA1 68ff0d192a1433997792326bc964fc29a2435228 SHA256 1d2d8804cb9e45f68b66cabc791796285b5b5e85239a8c919e2e8428045a73f9
+EBUILD luajit-2.0.0_beta10.ebuild 1618 RMD160 6822b107efc431c93a32f18023bb95a3e085dd84 SHA1 009f89ced68f7d0df4c79e3907f8218410e8b94b SHA256 b634448059ce44da892aaa63f00973b04ee9db8fdee8b24b1ea2cb759501e52e
EBUILD luajit-2.0.0_beta7.ebuild 1101 RMD160 0880a8a686576032c7364cffa21f04707a1de129 SHA1 801ab8d9342904c046f7dd84862e9955619ca5fc SHA256 3fb1f7224b7b2d242352177ffaf1be6290bafe445350eba17caf517ee5215f49
EBUILD luajit-2.0.0_beta8_p1.ebuild 1616 RMD160 d2276cbf46570bfa37094992e427881f0f9a7f43 SHA1 e7ea6e471922a8fb211bfa962796182e6c934cc1 SHA256 75e8e253b1af76209ceafb6cf7c4d991f7fea602c02de90c9c954cc6261c49af
-MISC ChangeLog 1730 RMD160 0b640a299ec36945adf8d43d5b7974804960d411 SHA1 1b219a5aef23af57684defcf781ed6131d98b98a SHA256 8a453f78e995ab2167d6508db63bd77bd60211a1da4fbf1044b5a91a4657f9a9
+MISC ChangeLog 1943 RMD160 b1cb9014865fd849c517621c2ed6a564281b9ad2 SHA1 1929c9195ab21bc58bd638ae7fb244440e85b7d9 SHA256 d08f29bb4b78b45c5dd0f1526e00e7737b56be8ebe6e72d11fc688d0f24647f1
MISC metadata.xml 373 RMD160 da4f80697b1bc0321c15f3dff3d7a1a6d5b28d60 SHA1 eb3d53a7c5a37156089a0267dcf9c9f4f146d4ae SHA256 f812cadf802f7bb17ce54888b22e0d8b25fa616ad4f0141aa1b390e6d99a7ead
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
-
-iEYEARECAAYFAk6tv9cACgkQAiZjviIA2XgUgwCg6keG1gust7f7QmEpyxqxDYOI
-xjMAoLQACikNHKHnL5rwppUMljzrkVY6
-=LSAX
------END PGP SIGNATURE-----
diff --git a/dev-lang/luajit/files/LuaJIT-2.0.0-beta10-gentoo.patch b/dev-lang/luajit/files/LuaJIT-2.0.0-beta10-gentoo.patch
new file mode 100644
index 000000000000..02bbd0729a5a
--- /dev/null
+++ b/dev-lang/luajit/files/LuaJIT-2.0.0-beta10-gentoo.patch
@@ -0,0 +1,171 @@
+diff -ru LuaJIT-2.0.0-beta10.orig/etc/luajit.pc LuaJIT-2.0.0-beta10/etc/luajit.pc
+--- LuaJIT-2.0.0-beta10.orig/etc/luajit.pc 2012-05-12 22:55:18.768282860 -0300
++++ LuaJIT-2.0.0-beta10/etc/luajit.pc 2012-05-12 22:55:48.412282447 -0300
+@@ -3,13 +3,13 @@
+ minver=0
+ relver=0
+ version=${majver}.${minver}.${relver}-beta10
+-abiver=5.1
++abiver=jit-5.1
+
+-prefix=/usr/local
++prefix=/usr
+ exec_prefix=${prefix}
+-libdir=${exec_prefix}/lib
++libdir=${exec_prefix}/@LIBDIR@
+ libname=luajit-${abiver}
+-includedir=${prefix}/include/luajit-${majver}.${minver}
++includedir=${prefix}/include/luajit-@SHORTVER@
+
+ INSTALL_LMOD=${prefix}/share/lua/${abiver}
+ INSTALL_CMOD=${prefix}/lib/lua/${abiver}
+diff -ru LuaJIT-2.0.0-beta10.orig/Makefile LuaJIT-2.0.0-beta10/Makefile
+--- LuaJIT-2.0.0-beta10.orig/Makefile 2012-05-12 22:55:18.764282863 -0300
++++ LuaJIT-2.0.0-beta10/Makefile 2012-05-12 22:58:17.928279877 -0300
+@@ -18,37 +18,38 @@
+ RELVER= 0
+ PREREL= -beta10
+ VERSION= $(MAJVER).$(MINVER).$(RELVER)$(PREREL)
+-ABIVER= 5.1
+-NODOTABIVER= 51
++SHORTVER= $(MAJVER).$(MINVER)
++ABIVER= jit-$(SHORTVER)
++NODOTSHORTVER= $(MAJVER)$(MINVER)
+
+ ##############################################################################
+ #
+ # Change the installation path as needed. This automatically adjusts
+ # the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path!
+ #
+-export PREFIX= /usr/local
++export PREFIX= /usr
+ ##############################################################################
+
+ DPREFIX= $(DESTDIR)$(PREFIX)
+ INSTALL_BIN= $(DPREFIX)/bin
+-INSTALL_LIB= $(DPREFIX)/lib
++INSTALL_LIB= $(DPREFIX)/$(LIBDIR)
+ INSTALL_SHARE= $(DPREFIX)/share
+-INSTALL_INC= $(DPREFIX)/include/luajit-$(MAJVER).$(MINVER)
++INSTALL_INC= $(DPREFIX)/include/luajit-$(SHORTVER)
+
+-INSTALL_JITLIB= $(INSTALL_SHARE)/luajit-$(VERSION)/jit
++INSTALL_JITLIB= $(INSTALL_SHARE)/luajit-$(SHORTVER)/jit
+ INSTALL_LMOD= $(INSTALL_SHARE)/lua/$(ABIVER)
+ INSTALL_CMOD= $(INSTALL_LIB)/lua/$(ABIVER)
+ INSTALL_MAN= $(INSTALL_SHARE)/man/man1
+ INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
+
+-INSTALL_TNAME= luajit-$(VERSION)
++INSTALL_TNAME= luajit-$(SHORTVER)
+ INSTALL_TSYMNAME= luajit
+-INSTALL_ANAME= libluajit-$(ABIVER).a
+-INSTALL_SONAME= libluajit-$(ABIVER).so.$(MAJVER).$(MINVER).$(RELVER)
+-INSTALL_SOSHORT= libluajit-$(ABIVER).so
+-INSTALL_DYLIBNAME= libluajit-$(NODOTABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib
+-INSTALL_DYLIBSHORT1= libluajit-$(NODOTABIVER).dylib
+-INSTALL_DYLIBSHORT2= libluajit-$(NODOTABIVER).$(MAJVER).dylib
++INSTALL_ANAME= libluajit-$(SHORTVER).a
++INSTALL_SONAME= libluajit-$(SHORTVER).so.$(RELVER)
++INSTALL_SOSHORT= libluajit-$(SHORTVER).so
++INSTALL_DYLIBNAME= libluajit-$(NODOTSHORTVER).$(MAJVER).$(MINVER).$(RELVER).dylib
++INSTALL_DYLIBSHORT1= libluajit-$(NODOTSHORTVER).dylib
++INSTALL_DYLIBSHORT2= libluajit-$(NODOTSHORTVER).$(MAJVER).dylib
+ INSTALL_PCNAME= luajit.pc
+
+ INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME)
+@@ -57,7 +58,7 @@
+ INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT)
+ INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME)
+ INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME)
+-INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)
++INSTALL_PC= $(INSTALL_PKGCONFIG)/luajit-$(SHORTVER).pc
+
+ INSTALL_DIRS= $(INSTALL_BIN) $(INSTALL_LIB) $(INSTALL_INC) $(INSTALL_MAN) \
+ $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB) $(INSTALL_LMOD) $(INSTALL_CMOD)
+@@ -68,7 +69,7 @@
+ INSTALL_X= install -m 0755
+ INSTALL_F= install -m 0644
+ LDCONFIG= ldconfig -n
+-SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|"
++SED_PC= sed -e "s|@SHORTVER@|$(SHORTVER)|" -e "s|@LIBDIR@|$(LIBDIR)|"
+
+ FILE_T= luajit
+ FILE_A= libluajit.a
+@@ -108,7 +109,7 @@
+ $(LDCONFIG) $(INSTALL_LIB) && \
+ $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
+ $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
+- cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
++ cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)/luajit-$(SHORTVER).1
+ cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
+ $(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
+ $(RM) $(FILE_PC).tmp
+diff -ru LuaJIT-2.0.0-beta10.orig/src/luaconf.h LuaJIT-2.0.0-beta10/src/luaconf.h
+--- LuaJIT-2.0.0-beta10.orig/src/luaconf.h 2012-05-12 22:55:18.776282852 -0300
++++ LuaJIT-2.0.0-beta10/src/luaconf.h 2012-05-12 23:00:29.024277594 -0300
+@@ -22,16 +22,16 @@
+ #define LUA_CPATH_DEFAULT \
+ ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
+ #else
+-#define LUA_ROOT "/usr/local/"
+-#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+-#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
++#define LUA_ROOT "/usr/"
++#define LUA_LDIR LUA_ROOT "share/lua/jit-2.0/"
++#define LUA_CDIR LUA_ROOT "lib/lua/jit-2.0/"
+ #ifdef LUA_XROOT
+-#define LUA_JDIR LUA_XROOT "share/luajit-2.0.0-beta10/"
++#define LUA_JDIR LUA_XROOT "share/luajit-2.0/"
+ #define LUA_XPATH \
+- ";" LUA_XROOT "share/lua/5.1/?.lua;" LUA_XROOT "share/lua/5.1/?/init.lua"
+-#define LUA_XCPATH LUA_XROOT "lib/lua/5.1/?.so;"
++ ";" LUA_XROOT "share/lua/5.1/?.lua;" LUA_XROOT "share/lua/jit-2.0/?/init.lua"
++#define LUA_XCPATH LUA_XROOT "lib/lua/jit-2.0/?.so;"
+ #else
+-#define LUA_JDIR LUA_ROOT "share/luajit-2.0.0-beta10/"
++#define LUA_JDIR LUA_ROOT "share/luajit-2.0/"
+ #define LUA_XPATH
+ #define LUA_XCPATH
+ #endif
+diff -ru LuaJIT-2.0.0-beta10.orig/src/Makefile LuaJIT-2.0.0-beta10/src/Makefile
+--- LuaJIT-2.0.0-beta10.orig/src/Makefile 2012-05-12 22:55:18.772282855 -0300
++++ LuaJIT-2.0.0-beta10/src/Makefile 2012-05-12 23:01:37.340276596 -0300
+@@ -13,8 +13,8 @@
+ MAJVER= 2
+ MINVER= 0
+ RELVER= 0
+-ABIVER= 5.1
+-NODOTABIVER= 51
++SHORTVER= $(MAJVER).$(MINVER)
++NODOTSHORTVER= $(MAJVER)$(MINVER)
+
+ ##############################################################################
+ ############################# COMPILER OPTIONS #############################
+@@ -204,10 +204,9 @@
+ TARGET_AR= $(CROSS)ar rcus
+ TARGET_STRIP= $(CROSS)strip
+
+-TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
+-TARGET_DYLIBNAME= libluajit-$(NODOTABIVER).$(MAJVER).dylib
+-TARGET_DYLIBPATH= $(or $(PREFIX),/usr/local)/lib/$(TARGET_DYLIBNAME)
+-TARGET_DLLNAME= lua$(NODOTABIVER).dll
++TARGET_SONAME= libluajit-$(SHORTVER).so.$(RELVER)
++TARGET_DYLIBNAME= libluajit-$(NODOTSHORTVER).$(MAJVER).$(MINVER).$(RELVER).dylib
++TARGET_DLLNAME= lua$(NODOTSHORTVER).dll
+ TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
+ TARGET_DYNXLDOPTS=
+
+@@ -476,10 +475,8 @@
+ endif
+ endif
+
+-Q= @
+-E= @echo
+-#Q=
+-#E= @:
++Q=
++E= @:
+
+ ##############################################################################
+ # Make targets.
diff --git a/dev-lang/luajit/luajit-2.0.0_beta10.ebuild b/dev-lang/luajit/luajit-2.0.0_beta10.ebuild
new file mode 100644
index 000000000000..b1ad39cb8f9f
--- /dev/null
+++ b/dev-lang/luajit/luajit-2.0.0_beta10.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2012 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_beta10.ebuild,v 1.1 2012/05/13 20:37:14 rafaelmartins Exp $
+
+EAPI="4"
+
+inherit eutils multilib pax-utils versionator toolchain-funcs
+
+MY_P="LuaJIT-$(get_version_component_range 1-3)-$(get_version_component_range 4)"
+if [[ $(get_version_component_range 5) != "" ]]; then
+ HOTFIX="$(get_version_component_range 4-5)"
+ 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"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare(){
+ if [[ -n ${HOTFIX} ]]; then
+ epatch "${DISTDIR}/${HOTFIX}"
+ fi
+
+ epatch "${FILESDIR}"/${MY_P}-gentoo.patch
+}
+
+src_compile() {
+ emake \
+ 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)"
+}
+
+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 "${D}usr/bin/luajit-2.0"
+
+ cd "${S}"/doc
+ dohtml -r *
+}