Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/languages
In directory 
sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv14603/10.4/stable/main/finkinfo/10.4-EOL/languages

Modified Files:
        lua.info lua.patch lua51.info 
Added Files:
        lua52.info 
Log Message:
update lua to newer update version and add lua52 in agreement from maintainers.

Index: lua.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/languages/lua.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- lua.info    11 Jul 2011 04:08:32 -0000      1.1
+++ lua.info    2 Aug 2013 22:02:14 -0000       1.2
@@ -1,10 +1,10 @@
 Package: lua
-Version: 5.0.2
-Revision: 1007
+Version: 5.0.3
+Revision: 1
 Epoch: 1
 Description: Small, compilable scripting language
 PatchFile: %n.patch
-PatchFile-MD5: bb4e66389ffa4adbd609f0b600a60bdf
+PatchFile-MD5: f2c7e9b9c0fd040f63f85d58af04ea7d
 PatchScript: sed -e 's|@prefix@|%p|g' -e 's|@version@|%v|g' <%{PatchFile} | 
patch -p1
 DescDetail: <<
 Lua is a programming language originally designed for extending applications,
@@ -31,9 +31,9 @@
 BuildDepends: fink (>= 0.24.12), readline5
 Depends: readline5-shlibs, %N-shlibs (= %e:%v-%r)
 BuildDependsOnly: false
-Source-MD5: dea74646b7e5c621fef7174df83c34b1
-Conflicts: lua51, lua51-dev
-Replaces: lua51, lua51-dev
+Source-MD5: feee27132056de2949ce499b0ef4c480
+Conflicts: lua51, lua51-dev, lua52-dev
+Replaces:  lua51, lua51-dev, lua52-dev
 CompileScript: <<
  make
  make so

Index: lua.patch
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/languages/lua.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- lua.patch   11 Jul 2011 04:08:32 -0000      1.1
+++ lua.patch   2 Aug 2013 22:02:14 -0000       1.2
@@ -1,6 +1,6 @@
-diff -ru lua-5.0.2-orig/Makefile lua-5.0.2/Makefile
---- lua-5.0.2-orig/Makefile    2004-03-12 02:50:55.000000000 +0100
-+++ lua-5.0.2/Makefile 2005-09-09 18:43:34.000000000 +0200
+diff -ru lua-5.0.3-orig/Makefile lua-5.0.3/Makefile
+--- lua-5.0.3-orig/Makefile    2004-03-12 02:50:55.000000000 +0100
++++ lua-5.0.3/Makefile 2005-09-09 18:43:34.000000000 +0200
 @@ -38,9 +38,9 @@
  
  # shared libraries (for Linux)
@@ -25,9 +25,9 @@
  
  # clean shared libraries
  soclean:
-diff -ru lua-5.0.2-orig/config lua-5.0.2/config
---- lua-5.0.2-orig/config      2003-04-11 16:00:41.000000000 +0200
-+++ lua-5.0.2/config   2005-09-09 18:47:34.000000000 +0200
+diff -ru lua-5.0.3-orig/config lua-5.0.3/config
+--- lua-5.0.3-orig/config      2003-04-11 16:00:41.000000000 +0200
++++ lua-5.0.3/config   2005-09-09 18:47:34.000000000 +0200
 @@ -25,7 +25,7 @@
  # interface (e.g., Linux, Solaris, IRIX, BSD, AIX, HPUX, and probably others),
  # uncomment the next two lines.
@@ -88,10 +88,10 @@
  #INSTALL_EXEC= install -m 0755
  #INSTALL_DATA= install -m 0644
  
-diff -ru lua-5.0.2-orig/src/lib/lbaselib.c lua-5.0.2/src/lib/lbaselib.c
---- lua-5.0.2-orig/src/lib/lbaselib.c  2004-03-04 01:45:13.000000000 +0100
-+++ lua-5.0.2/src/lib/lbaselib.c       2005-09-09 18:43:34.000000000 +0200
-@@ -409,7 +409,7 @@
+diff -ru lua-5.0.3-orig/src/lib/lbaselib.c lua-5.0.3/src/lib/lbaselib.c
+--- lua-5.0.3-orig/src/lib/lbaselib.c  2004-03-04 01:45:13.000000000 +0100
++++ lua-5.0.3/src/lib/lbaselib.c       2005-09-09 18:43:34.000000000 +0200
+@@ -411,7 +411,7 @@
  #endif
  
  #ifndef LUA_PATH_DEFAULT

