summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Glagolev2011-12-17 07:20:34 +0400
committerVlad Glagolev2011-12-17 07:20:34 +0400
commitdc7aec297e31738676a6417c2d5c530b6967f39a (patch)
treeffc37408824cefa220fa3e5a690c932f8cc5fa19
parentebd628d54164eedaedbd6fa17bb2919ee2b602a1 (diff)
lua: => 5.2
-rwxr-xr-xlua-forge/lua/BUILD1
-rwxr-xr-xlua-forge/lua/CONFLICTS3
-rwxr-xr-xlua-forge/lua/DEPENDS2
-rwxr-xr-xlua-forge/lua/DETAILS23
-rw-r--r--lua-forge/lua/HISTORY106
-rwxr-xr-xlua-forge/lua/INSTALL13
-rwxr-xr-xlua-forge/lua/PRE_BUILD8
-rw-r--r--lua-forge/lua/lua.pc31
-rw-r--r--lua-forge/lua/shared.patch24
9 files changed, 211 insertions, 0 deletions
diff --git a/lua-forge/lua/BUILD b/lua-forge/lua/BUILD
new file mode 100755
index 0000000000..a947066260
--- /dev/null
+++ b/lua-forge/lua/BUILD
@@ -0,0 +1 @@
+make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" linux
diff --git a/lua-forge/lua/CONFLICTS b/lua-forge/lua/CONFLICTS
new file mode 100755
index 0000000000..08d15213be
--- /dev/null
+++ b/lua-forge/lua/CONFLICTS
@@ -0,0 +1,3 @@
+conflicts lua4 y &&
+conflicts lua50 y &&
+conflicts lua51 y
diff --git a/lua-forge/lua/DEPENDS b/lua-forge/lua/DEPENDS
new file mode 100755
index 0000000000..97a76ba880
--- /dev/null
+++ b/lua-forge/lua/DEPENDS
@@ -0,0 +1,2 @@
+depends ncurses &&
+depends readline
diff --git a/lua-forge/lua/DETAILS b/lua-forge/lua/DETAILS
new file mode 100755
index 0000000000..960046bd5c
--- /dev/null
+++ b/lua-forge/lua/DETAILS
@@ -0,0 +1,23 @@
+ SPELL=lua
+ VERSION=5.2.0
+ SOURCE=$SPELL-$VERSION.tar.gz
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ SOURCE_URL[0]=http://www.lua.org/ftp/$SOURCE
+ SOURCE_URL[1]=http://www.tecgraf.puc-rio.br/lua/mirror/ftp/$SOURCE
+ SOURCE_HASH=sha512:48c4a35323309c983a785a320b9a5058401c8b6cc0a4296ace66ab13ecb435d5274fdbaa28498f232619bda3bdee6eae9d264421406a83e55a418e2a6e95388a
+ WEB_SITE=http://www.lua.org/
+ ENTERED=20020309
+ LICENSE[0]=MIT
+ KEYWORDS="devel"
+ SHORT="powerful, fast, light-weight, embeddable scripting language"
+cat << EOF
+Lua is a powerful light-weight programming language designed for extending
+applications. Lua is also frequently used as a general-purpose, stand-alone
+language.
+
+Lua combines simple procedural syntax with powerful data description
+constructs based on associative arrays and extensible semantics. Lua is
+dynamically typed, interpreted from bytecodes, and has automatic memory
+management with garbage collection, making it ideal for configuration,
+scripting, and rapid prototyping.
+EOF
diff --git a/lua-forge/lua/HISTORY b/lua-forge/lua/HISTORY
new file mode 100644
index 0000000000..836c51c5ea
--- /dev/null
+++ b/lua-forge/lua/HISTORY
@@ -0,0 +1,106 @@
+2011-11-17 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS: updated spell to 5.2.0; updated mirror url
+ * DEPENDS: pkgconfig isn't really needed
+ * BUILD: added CFLAGS/LDFLAGS usage
+ * INSTALL: added var handling to install into correct paths
+ * PRE_BUILD: removed dirty hacks; added notes
+ * CONFLICTS: conflicts with lua51
+ * patch-src_Makefile: renamed to shared.patch and adapted for new version
+ * lua.pc: added pkgconfig description file
+
+2008-08-22 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS: updated spell to 5.1.4
+ * PRE_BUILD: added useful comments, cleaned up
+
+2008-08-16 Vlad Glagolev <stealth@sourcemage.org>
+ * CONFLICTS: 'y' by default for deprecation of the old versions
+
+2008-04-06 Justin Boffemmyer <flux@sourcemage.org>
+ * DEPENDS: added depends pkgconfig
+
+2008-01-27 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS: updated spell to 5.1.3, fixed short desc,
+ fixed long description wrap
+ * DEPENDS: added `&&'
+
+2008-01-10 Vlad Glagolev <stealth@sourcemage.org>
+ * BUILD, DEPENDS: cleaned up
+ * INSTALL: removed the dirty hacks
+ * PRE_BUILD: added a patch for the .so compilation
+ * CONFLICTS: cleaned up, added `&&'
+ * INSTALL: install pkgconfig data file
+
+2007-04-03 Treeve Jelbert <treeve@sourcemage.org>
+ * DETAILS: updated to 5.1.2
+
+2006-12-10 Andraž "ruskie" Levstik <ruskie@mages.ath.cx>
+ * CONFLICTS: added lua50
+
+2006-09-28 Andraž "ruskie" Levstik <ruskie@mages.ath.cx>
+ * DETAILS: patchlevel++
+ * DEPENDS: added ncurses and readline
+ * INSTALL: install the .so
+ * PRE_BUILD: apply lua-5.1-dynlib.patch to build .so
+ proper MANDIRs, proper CFLAGS
+ * lua-5.1-dynlib.patch: addde to generate .so from
+ http://cvs.mandriva.com/cgi-bin/viewvc.cgi/SPECS/lua/lua-5.1-dynlib.patch?view=markup
+ * BUILD: cleanup
+
+2006-09-23 Anton Brondz <dinolinux@sourcemage.org>
+ * DETAILS: updated to 5.1.1
+
+2006-09-23 Juuso Alasuutari <iuso@sourcemage.org>
+ * PRE_BUILD: Added, fixes invalid prefix in etc/lua.pc.
+ * DETAILS: PATCHLEVEL++
+ * INSTALL: Changed install to cp.
+
+2006-09-21 Juuso Alasuutari <iuso@sourcemage.org>
+ * DETAILS: [automated] Removed BUILD_API=2.
+
+2006-08-15 Juuso Alasuutari <iuso@sourcemage.org>
+ * DETAILS: [automated] Removed UPDATED (deprecated in favor of
+ PATCHLEVEL).
+
+2006-07-01 Arjan Bouter <abouter@sourcemage.org>
+ * INSTALL: added install of lua.pc
+
+2006-05-20 Pieter Lenaerts <e-type@sourcemage.org>
+ * DETAILS: updated to 5.1
+ * BUILD, INSTALL: so targets don't exist anymore
+
+2006-03-12 Karsten Behrmann <BearPerson@sourcemage.org>
+ * DETAILS: (automated) Add KEYWORDS
+
+2005-11-29 Seth Woolley <seth@tautology.org>
+ * DETAILS: MD5 -> SHA512
+
+2005-10-07 George Sherwood <george@beernabeer.com>
+ * DETAILS, BUILD: Updated to BUILD_API=2
+ * INSTALL: Added for BUILD_API=2
+
+2005-05-10 Eric Sandall <sandalle@sourcemage.org>
+ * CONFLICTS: Typo'd lua instead of lua4
+
+2004-04-10 Eric Sandall <sandalle@sourcemage.org>
+ * CONFLICTS: Added conflicts with lua4
+
+2004-03-24 Robert Helgesson <rycee@home.se>
+ * BUILD: Cleanup. Actually install stuff *other* than the libraries as
+ well. Also added support for dynamic library loading.
+ * DETAILS: Updated to version 5.0.2. Added / at the end of WEB_SITE.
+
+2004-03-08 Eric Sandall <sandalle@sourcemage.org>
+ * BUILD: Install shared libraries (Bug #6315)
+ * DETAILS: Updated UPDATED
+ Removed MAINTAINER
+ * HISTORY: Formatted to Guru Handbook
+
+2003-04-15 Julian v. Bock <julian@wongr.net>
+ * DETAILS: set VERSION to 5.0; set LICENSE to MIT.
+
+2002-10-03 Julian v. Bock <julian@wongr.net>
+ * DETAILS: add LICENSE and MD5 fields.
+
+2002-07-09 Julian v. Bock <julian@wongr.net>
+ * DETAILS: set version to 4.0.1; set SOURCE_DIRECTORY
+ to $BUILD_DIRECTORY/$SPELL-$VERSION.
diff --git a/lua-forge/lua/INSTALL b/lua-forge/lua/INSTALL
new file mode 100755
index 0000000000..94540d175a
--- /dev/null
+++ b/lua-forge/lua/INSTALL
@@ -0,0 +1,13 @@
+make INSTALL_TOP="$INSTALL_ROOT/usr" \
+ INSTALL_MAN="$INSTALL_ROOT/usr/share/man/man1" install &&
+
+# install shared library and symlinks
+local SO="liblua.so.5.2" &&
+
+install -vm 755 "src/${SO}" "$INSTALL_ROOT/usr/lib" &&
+ln -vsf "$TRACK_ROOT/usr/lib/${SO}" "$INSTALL_ROOT/usr/lib/lualib.so" &&
+ln -vsf "$TRACK_ROOT/usr/lib/${SO}" "$INSTALL_ROOT/usr/lib/lualib.so.5" &&
+
+# install pkgconfig description file
+install -vm 755 -d "$INSTALL_ROOT/usr/lib/pkgconfig" &&
+install -vm 644 "$SPELL_DIRECTORY/lua.pc" "$INSTALL_ROOT/usr/lib/pkgconfig"
diff --git a/lua-forge/lua/PRE_BUILD b/lua-forge/lua/PRE_BUILD
new file mode 100755
index 0000000000..697b24fb29
--- /dev/null
+++ b/lua-forge/lua/PRE_BUILD
@@ -0,0 +1,8 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+# http://lua-users.org/lists/lua-l/2006-10/msg00580.html
+sedit "s:/usr/local:$INSTALL_ROOT/usr:" src/luaconf.h &&
+
+# build shared library
+patch -p0 < "$SPELL_DIRECTORY/shared.patch"
diff --git a/lua-forge/lua/lua.pc b/lua-forge/lua/lua.pc
new file mode 100644
index 0000000000..6f55d19c72
--- /dev/null
+++ b/lua-forge/lua/lua.pc
@@ -0,0 +1,31 @@
+# lua.pc -- pkg-config data for Lua
+
+# vars from install Makefile
+
+# grep '^V=' ../Makefile
+V= 5.2
+# grep '^R=' ../Makefile
+R= 5.2.0
+
+# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
+prefix= /usr
+INSTALL_BIN= ${prefix}/bin
+INSTALL_INC= ${prefix}/include
+INSTALL_LIB= ${prefix}/lib
+INSTALL_MAN= ${prefix}/share/man/man1
+INSTALL_LMOD= ${prefix}/share/lua/${V}
+INSTALL_CMOD= ${prefix}/lib/lua/${V}
+
+# canonical vars
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: Lua
+Description: An Extensible Extension Language
+Version: ${R}
+Requires:
+Libs: -L${libdir} -llua -lm
+Cflags: -I${includedir}
+
+# (end of lua.pc)
diff --git a/lua-forge/lua/shared.patch b/lua-forge/lua/shared.patch
new file mode 100644
index 0000000000..ec6b091331
--- /dev/null
+++ b/lua-forge/lua/shared.patch
@@ -0,0 +1,24 @@
+--- src/Makefile.orig 2011-09-19 16:45:14.000000000 +0400
++++ src/Makefile 2011-12-17 05:00:09.717344014 +0400
+@@ -42,8 +42,10 @@
+ LUAC_T= luac
+ LUAC_O= luac.o
+
++LUA_SO= liblua.so.5.2
++
+ ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
+ ALL_A= $(LUA_A)
+
+ # Targets start here.
+@@ -65,6 +67,9 @@
+ $(LUAC_T): $(LUAC_O) $(LUA_A)
+ $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
+
++$(LUA_SO): $(CORE_O) $(LIB_O)
++ $(CC) -o $@ -shared $(LDFLAGS) $(CORE_O) $(LIB_O)
++
+ clean:
+ $(RM) $(ALL_T) $(ALL_O)
+