mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
devel/lua-pty: update to 1.26
PR: 256520 Reported by: maintainer
This commit is contained in:
parent
e25deff548
commit
3b0aaa8336
@ -1,35 +1,40 @@
|
||||
# Created by: Andrew Turner <andrew+ports@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@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
|
||||
USE_GITLAB= yes
|
||||
GL_ACCOUNT= ports1
|
||||
GL_PROJECT= lua-pty
|
||||
GL_COMMIT= 1c36a8b40688c6a38c188000bba59ce20ab616ce
|
||||
|
||||
MAKEFILE= ${FILESDIR}/Makefile
|
||||
MAKE_ENV= VPATH=${_DISTDIR}
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
PLIST_FILES= %%LUA_MODSHAREDIR%%/pty.lua \
|
||||
%%LUA_MODLIBDIR%%/lpty.so
|
||||
|
||||
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>
|
||||
|
@ -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
|
||||
|
@ -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;
|
@ -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 ]]--
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user