git: 3b0aaa83361a - main - devel/lua-pty: update to 1.26
Vanilla I. Shu
vanilla at FreeBSD.org
Sat Jun 12 05:25:48 UTC 2021
The branch main has been updated by vanilla:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3b0aaa83361a9dcae60b94c711370d1496b5e956
commit 3b0aaa83361a9dcae60b94c711370d1496b5e956
Author: Vanilla I. Shu <vanilla at FreeBSD.org>
AuthorDate: 2021-06-12 05:09:30 +0000
Commit: Vanilla I. Shu <vanilla at FreeBSD.org>
CommitDate: 2021-06-12 05:25:37 +0000
devel/lua-pty: update to 1.26
PR: 256520
Reported by: maintainer
---
devel/lua-pty/Makefile | 37 +++++++++++++++++++++----------------
devel/lua-pty/distinfo | 7 +++----
devel/lua-pty/files/patch-pty.c | 18 ------------------
devel/lua-pty/files/patch-pty.lua | 13 -------------
devel/lua-pty/pkg-descr | 4 +++-
5 files changed, 27 insertions(+), 52 deletions(-)
diff --git a/devel/lua-pty/Makefile b/devel/lua-pty/Makefile
index 563694f2d79d..333491632067 100644
--- a/devel/lua-pty/Makefile
+++ b/devel/lua-pty/Makefile
@@ -1,35 +1,40 @@
# Created by: Andrew Turner <andrew+ports at fubar.geek.nz>
PORTNAME= pty
-PORTVERSION= 1.25
-PORTREVISION= 1
+DISTVERSION= 1.26
CATEGORIES= devel
-MASTER_SITES= https://raw.githubusercontent.com/nuclewall/bsdinstaller/${COMMIT}/src/lib/lua/pty/ \
- https://BSDforge.com/projects/source/devel/lua-pty/
-PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
-DISTFILES= pty.lua pty.c
-DIST_SUBDIR= lua-${PORTNAME}-${COMMIT}
MAINTAINER= portmaster at BSDforge.com
-COMMENT= Pty (pseudo-terminal) bindings for Lua 5
+COMMENT= Pty (pseudo-terminal) bindings for Lua 5+
+
+LICENSE= BSD4CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
USES= lua:51,module
-COMMIT= 8323bb9
-MAKEFILE= ${FILESDIR}/Makefile
-MAKE_ENV= VPATH=${_DISTDIR}
-NO_WRKSUBDIR= yes
+USE_GITLAB= yes
+GL_ACCOUNT= ports1
+GL_PROJECT= lua-pty
+GL_COMMIT= 1c36a8b40688c6a38c188000bba59ce20ab616ce
-PLIST_FILES= %%LUA_MODSHAREDIR%%/pty.lua \
- %%LUA_MODLIBDIR%%/lpty.so
+MAKEFILE= ${FILESDIR}/Makefile
-do-extract:
- ${CP} -p ${_DISTFILES:S|^|${_DISTDIR}/|} ${WRKSRC}/
+DOCSDIR= ${PREFIX}/share/doc/lua-${PORTNAME}
+DOCFILES= README README.md CHANGELOG
+PLIST_FILES= ${LUA_MODSHAREDIR}/pty.lua \
+ ${LUA_MODLIBDIR}/lpty.so \
+ ${DOCSDIR}/README \
+ ${DOCSDIR}/README.md \
+ ${DOCSDIR}/CHANGELOG
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${STAGEDIR}${LUA_MODLIBDIR}
@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
${INSTALL_DATA} ${WRKSRC}/pty.lua ${STAGEDIR}${LUA_MODSHAREDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for i in ${DOCFILES}
+ ${CP} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
+.endfor
.include <bsd.port.mk>
diff --git a/devel/lua-pty/distinfo b/devel/lua-pty/distinfo
index d39871b4bc54..b74466c2e606 100644
--- a/devel/lua-pty/distinfo
+++ b/devel/lua-pty/distinfo
@@ -1,4 +1,3 @@
-SHA256 (lua-pty-8323bb9/pty.lua) = 18f1a623b727a3172b6e16142c057659a76614741a65533a9747034886edcb9a
-SIZE (lua-pty-8323bb9/pty.lua) = 1077
-SHA256 (lua-pty-8323bb9/pty.c) = f8ce982883ba917abeab623ca63e07aafb05d2820fe35e5d8563caf579240af1
-SIZE (lua-pty-8323bb9/pty.c) = 9264
+TIMESTAMP = 1623472778
+SHA256 (ports1-lua-pty-1c36a8b40688c6a38c188000bba59ce20ab616ce_GL0.tar.gz) = a312223a4857ea78080dbb648f440868fd6df21b02519bf7685899fb95818d23
+SIZE (ports1-lua-pty-1c36a8b40688c6a38c188000bba59ce20ab616ce_GL0.tar.gz) = 4424
diff --git a/devel/lua-pty/files/patch-pty.c b/devel/lua-pty/files/patch-pty.c
deleted file mode 100644
index d037c680fb7c..000000000000
--- a/devel/lua-pty/files/patch-pty.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- pty.c.orig Wed Nov 29 21:26:24 2006
-+++ pty.c Wed Nov 29 21:29:38 2006
-@@ -66,6 +66,15 @@
- #define WEXIT_TYPE union wait
- #endif
-
-+#ifndef lua_boxpointer
-+#define lua_boxpointer(L,u) \
-+ (*(void **)(lua_newuserdata(L, sizeof(void *))) = (u))
-+#endif
-+
-+#ifndef lua_unboxpointer
-+#define lua_unboxpointer(L,i) (*(void **)(lua_touserdata(L, i)))
-+#endif
-+
- struct lua_pty {
- FILE *stream;
- pid_t child;
diff --git a/devel/lua-pty/files/patch-pty.lua b/devel/lua-pty/files/patch-pty.lua
deleted file mode 100644
index deabb00649e8..000000000000
--- a/devel/lua-pty/files/patch-pty.lua
+++ /dev/null
@@ -1,13 +0,0 @@
---- pty.lua.orig Wed Nov 29 22:38:08 2006
-+++ pty.lua Wed Nov 29 22:39:00 2006
-@@ -1,9 +1,8 @@
- -- $Id: pty.lua,v 1.2 2005/08/13 20:00:40 cpressey Exp $
- -- Lua wrapper functions for Lua 5.0.x Pty (pseudo-terminal) binding.
-
-+local Pty = require("lpty")
- module("pty")
--
--Pty = require("lpty")
-
- --[[------------]]--
- --[[ Pty.Logged ]]--
diff --git a/devel/lua-pty/pkg-descr b/devel/lua-pty/pkg-descr
index d627c7d65c7d..fb6bf85451f4 100644
--- a/devel/lua-pty/pkg-descr
+++ b/devel/lua-pty/pkg-descr
@@ -1 +1,3 @@
-Lua 5.0.x bindings for ptys (pseudo-terminals.)
+Lua 5.0.x bindings for ptys (pseudo-terminals).
+
+WWW: https://gitlab.com/ports1/lua-pty/
More information about the dev-commits-ports-all
mailing list