Index: lua51.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/languages/lua51.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- lua51.info  11 Jul 2011 04:08:32 -0000      1.1
+++ lua51.info  2 Aug 2013 22:02:14 -0000       1.2
@@ -28,6 +28,7 @@
 #       514 LuaRocks (automatically adds '-lluarocks.require')
 #
 # History:
+#   KMS 02-Aug-2013: 5.1.5-1 Upstream new version (bugfix)
 #   AKa 19-Oct-2008: 5.1.4-1 Disabled 'lua' and 'lua-shlibs' as splitfoffs 
(for now)
 #                            Added conflict to 'lua' and 'lua-shlibs' in -dev 
and -shlibs
 #   AKa 22-Aug-2008: 5.1.4-0 Upstream new version (bugfix)
@@ -93,19 +94,23 @@
 #       to bother, of course. :)
 #
 Package: lua51
-Version: 5.1.4
+Version: 5.1.5
 Revision: 1
 Depends: lua51-shlibs
-Conflicts: lua (<< 1:5.0.3-0), lua51-bin
-Replaces: lua51-sdl (<< 5.1.1-6), lua51-bin, lua51-sdl-bin
+Conflicts: lua (<< 1:5.0.4-0), lua51-bin
+Replaces: lua, lua51-sdl (<< 5.1.1-6), lua51-bin, lua51-sdl-bin
 Recommends: luarocks
 
 # vital for trying out Lua alpha/beta packages
 SourceRename: lua-%v.tar.gz
 
-# 5.1.4
+# 5.1.5
 Source: http://www.lua.org/ftp/lua-%v.tar.gz
-Source-MD5: d0870f2de55d59c1c8419f36e8fac150
+Source-MD5: 2e115fe26e435e33b0d5c022e4490567
+
+# 5.1.4
+#Source: http://www.lua.org/ftp/lua-%v.tar.gz
+#Source-MD5: d0870f2de55d59c1c8419f36e8fac150
 
 # 5.1.3
 #Source: http://www.lua.org/ftp/lua-%v.tar.gz
@@ -197,12 +202,12 @@
  fi
  rm -f lua.o luac.o
  gcc -dynamiclib -install_name %p/lib/liblua.5.1.dylib \
-    -compatibility_version 5.1 -current_version 5.1.4 \
-    -o liblua.5.1.4.dylib *.o
+    -compatibility_version 5.1 -current_version 5.1.5 \
+    -o liblua.5.1.5.dylib *.o
  if [ `/usr/bin/sw_vers -productVersion | cut -d'.' -f1-2` == 10.3 ]; then 
-    gcc -fno-common -DLUA_USE_MACOSX -L. -llua.5.1.4 lua.c -o lua
+    gcc -fno-common -DLUA_USE_MACOSX -L. -llua.5.1.5 lua.c -o lua
  else
-    gcc -fno-common -DLUA_USE_LINUX -lreadline -L. -llua.5.1.4 lua.c -o lua
+    gcc -fno-common -DLUA_USE_LINUX -lreadline -L. -llua.5.1.5 lua.c -o lua
  fi
 <<
 
@@ -273,7 +278,7 @@
 SplitOff: <<
 Package: lua51-shlibs
 Depends:
-Conflicts: lua-shlibs (<< 1:5.0.3-0)
+Conflicts: lua-shlibs (<< 1:5.0.4-0)
 
 #---
 # 1. install -s strips the binaries of debug info
