Update from an old archived version of luaposix to the latest. This requires the lua-bit32 port I just posted.
Index: Makefile =================================================================== RCS file: /cvs/ports/devel/luaposix/Makefile,v retrieving revision 1.20 diff -u -p -r1.20 Makefile --- Makefile 18 Mar 2016 20:49:28 -0000 1.20 +++ Makefile 21 Apr 2016 10:21:35 -0000 @@ -1,29 +1,28 @@ # $OpenBSD: Makefile,v 1.20 2016/03/18 20:49:28 naddy Exp $ COMMENT= posix library for the lua language -DISTNAME= luaposix-5.1.4 +V= 33.4.0 +DISTNAME= luaposix-${V} EPOCH= 0 -REVISION= 1 CATEGORIES= devel -MASTER_SITES= http://luaforge.net/frs/download.php/3572/ -HOMEPAGE= http://luaforge.net/projects/luaposix/ +GH_ACCOUNT= luaposix +GH_PROJECT= luaposix +GH_TAGNAME= release-v${V} # Public domain PERMIT_PACKAGE_CDROM= Yes +NO_TEST= Yes -MODULES= lang/lua -TEST_DEPENDS=${BUILD_PKGPATH} +MODULES= lang/lua -do-build: - ${CC} ${CFLAGS} -fPIC -I${MODLUA_INCL_DIR} -shared \ - ${WRKDIST}/lposix.c -o ${WRKDIST}/posix.so - -do-install: - ${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} - ${INSTALL_DATA} ${WRKSRC}/posix.so ${MODLUA_LIBDIR} +.if "${MODLUA_VERSION}" == "5.1" +RUN_DEPENDS= devel/lua-bit32 +.endif -do-test: - cd ${WRKSRC} && ${MODLUA_BIN} *.lua +CONFIGURE_STYLE= gnu + +CONFIGURE_ENV+= LUA=${MODLUA_BIN} \ + LUA_INCLUDE=-I${MODLUA_INCL_DIR} .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/devel/luaposix/distinfo,v retrieving revision 1.7 diff -u -p -r1.7 distinfo --- distinfo 18 Jan 2015 03:13:18 -0000 1.7 +++ distinfo 21 Apr 2016 08:11:35 -0000 @@ -1,2 +1,2 @@ -SHA256 (luaposix-5.1.4.tar.gz) = D3j+nIisdZWSKaWdqw2IZbP1xXMHBag+dMJG9HUigWc= -SIZE (luaposix-5.1.4.tar.gz) = 13390 +SHA256 (luaposix-33.4.0.tar.gz) = 5mJi9bf+HDLGXxel71/7McTRh3AZtIcKXTc+KrZSaiE= +SIZE (luaposix-33.4.0.tar.gz) = 643523 Index: patches/patch-test_lua =================================================================== RCS file: patches/patch-test_lua diff -N patches/patch-test_lua --- patches/patch-test_lua 6 Sep 2009 15:39:21 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-test_lua,v 1.1 2009/09/06 15:39:21 jolan Exp $ ---- test.lua.orig Thu Jan 24 08:15:06 2008 -+++ test.lua Sun Sep 6 10:36:17 2009 -@@ -83,7 +83,7 @@ if pid==0 then - ppid=ox.getpid"ppid" - io.write("in child process ",pid," from ",ppid,".\nnow executing date... ") - io.flush() -- assert(ox.exec("date","+[%c]")) -+ assert(ox.exec("/bin/date","+[%c]")) - print"should not get here" - else - io.write("process ",ox.getpid"pid"," forked child process ",pid,". waiting...\n") Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/devel/luaposix/pkg/PLIST,v retrieving revision 1.3 diff -u -p -r1.3 PLIST --- pkg/PLIST 11 May 2012 20:51:04 -0000 1.3 +++ pkg/PLIST 21 Apr 2016 09:02:57 -0000 @@ -1,2 +1,59 @@ @comment $OpenBSD: PLIST,v 1.3 2012/05/11 20:51:04 jasper Exp $ +lib/lua/${MODLUA_VERSION}/posix.a lib/lua/${MODLUA_VERSION}/posix.so +share/doc/luaposix/ +share/doc/luaposix/examples/ +share/doc/luaposix/examples/dir.lua.html +share/doc/luaposix/examples/fork.lua.html +share/doc/luaposix/examples/fork2.lua.html +share/doc/luaposix/examples/getopt.lua.html +share/doc/luaposix/examples/glob.lua.html +share/doc/luaposix/examples/limit.lua.html +share/doc/luaposix/examples/lock.lua.html +share/doc/luaposix/examples/netlink-uevent.lua.html +share/doc/luaposix/examples/ping.lua.html +share/doc/luaposix/examples/poll.lua.html +share/doc/luaposix/examples/signal.lua.html +share/doc/luaposix/examples/socket.lua.html +share/doc/luaposix/examples/termios.lua.html +share/doc/luaposix/examples/tree.lua.html +share/doc/luaposix/index.html +share/doc/luaposix/ldoc.css +share/doc/luaposix/modules/ +share/doc/luaposix/modules/posix.ctype.html +share/doc/luaposix/modules/posix.dirent.html +share/doc/luaposix/modules/posix.errno.html +share/doc/luaposix/modules/posix.fcntl.html +share/doc/luaposix/modules/posix.fnmatch.html +share/doc/luaposix/modules/posix.getopt.html +share/doc/luaposix/modules/posix.glob.html +share/doc/luaposix/modules/posix.grp.html +share/doc/luaposix/modules/posix.html +share/doc/luaposix/modules/posix.libgen.html +share/doc/luaposix/modules/posix.poll.html +share/doc/luaposix/modules/posix.pwd.html +share/doc/luaposix/modules/posix.sched.html +share/doc/luaposix/modules/posix.signal.html +share/doc/luaposix/modules/posix.stdio.html +share/doc/luaposix/modules/posix.stdlib.html +share/doc/luaposix/modules/posix.sys.msg.html +share/doc/luaposix/modules/posix.sys.resource.html +share/doc/luaposix/modules/posix.sys.socket.html +share/doc/luaposix/modules/posix.sys.stat.html +share/doc/luaposix/modules/posix.sys.statvfs.html +share/doc/luaposix/modules/posix.sys.time.html +share/doc/luaposix/modules/posix.sys.times.html +share/doc/luaposix/modules/posix.sys.utsname.html +share/doc/luaposix/modules/posix.sys.wait.html +share/doc/luaposix/modules/posix.syslog.html +share/doc/luaposix/modules/posix.termio.html +share/doc/luaposix/modules/posix.time.html +share/doc/luaposix/modules/posix.unistd.html +share/doc/luaposix/modules/posix.utime.html +share/lua/${MODLUA_VERSION}/posix/ +share/lua/${MODLUA_VERSION}/posix/_argcheck.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