On Wed, Jul 27, 2016 at 12:49:40AM +0200, Adam Wolk wrote:
> Hi ports@
> 
> Here is an update to a hugely outdated luaposix port. The port doesn't have an
> active MAINTAINER so I'm grabbing it while here (unless objected?).
> 
> Changes:
>  - drop the patch
>  - switch to github for homepage & tarballs (old page long defunct)
>  - the code is not MIT not public domain
>  - they have a Makefile now so drop custom targets
>  - for lua5.1 we need my new devel/lua-bit32 but I'm not sure how to 
> incorporate
>    this. Anyone weighting in on conditional dependencies very welcome here! :)
>  - plist updated with more docs
> 
> Waitin for feedbacks, help with the runtime dep & OK's (obviously post tree
> unlock).
> 
> Regards,
> Adam

Ping.

> ? luaposix-5.1.4-0.diff
> 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  26 Jul 2016 22:41:57 -0000
> @@ -1,29 +1,31 @@
>  # $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
> +MAINTAINER=  Adam Wolk <aw...@openbsd.org>
> +
> +HOMEPAGE=    https://github.com/luaposix/luaposix
> +
> +# MIT
>  PERMIT_PACKAGE_CDROM=        Yes
>  
>  MODULES=     lang/lua
> -TEST_DEPENDS=${BUILD_PKGPATH}
>  
> -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}
> +# TODO: how to properly handle lua version
> +# conditional dependencies?
> +# .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}
>  
>  .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  26 Jul 2016 22:41:57 -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 26 Jul 2016 22:41:57 -0000
> @@ -1,2 +1,59 @@
> -@comment $OpenBSD: PLIST,v 1.3 2012/05/11 20:51:04 jasper Exp $
> +@comment $OpenBSD$
> +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

Reply via email to