[Midnightbsd-cvs] mports [17713] trunk/lang: lua 5.2
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Oct 10 07:29:41 EDT 2014
Revision: 17713
http://svnweb.midnightbsd.org/mports/?rev=17713
Author: laffer1
Date: 2014-10-10 07:29:40 -0400 (Fri, 10 Oct 2014)
Log Message:
-----------
lua 5.2
Modified Paths:
--------------
trunk/lang/Makefile
Added Paths:
-----------
trunk/lang/lua52/
trunk/lang/lua52/Makefile
trunk/lang/lua52/distinfo
trunk/lang/lua52/files/
trunk/lang/lua52/files/lua-5.2.pc.in
trunk/lang/lua52/files/patch-src__Makefile
trunk/lang/lua52/files/patch-src__liolib.c
trunk/lang/lua52/pkg-descr
trunk/lang/lua52/pkg-plist
Modified: trunk/lang/Makefile
===================================================================
--- trunk/lang/Makefile 2014-10-10 11:24:59 UTC (rev 17712)
+++ trunk/lang/Makefile 2014-10-10 11:29:40 UTC (rev 17713)
@@ -35,6 +35,7 @@
SUBDIR += linux-f10-tcl85
SUBDIR += linux-libperl5.8
SUBDIR += lua51
+SUBDIR += lua52
SUBDIR += mawk
SUBDIR += mono
SUBDIR += nawk
Added: trunk/lang/lua52/Makefile
===================================================================
--- trunk/lang/lua52/Makefile (rev 0)
+++ trunk/lang/lua52/Makefile 2014-10-10 11:29:40 UTC (rev 17713)
@@ -0,0 +1,74 @@
+# Created by: GreenDog <fiziologus at gmail.com>
+# $MidnightBSD$
+# $FreeBSD: head/lang/lua52/Makefile 359938 2014-06-30 22:49:27Z bapt $
+
+PORTNAME= lua
+PORTVERSION= 5.2.3
+CATEGORIES= lang
+MASTER_SITES= http://www.lua.org/ftp/
+PKGNAMESUFFIX= 52
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Small, compilable scripting language providing easy access to C code
+
+LICENSE= mit
+
+FAKE_OPTS= prefixhack
+LUA_VER= 5.2
+USES= readline
+USE_LDCONFIG= yes
+
+MAKE_ARGS= __MAKE_CONF=${NONEXISTENT}
+LDFLAGS+= -lm -pthread
+BUILD_WRKSRC= ${WRKSRC}/src
+MAKE_ARGS+= MYCFLAGS="${CFLAGS} ${CPPFLAGS} -DLUA_USE_LINUX" \
+ MYLDFLAGS="${LDFLAGS} -Wl,-E -lreadline" \
+ CC="${CC}" \
+ LUA_T=lua52 \
+ LUAC_T=luac52 \
+ LUA_A=liblua-${LUA_VER}.a \
+ LUA_SO=liblua-${LUA_VER}.so \
+ LUA_SONAME=liblua-${LUA_VER}.so \
+ TO_BIN="lua52 luac52" \
+ TO_LIB="liblua-${LUA_VER}.a liblua-${LUA_VER}.so" \
+ INSTALL_TOP=${PREFIX} \
+ INSTALL_INC=${FAKE_DESTDIR}${TRUE_PREFIX}/include/lua52 \
+ INSTALL_EXEC="${INSTALL_PROGRAM}"
+FAKE_MAKEARGS+= ${MAKE_ARGS}
+
+# Cope with the lack of support for Lua 5.2 in bsd.lua.mk. These
+# overrides, which are required below, should be removed once bsd.lua.mk
+# understands this lua version.
+LUA_PREFIX?= ${PREFIX}
+LUA_SUBDIR?= lua${PKGNAMESUFFIX}
+LUA_INCDIR?= ${LUA_PREFIX}/include/${LUA_SUBDIR}
+LUA_LIBDIR?= ${LUA_PREFIX}/lib
+
+SUB_FILES= lua-${LUA_VER}.pc
+SUB_LIST= version=${PORTVERSION} \
+ includedir=${LUA_INCDIR} \
+ libdir=${LUA_LIBDIR} \
+ soname=lua-${LUA_VER}
+
+CFLAGS_amd64= -fPIC
+
+post-patch:
+ @${REINPLACE_CMD} -Ee \
+ '/^INSTALL_.*=/s/INSTALL_TOP/prefix/ ; \
+ s|/usr/local|${PREFIX}|' \
+ ${WRKSRC}/Makefile ${WRKSRC}/src/Makefile
+ @${REINPLACE_CMD} -e 's,rand *(,random(,g' \
+ ${WRKSRC}/src/lmathlib.c
+ @${REINPLACE_CMD} -e "/LUA_ROOT/s|/usr/local|${LUA_PREFIX}|" \
+ ${WRKSRC}/src/luaconf.h
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblua-${LUA_VER}.so
+ @${MV} ${PREFIX}/man/man1/lua.1 \
+ ${PREFIX}/man/man1/lua52.1
+ @${MV} ${PREFIX}/man/man1/luac.1 \
+ ${PREFIX}/man/man1/luac52.1
+ ${INSTALL_DATA} ${WRKDIR}/lua-${LUA_VER}.pc \
+ ${PREFIX}/libdata/pkgconfig
+
+.include <bsd.port.mk>
Property changes on: trunk/lang/lua52/Makefile
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/lang/lua52/distinfo
===================================================================
--- trunk/lang/lua52/distinfo (rev 0)
+++ trunk/lang/lua52/distinfo 2014-10-10 11:29:40 UTC (rev 17713)
@@ -0,0 +1,2 @@
+SHA256 (lua-5.2.3.tar.gz) = 13c2fb97961381f7d06d5b5cea55b743c163800896fd5c5e2356201d3619002d
+SIZE (lua-5.2.3.tar.gz) = 251195
Property changes on: trunk/lang/lua52/distinfo
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/lang/lua52/files/lua-5.2.pc.in
===================================================================
--- trunk/lang/lua52/files/lua-5.2.pc.in (rev 0)
+++ trunk/lang/lua52/files/lua-5.2.pc.in 2014-10-10 11:29:40 UTC (rev 17713)
@@ -0,0 +1,10 @@
+version=%%version%%
+libdir=%%libdir%%
+includedir=%%includedir%%
+soname=%%soname%%
+
+Name: Lua
+Description: An Extensible Extension Language
+Version: ${version}
+Libs: -L${libdir} -l${soname} -lm
+Cflags: -I${includedir}
Property changes on: trunk/lang/lua52/files/lua-5.2.pc.in
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/lang/lua52/files/patch-src__Makefile
===================================================================
--- trunk/lang/lua52/files/patch-src__Makefile (rev 0)
+++ trunk/lang/lua52/files/patch-src__Makefile 2014-10-10 11:29:40 UTC (rev 17713)
@@ -0,0 +1,58 @@
+--- src/Makefile.orig 2012-03-09 20:32:16.000000000 +0400
++++ src/Makefile 2012-12-14 16:39:47.000000000 +0400
+@@ -6,12 +6,13 @@
+ # Your platform. See PLATS for possible values.
+ PLAT= none
+
+-CC= gcc
+-CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
++CC?= gcc
++CFLAGS= -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
+ LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
+ LIBS= -lm $(SYSLIBS) $(MYLIBS)
+
+-AR= ar rcu
++AR= ar
++ARFLAGS= rcu
+ RANLIB= ranlib
+ RM= rm -f
+
+@@ -19,8 +20,8 @@
+ SYSLDFLAGS=
+ SYSLIBS=
+
+-MYCFLAGS=
+-MYLDFLAGS=
++MYCFLAGS?=
++MYLDFLAGS?=
+ MYLIBS=
+ MYOBJS=
+
+@@ -38,12 +39,13 @@
+
+ LUA_T= lua
+ LUA_O= lua.o
++LUA_SO= liblua.so
+
+ LUAC_T= luac
+ LUAC_O= luac.o
+
+ 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.
+@@ -55,8 +57,11 @@
+
+ a: $(ALL_A)
+
++$(LUA_SO): $(CORE_O) $(LIB_O)
++ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $?
++
+ $(LUA_A): $(BASE_O)
+- $(AR) $@ $(BASE_O)
++ $(AR) $(ARFLAGS) $@ $(BASE_O)
+ $(RANLIB) $@
+
+ $(LUA_T): $(LUA_O) $(LUA_A)
Property changes on: trunk/lang/lua52/files/patch-src__Makefile
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/lang/lua52/files/patch-src__liolib.c
===================================================================
--- trunk/lang/lua52/files/patch-src__liolib.c (rev 0)
+++ trunk/lang/lua52/files/patch-src__liolib.c 2014-10-10 11:29:40 UTC (rev 17713)
@@ -0,0 +1,10 @@
+--- ./src/liolib.c.orig 2013-01-05 22:46:54.000000000 +0100
++++ ./src/liolib.c 2013-01-05 22:47:32.000000000 +0100
+@@ -19,6 +19,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
+
+ #define liolib_c
+ #define LUA_LIB
Property changes on: trunk/lang/lua52/files/patch-src__liolib.c
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/lang/lua52/pkg-descr
===================================================================
--- trunk/lang/lua52/pkg-descr (rev 0)
+++ trunk/lang/lua52/pkg-descr 2014-10-10 11:29:40 UTC (rev 17713)
@@ -0,0 +1,21 @@
+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.
+
+WWW: http://www.lua.org/
Property changes on: trunk/lang/lua52/pkg-descr
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/lang/lua52/pkg-plist
===================================================================
--- trunk/lang/lua52/pkg-plist (rev 0)
+++ trunk/lang/lua52/pkg-plist 2014-10-10 11:29:40 UTC (rev 17713)
@@ -0,0 +1,17 @@
+bin/lua52
+bin/luac52
+include/lua52/lauxlib.h
+include/lua52/lua.h
+include/lua52/lua.hpp
+include/lua52/luaconf.h
+include/lua52/lualib.h
+lib/liblua-5.2.a
+lib/liblua-5.2.so
+libdata/pkgconfig/lua-5.2.pc
+man/man1/lua52.1.gz
+man/man1/luac52.1.gz
+ at dirrmtry %%DATADIR%%/5.2
+ at dirrmtry %%DATADIR%%
+ at dirrmtry lib/lua/5.2
+ at dirrmtry lib/lua
+ at dirrmtry include/lua52
Property changes on: trunk/lang/lua52/pkg-plist
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list