sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (35903ac47705197f191e32827bd8e60176baaa31)
- From: Pavel Vinogradov <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (35903ac47705197f191e32827bd8e60176baaa31)
- Date: Mon, 3 Apr 2023 23:08:10 +0000
GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:
ChangeLog | 3 +++
lua-forge/lua54/BUILD | 9 +++++++++
lua-forge/lua54/CONFLICTS | 4 ++++
lua-forge/lua54/DEPENDS | 2 ++
lua-forge/lua54/DETAILS | 24 ++++++++++++++++++++++++
lua-forge/lua54/HISTORY | 4 ++++
lua-forge/lua54/INSTALL | 17 +++++++++++++++++
lua-forge/lua54/PRE_BUILD | 19 +++++++++++++++++++
lua-forge/lua54/PROVIDES | 1 +
lua-forge/lua54/lua.pc.in | 13 +++++++++++++
lua-forge/lua54/shared.patch | 24 ++++++++++++++++++++++++
11 files changed, 120 insertions(+)
New commits:
commit 35903ac47705197f191e32827bd8e60176baaa31
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>
lua-forge/lua54: new spell, Lua 5.4
diff --git a/ChangeLog b/ChangeLog
index a6f6422..271b5ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2023-04-03 Pavel Vinogradov <public AT sourcemage.org>
+ * lua-forge/lua54: new spell, Lua 5.4
+
2023-04-02 Treeve Jelbert <treeve AT sourcemage.org>
* kde5-apps/isoimagewriter: added
diff --git a/lua-forge/lua54/BUILD b/lua-forge/lua54/BUILD
new file mode 100755
index 0000000..0d7175c
--- /dev/null
+++ b/lua-forge/lua54/BUILD
@@ -0,0 +1,9 @@
+if [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" || "${SMGL_COMPAT_ARCHS[1]}" ==
"em64t" ]]; then
+ CFLAGS="${CFLAGS} -fPIC"
+fi &&
+
+make CFLAGS="-DLUA_USE_POSIX \
+ -DLUA_USE_DLOPEN \
+ -DLUA_COMPAT_MODULE \
+ $CFLAGS" \
+ LDFLAGS="$LDFLAGS" linux
diff --git a/lua-forge/lua54/CONFLICTS b/lua-forge/lua54/CONFLICTS
new file mode 100755
index 0000000..31ed72a
--- /dev/null
+++ b/lua-forge/lua54/CONFLICTS
@@ -0,0 +1,4 @@
+conflicts lua y &&
+conflicts lua4 y &&
+conflicts lua50 y &&
+conflicts lua51 y
diff --git a/lua-forge/lua54/DEPENDS b/lua-forge/lua54/DEPENDS
new file mode 100755
index 0000000..97a76ba
--- /dev/null
+++ b/lua-forge/lua54/DEPENDS
@@ -0,0 +1,2 @@
+depends ncurses &&
+depends readline
diff --git a/lua-forge/lua54/DETAILS b/lua-forge/lua54/DETAILS
new file mode 100755
index 0000000..e40dc5d
--- /dev/null
+++ b/lua-forge/lua54/DETAILS
@@ -0,0 +1,24 @@
+# Watch: http://www.lua.org/ftp/ lua-([0-9.]+)[.]tar
+ SPELL="lua54"
+ VERSION="5.4.4"
+
SOURCE_HASH="sha512:af0c35d5ba00fecbb2dd617bd7b825edf7418a16a73076e04f2a0df58cdbf098dc3ff4402e974afd789eb5d86d2e12ec6df9c84b99b23656ea694a85f83bcd21"
+ SOURCE="lua-$VERSION.tar.gz"
+ SOURCE_URL[0]="http://www.lua.org/ftp/$SOURCE"
+ SOURCE_URL[1]="http://www.tecgraf.puc-rio.br/lua/mirror/ftp/$SOURCE"
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/lua-$VERSION"
+ WEB_SITE="http://www.lua.org/"
+ ENTERED="20230403"
+ 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/lua54/HISTORY b/lua-forge/lua54/HISTORY
new file mode 100644
index 0000000..da0e7f2
--- /dev/null
+++ b/lua-forge/lua54/HISTORY
@@ -0,0 +1,4 @@
+2023-04-03 Pavel Vinogradov <public AT sourcemage.org>
+ * BUILD, CONFLICTS, DEPENDS, DETAILS, INSTALL, lua.pc.in, PRE_BUILD,
+ PROVIDES, shared.patch: created the spell, version 5.4.4
+
diff --git a/lua-forge/lua54/INSTALL b/lua-forge/lua54/INSTALL
new file mode 100755
index 0000000..e9b3fb3
--- /dev/null
+++ b/lua-forge/lua54/INSTALL
@@ -0,0 +1,17 @@
+make INSTALL_TOP="$INSTALL_ROOT/usr" \
+ INSTALL_MAN="$INSTALL_ROOT/usr/share/man/man1" install &&
+
+# install shared library and symlinks
+local SO="liblua.so.${VERSION%.?}" &&
+
+install -vm 755 "src/${SO}" "$INSTALL_ROOT/usr/lib" &&
+ln -vsf "$TRACK_ROOT/usr/lib/${SO}" "$INSTALL_ROOT/usr/lib/liblua.so" &&
+ln -vsf "$TRACK_ROOT/usr/lib/${SO}" "$INSTALL_ROOT/usr/lib/liblua.so.5" &&
+
+# install pkgconfig description file
+install -vm 755 -d "$INSTALL_ROOT/usr/lib/pkgconfig" &&
+
+local PC="/usr/lib/pkgconfig/lua${VERSION%.?}.pc" &&
+
+install -vm 644 "${SOURCE_DIRECTORY}/lua.pc" "${INSTALL_ROOT}${PC}" &&
+ln -vsf "${TRACK_ROOT}${PC}" "${INSTALL_ROOT}/usr/lib/pkgconfig/lua.pc"
diff --git a/lua-forge/lua54/PRE_BUILD b/lua-forge/lua54/PRE_BUILD
new file mode 100755
index 0000000..f082c51
--- /dev/null
+++ b/lua-forge/lua54/PRE_BUILD
@@ -0,0 +1,19 @@
+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
+sed "s:%%BRANCH%%:${VERSION%.?}:" "${SPELL_DIRECTORY}/shared.patch" | patch
-p0 &&
+
+echo '# lua.pc -- pkg-config data for Lua' > "${SOURCE_DIRECTORY}/lua.pc" &&
+grep '^V=' "${SOURCE_DIRECTORY}/Makefile" >> "${SOURCE_DIRECTORY}/lua.pc" &&
+grep '^R=' "${SOURCE_DIRECTORY}/Makefile" \
+ | sed -e 's,$V,${V},' >> "${SOURCE_DIRECTORY}/lua.pc" &&
+grep '^INSTALL_.*=' "${SOURCE_DIRECTORY}/Makefile" \
+ | grep -v 'INSTALL_DATA' \
+ | grep -v 'INSTALL_EXEC' \
+ | sed -e 's/INSTALL_TOP/prefix/' -e 's:/usr/local:/usr:' \
+ | tr '(' '{' | tr ')' '}' >> "${SOURCE_DIRECTORY}/lua.pc" &&
+cat "${SPELL_DIRECTORY}/lua.pc.in" >> "${SOURCE_DIRECTORY}/lua.pc"
diff --git a/lua-forge/lua54/PROVIDES b/lua-forge/lua54/PROVIDES
new file mode 100755
index 0000000..4c57544
--- /dev/null
+++ b/lua-forge/lua54/PROVIDES
@@ -0,0 +1 @@
+LUA
diff --git a/lua-forge/lua54/lua.pc.in b/lua-forge/lua54/lua.pc.in
new file mode 100644
index 0000000..859b10f
--- /dev/null
+++ b/lua-forge/lua54/lua.pc.in
@@ -0,0 +1,13 @@
+# 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/lua54/shared.patch b/lua-forge/lua54/shared.patch
new file mode 100644
index 0000000..7302ce7
--- /dev/null
+++ b/lua-forge/lua54/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.%%BRANCH%%
++
+ 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) -lm -ldl
++
+ clean:
+ $(RM) $(ALL_T) $(ALL_O)
+
- [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (35903ac47705197f191e32827bd8e60176baaa31), Pavel Vinogradov, 04/03/2023
Archive powered by MHonArc 2.6.24.