this bumps luaposix up to version 32. ok?
Index: Makefile =================================================================== RCS file: /cvs/ports/devel/luaposix/Makefile,v retrieving revision 1.19 diff -u -p -r1.19 Makefile --- Makefile 11 Mar 2013 10:50:11 -0000 1.19 +++ Makefile 11 Jun 2014 07:01:55 -0000 @@ -3,29 +3,26 @@ SHARED_ONLY= Yes COMMENT= posix library for the lua language -DISTNAME= luaposix-5.1.4 +V= 32 +DISTNAME= luaposix-release-v${V} EPOCH= 0 REVISION= 1 +PKGNAME= luaposix-${V} CATEGORIES= devel -MASTER_SITES= http://luaforge.net/frs/download.php/3572/ +MASTER_SITES= https://github.com/luaposix/luaposix/archive/ -HOMEPAGE= http://luaforge.net/projects/luaposix/ +HOMEPAGE= https://github.com/luaposix/luaposix/ # Public domain PERMIT_PACKAGE_CDROM= Yes MODULES= lang/lua -TEST_DEPENDS=${BUILD_PKGPATH} +MODLUA_RUN_DEPENDS= devel/luabitop -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} - -do-test: - cd ${WRKSRC} && ${MODLUA_BIN} *.lua +CONFIGURE_STYLE=gnu +CONFIGURE_ARGS+=--libdir=${MODLUA_LIBDIR} +CONFIGURE_ENV+= LUA=${MODLUA_BIN} \ + LUA_VERSION=${MODLUA_VERSION} \ + LUA_INCLUDE=-I${MODLUA_INCL_DIR} .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/devel/luaposix/distinfo,v retrieving revision 1.6 diff -u -p -r1.6 distinfo --- distinfo 6 Sep 2009 15:39:21 -0000 1.6 +++ distinfo 11 Jun 2014 07:01:55 -0000 @@ -1,5 +1,2 @@ -MD5 (luaposix-5.1.4.tar.gz) = BzAZsaUr/duU4lIVU7R+9Q== -RMD160 (luaposix-5.1.4.tar.gz) = 68sjazNi952yy60Or2cFEzE+iik= -SHA1 (luaposix-5.1.4.tar.gz) = Q0RqnLkSRz6C07UWI4PdehB46cU= -SHA256 (luaposix-5.1.4.tar.gz) = D3j+nIisdZWSKaWdqw2IZbP1xXMHBag+dMJG9HUigWc= -SIZE (luaposix-5.1.4.tar.gz) = 13390 +SHA256 (luaposix-release-v32.tar.gz) = Cdu96CX9m3aoofaoCSBDT4Ypo5LNGEACHtS5WyH88HM= +SIZE (luaposix-release-v32.tar.gz) = 552641 Index: patches/patch-configure =================================================================== RCS file: patches/patch-configure diff -N patches/patch-configure --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-configure 11 Jun 2014 07:01:55 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- configure.orig Wed Jun 11 15:20:40 2014 ++++ configure Wed Jun 11 15:21:08 2014 +@@ -14077,7 +14077,7 @@ _ACEOF + if ac_fn_c_try_run "$LINENO"; then : + ax_cv_lua_header_version=`./conftest$EXEEXT p | \ + sed "s|^Lua \(.*\)|\1|" | \ +- grep -o "^[0-9]\+\\.[0-9]\+"` ++ egrep -o "^[0-9]+.[0-9]+"` + + else + ax_cv_lua_header_version='unknown' Index: patches/patch-ext_posix_posix_c =================================================================== RCS file: patches/patch-ext_posix_posix_c diff -N patches/patch-ext_posix_posix_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-ext_posix_posix_c 11 Jun 2014 07:01:55 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- ext/posix/posix.c.orig Wed Jun 11 15:24:32 2014 ++++ ext/posix/posix.c Wed Jun 11 15:25:06 2014 +@@ -2594,8 +2594,7 @@ static int Ptimes(lua_State *L) + MENTRY( _DATA ) \ + MENTRY( _FSIZE ) \ + MENTRY( _NOFILE ) \ +- MENTRY( _STACK ) \ +- MENTRY( _AS ) ++ MENTRY( _STACK ) + + static const int Krlimit[] = + { 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 11 Jun 2014 07:01:55 -0000 @@ -1,2 +1,34 @@ @comment $OpenBSD: PLIST,v 1.3 2012/05/11 20:51:04 jasper Exp $ -lib/lua/${MODLUA_VERSION}/posix.so +lib/lua/${MODLUA_VERSION}/curses_c.a +lib/lua/${MODLUA_VERSION}/curses_c.la +lib/lua/${MODLUA_VERSION}/curses_c.so +lib/lua/${MODLUA_VERSION}/posix_c.a +lib/lua/${MODLUA_VERSION}/posix_c.la +lib/lua/${MODLUA_VERSION}/posix_c.so +share/doc/luaposix/ +share/doc/luaposix/curses.html +share/doc/luaposix/curses_c.html +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.html +share/doc/luaposix/modules/posix.sys.html +share/lua/${MODLUA_VERSION}/curses.lua +share/lua/${MODLUA_VERSION}/posix/ +share/lua/${MODLUA_VERSION}/posix.lua +share/lua/${MODLUA_VERSION}/posix/sys.lua