Hi ports@,

Here's the diff that updates luaposix from the 33.4.0 version,
from early 2006, to the latest version, 34.1.1, from July. The project,
a set of modules that makes it possible for Lua to use standard POSIX
system calls, has since added, fixed and improved the bindings.

The Makefile needed changes:

- The luke building system replaced autotools. The Makefile now uses it
for building.

- According to portcheck, ${FULLPKGNAME} is no longer allowed within
PLISTS so I've changed where the example scripts and the documentation
is changed (the folder name is, eg. named lua52-luaposix instead of
lua52posix-v34.1.1). I did account for different flavors installed at
once, which is taken care of with the MODLUA_DEP variable (it expands to
lua51, lua52 or lua53).

I portcheck'ed the build against the lua51, lua52 and lua53 flavors, and
then tested the three flavor's installations and they work fine when
running the example scripts.

Have a good weekend,

Enric

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/luaposix/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile    12 Jul 2019 20:44:42 -0000      1.25
+++ Makefile    11 Oct 2019 19:10:51 -0000
@@ -1,7 +1,7 @@
 # $OpenBSD: Makefile,v 1.25 2019/07/12 20:44:42 sthen Exp $
 
 COMMENT=       posix library for the lua language
-V=             33.4.0
+V=             34.1.1
 DISTNAME=      luaposix-${V}
 EPOCH=         0
 REVISION=      1
@@ -14,9 +14,9 @@
 # MIT
 PERMIT_PACKAGE=        Yes
 
-MODULES=               lang/lua
+MODULES=       lang/lua
 
-FLAVORS=               lua52 lua53
+FLAVORS=       lua52 lua53
 FLAVOR?=
 
 # lua51 needs the bit32 library
@@ -24,11 +24,20 @@
 RUN_DEPENDS=           devel/lua-bit32
 .endif
 
-CONFIGURE_STYLE=       gnu
-
-CONFIGURE_ENV+=                LUA=${MODLUA_BIN}
+do-build:
+       @cd ${WRKDIR}/luaposix-release-v${V}/ && ${MODLUA_BIN} build-aux/luke \
+           LUA_INCDIR="${MODLUA_INCL_DIR}" version=${V} \
+           CFLAGS="${CFLAGS}" PREFIX=${PREFIX}
+
+do-install:
+       @cd ${WRKDIR}/luaposix-release-v${V}/ && ${MODLUA_BIN} build-aux/luke \
+           install PREFIX=${PREFIX}
 
 post-install:
