Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel devel: Add lua-term. Based partially on work by ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/68c9217829b3
branches:  trunk
changeset: 435205:68c9217829b3
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 02 10:59:24 2020 +0000

description:
devel: Add lua-term. Based partially on work by Jonathan Buschmann in wip.

lua-term is a Lua module for manipulating a terminal.

diffstat:

 devel/Makefile                        |   3 +-
 devel/lua-term/DESCR                  |   1 +
 devel/lua-term/Makefile               |  23 ++++++++++++++++++++++
 devel/lua-term/PLIST                  |   5 ++++
 devel/lua-term/distinfo               |   7 ++++++
 devel/lua-term/patches/patch-Makefile |  36 +++++++++++++++++++++++++++++++++++
 6 files changed, 74 insertions(+), 1 deletions(-)

diffs (109 lines):

diff -r 91c12154c24c -r 68c9217829b3 devel/Makefile
--- a/devel/Makefile    Thu Jul 02 10:57:20 2020 +0000
+++ b/devel/Makefile    Thu Jul 02 10:59:24 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3149 2020/07/01 07:02:59 adam Exp $
+# $NetBSD: Makefile,v 1.3150 2020/07/02 10:59:24 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -864,6 +864,7 @@
 SUBDIR+=       lua-std-_debug
 SUBDIR+=       lua-std-normalize
 SUBDIR+=       lua-stdlib
+SUBDIR+=       lua-term
 SUBDIR+=       lua-thrift
 SUBDIR+=       lutok
 SUBDIR+=       lwp
diff -r 91c12154c24c -r 68c9217829b3 devel/lua-term/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-term/DESCR      Thu Jul 02 10:59:24 2020 +0000
@@ -0,0 +1,1 @@
+lua-term is a Lua module for manipulating a terminal.
diff -r 91c12154c24c -r 68c9217829b3 devel/lua-term/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-term/Makefile   Thu Jul 02 10:59:24 2020 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2020/07/02 10:59:24 nia Exp $
+
+DISTNAME=      lua-term-0.07
+PKGNAME=       ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=hoelzro/}
+GITHUB_PROJECT=        lua-term
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/hoelzro/lua-term
+COMMENT=       Lua module for manipulating a terminal
+LICENSE=       mit
+
+USE_TOOLS+=    gmake pkg-config
+
+MAKE_FLAGS+=   LUA_DIR=${PREFIX}
+MAKE_FLAGS+=   LUA_VER=${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
+MAKE_FLAGS+=   LUA_INC=${PREFIX}/${LUA_INCDIR}
+MAKE_FLAGS+=   LUA_LIBDIR=${PREFIX}/${LUA_CDIR}/term
+MAKE_FLAGS+=   LUA_SHARE=${PREFIX}/${LUA_LDIR}/term
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 91c12154c24c -r 68c9217829b3 devel/lua-term/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-term/PLIST      Thu Jul 02 10:59:24 2020 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/02 10:59:24 nia Exp $
+${LUA_CDIR}/term/core.so
+${LUA_LDIR}/term/colors.lua
+${LUA_LDIR}/term/cursor.lua
+${LUA_LDIR}/term/init.lua
diff -r 91c12154c24c -r 68c9217829b3 devel/lua-term/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-term/distinfo   Thu Jul 02 10:59:24 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/07/02 10:59:24 nia Exp $
+
+SHA1 (lua-term-0.07.tar.gz) = c0e8fc9054e784fb10af9dca015f713442402833
+RMD160 (lua-term-0.07.tar.gz) = 796ca95784ad56a8a1e035a5bccd96efde019ba9
+SHA512 (lua-term-0.07.tar.gz) = 2046ba1861ff590c191bb651941c45eb8b6e9a1252b05e78daaeb31837ce1fc7da9ba124aec34dc7842fd304e945754c463ffd75941125ff952e911ba66efa31
+Size (lua-term-0.07.tar.gz) = 4365 bytes
+SHA1 (patch-Makefile) = de8eec3174a4ebb81af1a1df890a92f408bf1fc8
diff -r 91c12154c24c -r 68c9217829b3 devel/lua-term/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-term/patches/patch-Makefile     Thu Jul 02 10:59:24 2020 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-Makefile,v 1.1 2020/07/02 10:59:24 nia Exp $
+
+- Don't pass -O3.
+- Use LDFLAGS when linking.
+- DESTDIR support.
+
+--- Makefile.orig      2016-04-06 03:11:44.000000000 +0000
++++ Makefile
+@@ -6,7 +6,7 @@ LUA_LIBDIR      := $(LUA_DIR)/lib/lua/$(
+ LUA_INC         := $(LUA_DIR)/include/lua$(LUA_VER)
+ LUA_SHARE       := $(LUA_DIR)/share/lua/$(LUA_VER)/term
+ CWARNS          := -Wall -pedantic
+-CFLAGS          += $(CWARNS) -O3 -I$(LUA_INC) -fPIC
++CFLAGS          += $(CWARNS) -I$(LUA_INC) -fPIC
+ LIB_OPTION      := -shared
+ 
+ SONAME          := core.so
+@@ -26,13 +26,13 @@ $(SONAME):
+       ln -s $(SONAMEV) $@
+ 
+ $(LIBRARY): $(OBJ)
+-      $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) -lc
++      $(CC) $(LDFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) -lc
+ 
+ install:
+-      mkdir -p $(LUA_LIBDIR)
+-      cp $(SONAME) $(LUA_LIBDIR)
+-      mkdir -p $(LUA_SHARE)
+-      cp $(FILES) $(LUA_SHARE)
++      mkdir -p $(DESTDIR)$(LUA_LIBDIR)
++      cp $(SONAME) $(DESTDIR)$(LUA_LIBDIR)
++      mkdir -p $(DESTDIR)$(LUA_SHARE)
++      cp $(FILES) $(DESTDIR)$(LUA_SHARE)
+ 
+ clean:
+       $(RM) $(LIBRARY) $(SONAMEV) $(SONAME) *.o



Home | Main Index | Thread Index | Old Index