View | Details | Raw Unified | Return to bug 256520 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/lua-pty/Makefile (-15 / +20 lines)
Lines 1-35 Link Here
1
# Created by: Andrew Turner <andrew+ports@fubar.geek.nz>
1
# Created by: Andrew Turner <andrew+ports@fubar.geek.nz>
2
2
3
PORTNAME=	pty
3
PORTNAME=	pty
4
PORTVERSION=	1.25
4
DISTVERSION=	1.26
5
PORTREVISION=	1
6
CATEGORIES=	devel
5
CATEGORIES=	devel
7
MASTER_SITES=	https://raw.githubusercontent.com/nuclewall/bsdinstaller/${COMMIT}/src/lib/lua/pty/ \
8
		https://BSDforge.com/projects/source/devel/lua-pty/
9
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
10
DISTFILES=	pty.lua pty.c
11
DIST_SUBDIR=	lua-${PORTNAME}-${COMMIT}
12
6
13
MAINTAINER=	portmaster@BSDforge.com
7
MAINTAINER=	portmaster@BSDforge.com
14
COMMENT=	Pty (pseudo-terminal) bindings for Lua 5
8
COMMENT=	Pty (pseudo-terminal) bindings for Lua 5+
9
10
LICENSE=	BSD4CLAUSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
15
12
16
USES=		lua:51,module
13
USES=		lua:51,module
17
14
18
COMMIT=		8323bb9
15
USE_GITLAB=	yes
16
GL_ACCOUNT=	ports1
17
GL_PROJECT=	lua-pty
18
GL_COMMIT=	1c36a8b40688c6a38c188000bba59ce20ab616ce
19
19
MAKEFILE=	${FILESDIR}/Makefile
20
MAKEFILE=	${FILESDIR}/Makefile
20
MAKE_ENV=	VPATH=${_DISTDIR}
21
NO_WRKSUBDIR=	yes
22
21
22
DOCSDIR=	${PREFIX}/share/doc/lua-${PORTNAME}
23
DOCFILES=	README README.md CHANGELOG
23
PLIST_FILES=	%%LUA_MODSHAREDIR%%/pty.lua \
24
PLIST_FILES=	%%LUA_MODSHAREDIR%%/pty.lua \
24
		%%LUA_MODLIBDIR%%/lpty.so
25
		%%LUA_MODLIBDIR%%/lpty.so \
25
26
		%%DOCSDIR%%/README \
26
do-extract:
27
		%%DOCSDIR%%/README.md \
27
	${CP} -p ${_DISTFILES:S|^|${_DISTDIR}/|} ${WRKSRC}/
28
		%%DOCSDIR%%/CHANGELOG
28
29
29
do-install:
30
do-install:
30
	@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
31
	@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
31
	${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${STAGEDIR}${LUA_MODLIBDIR}
32
	${INSTALL_PROGRAM} ${WRKSRC}/lpty.so ${STAGEDIR}${LUA_MODLIBDIR}
32
	@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
33
	@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
33
	${INSTALL_DATA} ${WRKSRC}/pty.lua ${STAGEDIR}${LUA_MODSHAREDIR}
34
	${INSTALL_DATA} ${WRKSRC}/pty.lua ${STAGEDIR}${LUA_MODSHAREDIR}
35
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
36
.for i in ${DOCFILES}
37
	${CP} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
38
.endfor
34
39
35
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)b/devel/lua-pty/distinfo (-4 / +4 lines)
Lines 1-4 Link Here
1
SHA256 (lua-pty-8323bb9/pty.lua) = 18f1a623b727a3172b6e16142c057659a76614741a65533a9747034886edcb9a
1
TIMESTAMP = 1623306507
2
SIZE (lua-pty-8323bb9/pty.lua) = 1077
2
SHA256 (ports1-lua-pty-1c36a8b40688c6a38c188000bba59ce20ab616ce_GL0.tar.gz) = a312223a4857ea78080dbb648f440868fd6df21b02519bf7685899fb95818d23
3
SHA256 (lua-pty-8323bb9/pty.c) = f8ce982883ba917abeab623ca63e07aafb05d2820fe35e5d8563caf579240af1
3
SHA512 (ports1-lua-pty-1c36a8b40688c6a38c188000bba59ce20ab616ce_GL0.tar.gz) = f1f43a012e691af3c11ab2400456a5be0cf0008b84106bfdf0fabcddaff370cbbe8ae90145c2f03b9031b9a717a1eeed5cf92e9286c37227a394629e2bd04b13
4
SIZE (lua-pty-8323bb9/pty.c) = 9264
4
SIZE (ports1-lua-pty-1c36a8b40688c6a38c188000bba59ce20ab616ce_GL0.tar.gz) = 4424
(-)a/devel/lua-pty/files/patch-pty.c (-18 lines)
Removed Link Here
1
--- pty.c.orig	Wed Nov 29 21:26:24 2006
2
+++ pty.c	Wed Nov 29 21:29:38 2006
3
@@ -66,6 +66,15 @@
4
 #define WEXIT_TYPE union wait
5
 #endif
6
 
7
+#ifndef lua_boxpointer
8
+#define lua_boxpointer(L,u) \
9
+	(*(void **)(lua_newuserdata(L, sizeof(void *))) = (u))
10
+#endif
11
+
12
+#ifndef lua_unboxpointer
13
+#define lua_unboxpointer(L,i)   (*(void **)(lua_touserdata(L, i)))
14
+#endif
15
+
16
 struct lua_pty {
17
 	FILE		*stream;
18
 	pid_t		 child;
(-)a/devel/lua-pty/files/patch-pty.lua (-13 lines)
Removed Link Here
1
--- pty.lua.orig	Wed Nov 29 22:38:08 2006
2
+++ pty.lua	Wed Nov 29 22:39:00 2006
3
@@ -1,9 +1,8 @@
4
 -- $Id: pty.lua,v 1.2 2005/08/13 20:00:40 cpressey Exp $
5
 -- Lua wrapper functions for Lua 5.0.x Pty (pseudo-terminal) binding.
6
 
7
+local Pty = require("lpty")
8
 module("pty")
9
-
10
-Pty = require("lpty")
11
 
12
 --[[------------]]--
13
 --[[ Pty.Logged ]]--
(-)b/devel/lua-pty/pkg-descr (-1 / +3 lines)
Line 1 Link Here
1
Lua 5.0.x bindings for ptys (pseudo-terminals.)
1
Lua 5.0.x bindings for ptys (pseudo-terminals).
2
3
WWW:	https://gitlab.com/ports1/lua-pty/

Return to bug 256520