From: ASOU Masato Subject: NEW: devel/lua-lpty To: ports@openbsd.org Cc: Masato ASOU Date: Sat, 13 Jul 2024 14:52:31 +0200 Hi ports@, I want to import devel/lua-lpty into the tree. DESCR: lpty is a module that allows a program written in lua to open the master side of a PTY and start a program with the slave side of the PTY as its controlling terminal. The PTY may then be read from and written to, thus controlling the remote program. lpty is released under the terms of the MIT license. If you have anything to say about this, comments, bug reports, whatever, feel free to email them to gz@tset.de ok, comments? -- ASOU Masato Index: devel/lua-lpty/Makefile =================================================================== RCS file: devel/lua-lpty/Makefile diff -N devel/lua-lpty/Makefile --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ devel/lua-lpty/Makefile 13 Jul 2024 12:20:13 -0000 @@ -0,0 +1,27 @@ +COMMENT= This is a simple wrapper around unix PTYs. +CATEGORIES= devel + +REVISION= 0 +V= 1.2.2 + +HOMEPAGE= https://www.tset.de/lpty/ +SITES= https://codeberg.org/gnarz/lpty/archive/ +DISTNAME= version_${V} +PKGNAME= lua-lpty-${V} + +WRKDIST= ${WRKOBJDIR}/${PKGNAME}/lpty/src + +# MIT +PERMIT_PACKAGE= Yes + +MODULES= lang/lua +MODLUA_VERSION= 5.1 + +USE_GMAKE= Yes +COMPILER= base-clang + +do-install: + ${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} + ${INSTALL_DATA} ${WRKSRC}/lpty.so ${MODLUA_LIBDIR} + +.include Index: devel/lua-lpty/distinfo =================================================================== RCS file: devel/lua-lpty/distinfo diff -N devel/lua-lpty/distinfo --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ devel/lua-lpty/distinfo 13 Jul 2024 12:20:13 -0000 @@ -0,0 +1,2 @@ +SHA256 (version_1.2.2.tar.gz) = 2b8d1deb473e29cb44b764a7f9fcefb287f1731782151afd4822db3636249ba3 +SIZE (version_1.2.2.tar.gz) = 23259 Index: devel/lua-lpty/patches/patch-Makefile =================================================================== RCS file: devel/lua-lpty/patches/patch-Makefile diff -N devel/lua-lpty/patches/patch-Makefile --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ devel/lua-lpty/patches/patch-Makefile 13 Jul 2024 12:20:13 -0000 @@ -0,0 +1,14 @@ +--- Makefile.orig ++++ Makefile +@@ -13,9 +13,9 @@ + TARGET = lpty.so + #DEBUG = -g -lefence + +-CC = gcc ++CC = cc + CFLAGS = -fPIC -Wall $(DEBUG) +-LUA_INCDIR = $(LUAROOT)/include ++LUA_INCDIR = $(LUAROOT)/include/lua-5.1 + LUA_LIBDIR = $(LUAROOT)/lib + LUA = lua + Index: devel/lua-lpty/pkg/DESCR =================================================================== RCS file: devel/lua-lpty/pkg/DESCR diff -N devel/lua-lpty/pkg/DESCR --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ devel/lua-lpty/pkg/DESCR 13 Jul 2024 12:20:13 -0000 @@ -0,0 +1,9 @@ +lpty is a module that allows a program written in lua to open the master side of +a PTY and start a program with the slave side of the PTY as its controlling +terminal. The PTY may then be read from and written to, thus controlling the +remote program. + +lpty is released under the terms of the MIT license. + +If you have anything to say about this, comments, bug reports, whatever, feel free +to email them to gz@tset.de Index: devel/lua-lpty/pkg/PLIST =================================================================== RCS file: devel/lua-lpty/pkg/PLIST diff -N devel/lua-lpty/pkg/PLIST --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ devel/lua-lpty/pkg/PLIST 13 Jul 2024 12:20:13 -0000 @@ -0,0 +1 @@ +lib/lua/${MODLUA_VERSION}/lpty.so