-       mv ${PREFIX}/share/doc/luaposix ${MODLUA_DOCDIR}
+       mkdir ${PREFIX}/share/examples/${MODLUA_DEP}-luaposix
+       mv ${WRKDIR}/luaposix-release-v${V}/doc/examples/*.lua \
+           ${PREFIX}/share/examples/${MODLUA_DEP}-luaposix
+       mv ${WRKDIR}/luaposix-release-v${V}/doc \
+           ${PREFIX}/share/doc/${MODLUA_DEP}-luaposix
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/luaposix/distinfo,v
retrieving revision 1.8
diff -u -r1.8 distinfo
--- distinfo    31 Aug 2016 10:11:52 -0000      1.8
+++ distinfo    11 Oct 2019 19:10:51 -0000
@@ -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-34.1.1.tar.gz) = Jz3y29lYGi8i5CZfFNDXWcSHwMmDD5Q5XX1pBHQ4KBA=
+SIZE (luaposix-34.1.1.tar.gz) = 177658
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/luaposix/pkg/PLIST,v
retrieving revision 1.5
diff -u -r1.5 PLIST
--- pkg/PLIST   17 Oct 2016 21:39:23 -0000      1.5
+++ pkg/PLIST   11 Oct 2019 19:10:51 -0000
@@ -1,59 +1,111 @@
-@comment $OpenBSD: PLIST,v 1.5 2016/10/17 21:39:23 jca Exp $
-lib/lua/${MODLUA_VERSION}/posix.a
-lib/lua/${MODLUA_VERSION}/posix.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
+@comment $OpenBSD: PLIST,v$
+lib/lua/${MODLUA_VERSION}/posix/
+lib/lua/${MODLUA_VERSION}/posix/ctype.so
+lib/lua/${MODLUA_VERSION}/posix/dirent.so
+lib/lua/${MODLUA_VERSION}/posix/errno.so
+lib/lua/${MODLUA_VERSION}/posix/fcntl.so
+lib/lua/${MODLUA_VERSION}/posix/fnmatch.so
+lib/lua/${MODLUA_VERSION}/posix/glob.so
+lib/lua/${MODLUA_VERSION}/posix/grp.so
+lib/lua/${MODLUA_VERSION}/posix/libgen.so
+lib/lua/${MODLUA_VERSION}/posix/poll.so
+lib/lua/${MODLUA_VERSION}/posix/pwd.so
+lib/lua/${MODLUA_VERSION}/posix/sched.so
+lib/lua/${MODLUA_VERSION}/posix/signal.so
+lib/lua/${MODLUA_VERSION}/posix/stdio.so
+lib/lua/${MODLUA_VERSION}/posix/stdlib.so
+lib/lua/${MODLUA_VERSION}/posix/sys/
+lib/lua/${MODLUA_VERSION}/posix/sys/msg.so
+lib/lua/${MODLUA_VERSION}/posix/sys/resource.so
+lib/lua/${MODLUA_VERSION}/posix/sys/socket.so
+lib/lua/${MODLUA_VERSION}/posix/sys/stat.so
+lib/lua/${MODLUA_VERSION}/posix/sys/statvfs.so
+lib/lua/${MODLUA_VERSION}/posix/sys/time.so
+lib/lua/${MODLUA_VERSION}/posix/sys/times.so
+lib/lua/${MODLUA_VERSION}/posix/sys/utsname.so
+lib/lua/${MODLUA_VERSION}/posix/sys/wait.so
+lib/lua/${MODLUA_VERSION}/posix/syslog.so
+lib/lua/${MODLUA_VERSION}/posix/termio.so
+lib/lua/${MODLUA_VERSION}/posix/time.so
+lib/lua/${MODLUA_VERSION}/posix/unistd.so
+lib/lua/${MODLUA_VERSION}/posix/utime.so
+share/doc/${MODLUA_DEP}-luaposix/
+share/doc/${MODLUA_DEP}-luaposix/examples/
+share/doc/${MODLUA_DEP}-luaposix/examples/abstract-ns-client.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/abstract-ns-server.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/dir.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/dup2.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/fork.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/fork2.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/getopt.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/glob.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/limit.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/lock.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/netlink-uevent.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/ping.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/poll.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/rt_sched.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/signal.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/socket.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/termios.lua.html
+share/doc/${MODLUA_DEP}-luaposix/examples/tree.lua.html
+share/doc/${MODLUA_DEP}-luaposix/index.html
+share/doc/${MODLUA_DEP}-luaposix/ldoc.css
+share/doc/${MODLUA_DEP}-luaposix/modules/
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.ctype.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.dirent.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.errno.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.fcntl.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.fnmatch.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.glob.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.grp.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.libgen.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.poll.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.pwd.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sched.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.signal.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.stdio.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.stdlib.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sys.msg.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sys.resource.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sys.socket.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sys.stat.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sys.statvfs.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sys.time.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sys.times.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sys.utsname.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.sys.wait.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.syslog.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.termio.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.time.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.unistd.html
+share/doc/${MODLUA_DEP}-luaposix/modules/posix.utime.html
+share/examples/${MODLUA_DEP}-luaposix/
+share/examples/${MODLUA_DEP}-luaposix/abstract-ns-client.lua
+share/examples/${MODLUA_DEP}-luaposix/abstract-ns-server.lua
+share/examples/${MODLUA_DEP}-luaposix/dir.lua
+share/examples/${MODLUA_DEP}-luaposix/dup2.lua
+share/examples/${MODLUA_DEP}-luaposix/fork.lua
+share/examples/${MODLUA_DEP}-luaposix/fork2.lua
+share/examples/${MODLUA_DEP}-luaposix/getopt.lua
+share/examples/${MODLUA_DEP}-luaposix/glob.lua
+share/examples/${MODLUA_DEP}-luaposix/limit.lua
+share/examples/${MODLUA_DEP}-luaposix/lock.lua
+share/examples/${MODLUA_DEP}-luaposix/netlink-uevent.lua
+share/examples/${MODLUA_DEP}-luaposix/ping.lua
+share/examples/${MODLUA_DEP}-luaposix/poll.lua
+share/examples/${MODLUA_DEP}-luaposix/rt_sched.lua
+share/examples/${MODLUA_DEP}-luaposix/signal.lua
+share/examples/${MODLUA_DEP}-luaposix/socket.lua
+share/examples/${MODLUA_DEP}-luaposix/termios.lua
+share/examples/${MODLUA_DEP}-luaposix/tree.lua
 share/lua/${MODLUA_VERSION}/posix/
-share/lua/${MODLUA_VERSION}/posix/_argcheck.lua
+share/lua/${MODLUA_VERSION}/posix/_base.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

Reply via email to