@@ -287,8 +292,8 @@
       install
  rm -rf %i/bin %i/man %i/include
  rm %i/lib/*.a
- cp src/liblua.5.1.4.dylib       %i/lib/liblua.5.1.4.dylib
- ln -s %p/lib/liblua.5.1.4.dylib %i/lib/liblua.5.1.dylib
+ cp src/liblua.5.1.5.dylib       %i/lib/liblua.5.1.5.dylib
+ ln -s %p/lib/liblua.5.1.5.dylib %i/lib/liblua.5.1.dylib
 <<
 
 DocFiles: COPYRIGHT HISTORY INSTALL README
@@ -318,8 +323,8 @@
 SplitOff2: <<
 Package: lua51-dev
 Depends: lua51-shlibs (= %v-%r)
-Conflicts: lua (<< 1:5.0.3-0), lua50-dev
-Replaces:
+Conflicts: lua (<< 1:5.0.4-0), lua50-dev, lua52-dev
+Replaces:  lua (<< 1:5.0.4-0), lua50-dev, lua52-dev
 BuildDependsOnly: True
 Recommends: pkgconfig, tolua
 
@@ -337,7 +342,7 @@
       install
  rm -rf %i/bin
  rm -rf %i/man
- ln -s %p/lib/liblua.5.1.4.dylib %i/lib/liblua.dylib
+ ln -s %p/lib/liblua.5.1.5.dylib %i/lib/liblua.dylib
  cp etc/lua.hpp %i/include/lua.hpp
  mkdir -p %i/lib
  mkdir -p %i/lib/pkgconfig

--- NEW FILE: lua52.info ---
Package: lua52
Version: 5.2.2
Revision: 1
Description: Small and fast embeddable scripting language
License: BSD

# Dependencies:
Depends: lua52-shlibs
Conflicts: lua (<< 1:5.0.4-0)
Replaces:  lua (<< 1:5.0.4-0)
Recommends: luarocks

# Unpack Phase:
Source: http://www.lua.org/ftp/lua-%v.tar.gz
Source-MD5: efbb645e897eae37cad4344ce8b0a614

Patchscript: <<
#!/bin/sh -ev
# create the pkg-config file lua.pc
cat >%b/lua.pc <<EOFCFG
# lua.pc -- pkg-config data for Lua
# setup by KMS for fink on Mac OS X

# the version can be extracted from the Makefile
# grep '^V=' Makefile
# grep '^R=' Makefile
# also 'make pc' outputs version and canonical vars

shortversion= 5.2
version= 5.2.2

prefix=%p
INSTALL_BIN= \${prefix}/bin 
INSTALL_INC= \${prefix}/include 
INSTALL_LIB= \${prefix}/lib 
INSTALL_MAN= \${prefix}/man/man1 
INSTALL_LMOD= \${prefix}/share/lua/\${shortversion} 
INSTALL_CMOD= \${prefix}/lib/lua/\${shortversion} 

# canonical vars 
exec_prefix= \${prefix}
libdir= \${exec_prefix}/lib
includedir= \${prefix}/include

Name: Lua
Description: A Scripting Language
Version: \${version}
URL: http://www.lua.org/
Requires:
Libs: -L\${libdir} -llua
Libs.private: -lm
Cflags: -I\${includedir}

# (end of lua.pc)
EOFCFG
<<

# Compile Phase:
CompileScript: <<
#!/bin/sh -ev
# compile
  make macosx
  rm src/lua.o src/luac.o
  rm src/luac
# keep lua for the TestScript
  mv src/lua src/lua_test
# create dylib and its symlinks
  gcc -dynamiclib -install_name %p/lib/liblua.5.2.dylib \
    -compatibility_version 5.2.0 -current_version %v      \
    -o liblua.%v.dylib src/*.o
  ln -s liblua.%v.dylib liblua.5.2.dylib
# create binaries using dylibs
  cd src
  gcc -fno-common -DLUA_USE_LINUX -lreadline -L.. -llua.%v lua.c  -o lua
  gcc -fno-common -DLUA_USE_LINUX -lreadline -L.. -llua.%v luac.c -o luac
<<

# Install Phase:
InstallScript: <<
#!/bin/sh -ev
  make install INSTALL_TOP=%i INSTALL_MAN=%i/share/man/man1
  install -d            %i/lib/pkgconfig/
  install -m 644 lua.pc %i/lib/pkgconfig/
  install -m 644 liblua.%v.dylib %i/lib
  ln -s liblua.%v.dylib %i/lib/liblua.5.2.dylib
# rename
  mv %i/bin/lua  %i/bin/lua52
  mv %i/bin/luac %i/bin/luac52
  mv %i/share/man/man1/lua.1  %i/share/man/man1/lua52.1
  mv %i/share/man/man1/luac.1 %i/share/man/man1/luac52.1

# remove some empty cruft
  rm -rf %i/lib/lua
  rm -rf %i/share/lua
<<

DocFiles: <<
  doc/contents.html doc/logo.gif doc/lua.css doc/manual.css
  doc/manual.html doc/osi-certified-72x60.png doc/readme.html README
<<

# Use of 'update-alternatives' allows _any_ Lua version to order the 'lua'
# and 'luac' commands to point to their installed binary. The one with 
# strongest priority (version) wins.
#
# Note: 'man update-alternatives' for info on usage.
#       No need for '#!/bin/sh -ev' prefix for if/then to work.

PostInstScript: <<
  update-alternatives --install %p/bin/lua lua %p/bin/lua52 520 \
        --slave %p/share/man/man1/lua.1 lua.1 %p/share/man/man1/lua52.1
  update-alternatives --install %p/bin/luac luac %p/bin/luac52 520 \
    --slave %p/share/man/man1/luac.1 luac.1 %p/share/man/man1/luac52.1
<<

PreRmScript: <<
  if [ $1 != "upgrade" ]; then
    update-alternatives --remove lua  %p/bin/lua52
    update-alternatives --remove luac %p/bin/luac52
  fi
<<

# Test Phase:
# make test fails with missing dylib. Fix: Use special version lua_test 
# with static lib.
InfoTest: <<
  TestScript: <<
    src/lua_test -v || exit 2
  <<
  TestSuiteSize: small
<<

DescDetail: <<
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) 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. 

A fundamental concept in the design of Lua is to provide meta-mechanisms 
for implementing features, instead of providing a host of features directly in
the language. For example, although Lua is not a pure object-oriented
language, it does provide meta-mechanisms for implementing classes and
inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the
language small, while allowing the semantics to be extended in unconventional
ways. Extensible semantics is a distinguishing feature of Lua. 

Lua is implemented as a small library of C functions, written in ANSI C, 
and compiles unmodified in all known platforms. The implementation goals 
are simplicity, efficiency, portability, and low embedding cost. 
<<

DescPort: <<
Note: lua52 replaces older 5.0 'lua' package, but co-exists with lua51 
          and possible future packages, using 'update-alternatives' for the 
          common 'lua' command (otherwise, no conflicts).
Note: Stock Lua compilation does not create dynamic libraries; we do it 
          here. For some reason, cannot be done from 'liblua.a' directly, 
          that will lose all the symbols. :((at least was so on 
10.4-transitional) 
<<

DescPackaging: <<
Lua offers four header files for the creation of C/Lua bindings:
 
  lua.h, lualib.h, luaconf.h, and lauxlib.h

These are in the lua52-dev package, which will conflict with lua51-dev. 
User can have several Lua versions installed, but will only be able to 
develop C bindings with one of them at a time.
<<

SplitOff: <<
Package: lua52-shlibs
Conflicts: lua-shlibs (<< 1:5.0.4-0)
Replaces:  lua-shlibs (<< 1:5.0.4-0)

Description: Shared libraries for linking Lua 5.2 into an application

DocFiles: README

Files: <<
  lib/liblua.%v.dylib
  lib/liblua.5.2.dylib
<<

Shlibs: <<
  %p/lib/liblua.5.2.dylib 5.2.0 lua52-shlibs (>= 5.2.2-0)
<<
<<

SplitOff2: <<
Package: lua52-dev
Depends: lua52-shlibs (= %v-%r)
Conflicts: lua (<< 1:5.0.4-0), lua50-dev, lua51-dev
Replaces:  lua (<< 1:5.0.4-0), lua50-dev, lua51-dev
BuildDependsOnly: True
Recommends: pkgconfig, tolua

Description: Files needed to compile source against Lua C API

InstallScript: <<
#!/bin/sh -ev
  mkdir %i/lib
  ln -s liblua.%v.dylib %i/lib/liblua.dylib
<<

Files: <<
  include
  lib/pkgconfig
  lib/liblua.a
<<

DocFiles: README

DescDetail: <<
  For details about Lua/C API:
  http://www.lua.org/manual/5.2/manual.html#3
<<
<<

Homepage: http://www.lua.org
Maintainer: Karl-Michael Schindler <karl-michael.schind...@web.de>


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to