Index: head/devel/lua-posix/Makefile =================================================================== --- head/devel/lua-posix/Makefile (revision 398924) +++ head/devel/lua-posix/Makefile (revision 398925) @@ -1,45 +1,47 @@ # Created by: Andrew Turner # $FreeBSD$ PORTNAME= posix -PORTVERSION= 31 +PORTVERSION= 33.3.1 DISTVERSIONPREFIX= release-v -PORTREVISION= 1 CATEGORIES= devel PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= POSIX layer for Lua LICENSE= MIT -USES= lua perl5 +USES= lua libtool perl5 USE_PERL5= build GNU_CONFIGURE= yes -CONFIGURE_ENV= LUA_INCLUDE=-I${LUA_INCDIR} \ - LUA=${LOCALBASE}/bin/lua${LUA_VER_STR} +CONFIGURE_ENV= LUA_INCLUDE="-I${LUA_INCDIR}" \ + LUA="${LOCALBASE}/bin/lua${LUA_VER_STR}" +CONFIGURE_ARGS= --disable-silent-rules +MAKE_ARGS= POSIX_EXTRA_CFLAGS="" POSIX_EXTRA_LDFLAGS="" +INSTALL_TARGET= install-strip +PORTDOCS= * USE_GITHUB= yes GH_PROJECT= luaposix GH_ACCOUNT= luaposix -MAKE_ARGS= POSIX_EXTRA_CFLAGS="" POSIX_EXTRA_LDFLAGS="" +DOCSDIR= ${PREFIX}/share/doc/luaposix -PLIST_FILES= %%LUA_MODSHAREDIR%%/curses.lua \ - %%LUA_MODLIBDIR%%/curses_c.so \ - %%LUA_MODSHAREDIR%%/posix.lua \ - %%LUA_MODLIBDIR%%/posix_c.so +PLIST_FILES= %%LUA_MODLIBDIR%%/posix.so \ + %%LUA_MODSHAREDIR%%/curses.lua \ + %%LUA_MODSHAREDIR%%/posix/_argcheck.lua \ + %%LUA_MODSHAREDIR%%/posix/compat.lua \ + %%LUA_MODSHAREDIR%%/posix/deprecated.lua \ + %%LUA_MODSHAREDIR%%/posix/init.lua \ + %%LUA_MODSHAREDIR%%/posix/sys.lua \ + %%LUA_MODSHAREDIR%%/posix/util.lua -PORTDOCS= * +OPTIONS_DEFINE= DOCS -do-install: - @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} - ${INSTALL_LIB} ${WRKSRC}/ext/posix/.libs/posix_c.so ${STAGEDIR}${LUA_MODLIBDIR}/ - ${INSTALL_LIB} ${WRKSRC}/ext/curses/.libs/curses_c.so ${STAGEDIR}${LUA_MODLIBDIR}/ - @${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR} - ${INSTALL_SCRIPT} ${WRKSRC}/lib/curses.lua ${STAGEDIR}${LUA_MODSHAREDIR}/ - ${INSTALL_SCRIPT} ${WRKSRC}/lib/posix.lua ${STAGEDIR}${LUA_MODSHAREDIR}/ - @${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/doc ; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} +post-patch: + @${REINPLACE_CMD} -e \ + 's|\(\*\|\)\(openbsd\*)\)|\1freebsd*\|dragonfly*\|\2| ; \ + s|"GNU strip"|"strip"|' ${WRKSRC}/configure .include Index: head/devel/lua-posix/distinfo =================================================================== --- head/devel/lua-posix/distinfo (revision 398924) +++ head/devel/lua-posix/distinfo (revision 398925) @@ -1,2 +1,2 @@ -SHA256 (luaposix-luaposix-release-v31_GH0.tar.gz) = c5ed2f6c16b9f31d3ca0db05f9b660db69c966baab244878480ab6658abbbe24 -SIZE (luaposix-luaposix-release-v31_GH0.tar.gz) = 528979 +SHA256 (luaposix-luaposix-release-v33.3.1_GH0.tar.gz) = 49e1eda64d0c03d0f2977fc1e04ce8c620dc3bb9a5c54c342904751d21b1b3cf +SIZE (luaposix-luaposix-release-v33.3.1_GH0.tar.gz) = 692452 Index: head/devel/lua-posix/files/patch-ext__posix__posix.c =================================================================== --- head/devel/lua-posix/files/patch-ext__posix__posix.c (revision 398924) +++ head/devel/lua-posix/files/patch-ext__posix__posix.c (nonexistent) @@ -1,41 +0,0 @@ ---- ext/posix/posix.c.orig 2013-09-09 07:15:14 UTC -+++ ext/posix/posix.c -@@ -68,6 +68,10 @@ - #include "lauxlib.h" - #include "lua52compat.h" - -+#if defined __FreeBSD__ || defined __DragonFly__ -+#define O_DSYNC O_SYNC -+#endif -+ - #ifndef STREQ - # define STREQ(a, b) (strcmp (a, b) == 0) - #endif -@@ -3697,6 +3701,7 @@ static int Pfsync(lua_State *L) - return pushresult(L, fsync(fd), NULL); - } - -+#if 0 - #if _POSIX_VERSION >= 200112L - /*** - synchronize a file's in-core state with storage device without metadata -@@ -3712,6 +3717,7 @@ static int Pfdatasync(lua_State *L) - return pushresult(L, fdatasync(fd), NULL); - } - #endif -+#endif - - /*** - reposition read/write file offset -@@ -3771,9 +3777,11 @@ static const luaL_Reg R[] = - MENTRY( Perrno ), - MENTRY( Pexec ), - MENTRY( Pexecp ), -+#if 0 - #if _POSIX_VERSION >= 200112L - MENTRY( Pfdatasync ), - #endif -+#endif - MENTRY( Pfcntl ), - MENTRY( Pfileno ), - MENTRY( Pfiles ), Property changes on: head/devel/lua-posix/files/patch-ext__posix__posix.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/devel/lua-posix/files/patch-ext__posix__unistd.c =================================================================== --- head/devel/lua-posix/files/patch-ext__posix__unistd.c (nonexistent) +++ head/devel/lua-posix/files/patch-ext__posix__unistd.c (revision 398925) @@ -0,0 +1,30 @@ +--- ext/posix/unistd.c.orig 2015-03-01 18:26:42 UTC ++++ ext/posix/unistd.c +@@ -326,6 +326,7 @@ Pexecp(lua_State *L) + } + + ++#if 0 + #if LPOSIX_2001_COMPLIANT + + #if !HAVE_DECL_FDATASYNC +@@ -350,6 +351,7 @@ Pfdatasync(lua_State *L) + return pushresult(L, fdatasync(fd), NULL); + } + #endif ++#endif + + + /*** +@@ -1032,9 +1034,11 @@ static const luaL_Reg posix_unistd_fns[] + LPOSIX_FUNC( Pdup2 ), + LPOSIX_FUNC( Pexec ), + LPOSIX_FUNC( Pexecp ), ++#if 0 + #if LPOSIX_2001_COMPLIANT + LPOSIX_FUNC( Pfdatasync ), + #endif ++#endif + LPOSIX_FUNC( Pfork ), + LPOSIX_FUNC( Pfsync ), + LPOSIX_FUNC( Pgetcwd ), Property changes on: head/devel/lua-posix/files/patch-ext__posix__unistd.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/devel/lua-posix/pkg-descr =================================================================== --- head/devel/lua-posix/pkg-descr (revision 398924) +++ head/devel/lua-posix/pkg-descr (revision 398925) @@ -1 +1,3 @@ LuaPosix is a Lua extension library that provides support for POSIX. + +WWW: http://luaposix.github.io/luaposix