update devel/luaposix to 36.2.1; take maintainer

while here also add a lua54 flavor.
This commit is contained in:
op
2024-05-08 08:59:13 +00:00
parent af085c1c85
commit bec49a8a1f
4 changed files with 74 additions and 59 deletions
+24 -6
View File
@@ -1,20 +1,21 @@
COMMENT= posix library for the lua language
V= 33.4.0
V= 36.2.1
DISTNAME= luaposix-${V}
EPOCH= 0
REVISION= 1
CATEGORIES= devel
GH_ACCOUNT= luaposix
GH_PROJECT= luaposix
GH_TAGNAME= release-v${V}
GH_TAGNAME= v${V}
MAINTAINER= Omar Polo <op@openbsd.org>
# MIT
PERMIT_PACKAGE= Yes
MODULES= lang/lua
FLAVORS= lua52 lua53
FLAVORS= lua52 lua53 lua54
FLAVOR?=
# lua51 needs the bit32 library
@@ -22,9 +23,26 @@ FLAVOR?=
RUN_DEPENDS= devel/lua-bit32
.endif
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS = package="${GH_ACCOUNT}" \
version="${GH_TAGNAME}" \
PREFIX="${TRUEPREFIX}" \
LUA="${MODLUA_BIN}" \
LUA_INCDIR="${MODLUA_INCL_DIR}" \
CC="${CC}" \
LD="${CC}" \
CFLAGS="${CFLAGS}" \
INST_LIBDIR="${DESTDIR}${MODLUA_LIBDIR}" \
INST_LUADIR="${DESTDIR}${MODLUA_DATADIR}"
CONFIGURE_ENV+= LUA=${MODLUA_BIN}
FAKE_FLAGS += INST_LIBDIR="${MODLUA_LIBDIR}" \
INST_LUADIR="${MODLUA_DATADIR}"
do-build:
cd "${WRKSRC}" && ${MODLUA_BIN} build-aux/luke ${CONFIGURE_ARGS}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luaposix
cd "${WRKSRC}" && ${MODLUA_BIN} build-aux/luke ${ALL_FAKE_FLAGS} install
post-install:
mv ${PREFIX}/share/doc/luaposix ${MODLUA_DOCDIR}
+2 -2
View File
@@ -1,2 +1,2 @@
SHA256 (luaposix-33.4.0.tar.gz) = 5mJi9bf+HDLGXxel71/7McTRh3AZtIcKXTc+KrZSaiE=
SIZE (luaposix-33.4.0.tar.gz) = 643523
SHA256 (luaposix-36.2.1.tar.gz) = ROUIfNPEcFj5k0uQwAF+TPhwtxYZ+ZcH3UMwdGIt67E=
SIZE (luaposix-36.2.1.tar.gz) = 188010
@@ -0,0 +1,14 @@
avoid lots of warnings from clang
Index: ext/include/_helpers.c
--- ext/include/_helpers.c.orig
+++ ext/include/_helpers.c
@@ -90,7 +90,7 @@
/* LPOSIX_STMT_BEG/END are used to create macros that expand to a
single compound statement in a portable way. */
-#if defined __GNUC__ && !defined __STRICT_ANSI__ && !defined __cplusplus
+#if 0
# define LPOSIX_STMT_BEG (void)(
# define LPOSIX_STMT_END )
#else
+34 -51
View File
@@ -1,58 +1,41 @@
lib/lua/${MODLUA_VERSION}/posix.a
lib/lua/${MODLUA_VERSION}/posix.so
lib/lua/${MODLUA_VERSION}/posix/
@so lib/lua/${MODLUA_VERSION}/posix/ctype.so
@so lib/lua/${MODLUA_VERSION}/posix/dirent.so
@so lib/lua/${MODLUA_VERSION}/posix/errno.so
@so lib/lua/${MODLUA_VERSION}/posix/fcntl.so
@so lib/lua/${MODLUA_VERSION}/posix/fnmatch.so
@so lib/lua/${MODLUA_VERSION}/posix/glob.so
@so lib/lua/${MODLUA_VERSION}/posix/grp.so
@so lib/lua/${MODLUA_VERSION}/posix/libgen.so
@so lib/lua/${MODLUA_VERSION}/posix/poll.so
@so lib/lua/${MODLUA_VERSION}/posix/pwd.so
@so lib/lua/${MODLUA_VERSION}/posix/sched.so
@so lib/lua/${MODLUA_VERSION}/posix/signal.so
@so lib/lua/${MODLUA_VERSION}/posix/stdio.so
@so lib/lua/${MODLUA_VERSION}/posix/stdlib.so
lib/lua/${MODLUA_VERSION}/posix/sys/
@so lib/lua/${MODLUA_VERSION}/posix/sys/msg.so
@so lib/lua/${MODLUA_VERSION}/posix/sys/resource.so
@so lib/lua/${MODLUA_VERSION}/posix/sys/socket.so
@so lib/lua/${MODLUA_VERSION}/posix/sys/stat.so
@so lib/lua/${MODLUA_VERSION}/posix/sys/statvfs.so
@so lib/lua/${MODLUA_VERSION}/posix/sys/time.so
@so lib/lua/${MODLUA_VERSION}/posix/sys/times.so
@so lib/lua/${MODLUA_VERSION}/posix/sys/utsname.so
@so lib/lua/${MODLUA_VERSION}/posix/sys/wait.so
@so lib/lua/${MODLUA_VERSION}/posix/syslog.so
@so lib/lua/${MODLUA_VERSION}/posix/termio.so
@so lib/lua/${MODLUA_VERSION}/posix/time.so
@so lib/lua/${MODLUA_VERSION}/posix/unistd.so
@so lib/lua/${MODLUA_VERSION}/posix/utime.so
share/doc/${FULLPKGNAME}/
share/doc/${FULLPKGNAME}/examples/
share/doc/${FULLPKGNAME}/examples/dir.lua.html
share/doc/${FULLPKGNAME}/examples/fork.lua.html
share/doc/${FULLPKGNAME}/examples/fork2.lua.html
share/doc/${FULLPKGNAME}/examples/getopt.lua.html
share/doc/${FULLPKGNAME}/examples/glob.lua.html
share/doc/${FULLPKGNAME}/examples/limit.lua.html
share/doc/${FULLPKGNAME}/examples/lock.lua.html
share/doc/${FULLPKGNAME}/examples/netlink-uevent.lua.html
share/doc/${FULLPKGNAME}/examples/ping.lua.html
share/doc/${FULLPKGNAME}/examples/poll.lua.html
share/doc/${FULLPKGNAME}/examples/signal.lua.html
share/doc/${FULLPKGNAME}/examples/socket.lua.html
share/doc/${FULLPKGNAME}/examples/termios.lua.html
share/doc/${FULLPKGNAME}/examples/tree.lua.html
share/doc/${FULLPKGNAME}/index.html
share/doc/${FULLPKGNAME}/ldoc.css
share/doc/${FULLPKGNAME}/modules/
share/doc/${FULLPKGNAME}/modules/posix.ctype.html
share/doc/${FULLPKGNAME}/modules/posix.dirent.html
share/doc/${FULLPKGNAME}/modules/posix.errno.html
share/doc/${FULLPKGNAME}/modules/posix.fcntl.html
share/doc/${FULLPKGNAME}/modules/posix.fnmatch.html
share/doc/${FULLPKGNAME}/modules/posix.getopt.html
share/doc/${FULLPKGNAME}/modules/posix.glob.html
share/doc/${FULLPKGNAME}/modules/posix.grp.html
share/doc/${FULLPKGNAME}/modules/posix.html
share/doc/${FULLPKGNAME}/modules/posix.libgen.html
share/doc/${FULLPKGNAME}/modules/posix.poll.html
share/doc/${FULLPKGNAME}/modules/posix.pwd.html
share/doc/${FULLPKGNAME}/modules/posix.sched.html
share/doc/${FULLPKGNAME}/modules/posix.signal.html
share/doc/${FULLPKGNAME}/modules/posix.stdio.html
share/doc/${FULLPKGNAME}/modules/posix.stdlib.html
share/doc/${FULLPKGNAME}/modules/posix.sys.msg.html
share/doc/${FULLPKGNAME}/modules/posix.sys.resource.html
share/doc/${FULLPKGNAME}/modules/posix.sys.socket.html
share/doc/${FULLPKGNAME}/modules/posix.sys.stat.html
share/doc/${FULLPKGNAME}/modules/posix.sys.statvfs.html
share/doc/${FULLPKGNAME}/modules/posix.sys.time.html
share/doc/${FULLPKGNAME}/modules/posix.sys.times.html
share/doc/${FULLPKGNAME}/modules/posix.sys.utsname.html
share/doc/${FULLPKGNAME}/modules/posix.sys.wait.html
share/doc/${FULLPKGNAME}/modules/posix.syslog.html
share/doc/${FULLPKGNAME}/modules/posix.termio.html
share/doc/${FULLPKGNAME}/modules/posix.time.html
share/doc/${FULLPKGNAME}/modules/posix.unistd.html
share/doc/${FULLPKGNAME}/modules/posix.utime.html
share/lua/${MODLUA_VERSION}/posix/
share/lua/${MODLUA_VERSION}/posix/_argcheck.lua
share/lua/${MODLUA_VERSION}/posix/_base.lua
share/lua/${MODLUA_VERSION}/posix/_bitwise.lua
share/lua/${MODLUA_VERSION}/posix/_strict.lua
share/lua/${MODLUA_VERSION}/posix/compat.lua
share/lua/${MODLUA_VERSION}/posix/deprecated.lua
share/lua/${MODLUA_VERSION}/posix/init.lua
share/lua/${MODLUA_VERSION}/posix/sys.lua
share/lua/${MODLUA_VERSION}/posix/util.lua
share/lua/${MODLUA_VERSION}/posix/version.lua