pkgsrc-WIP-changes archive

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

wip/lua-term: import lua52-term-0.7



Module Name:	pkgsrc-wip
Committed By:	Jonathan Buschmann <jonthn+pkgsrc%pinacea.com@localhost>
Pushed By:	jonthn
Date:		Sat Jan 4 00:08:55 2020 +0800
Changeset:	12474d3a1a500940fe00f18bfb0d09512d245996

Added Files:
	lua-term/DESCR
	lua-term/Makefile
	lua-term/PLIST
	lua-term/distinfo
	lua-term/patches/patch-Makefile

Log Message:
wip/lua-term: import lua52-term-0.7

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

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=12474d3a1a500940fe00f18bfb0d09512d245996

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lua-term/DESCR                  |  1 +
 lua-term/Makefile               | 26 ++++++++++++++++++
 lua-term/PLIST                  |  5 ++++
 lua-term/distinfo               |  7 +++++
 lua-term/patches/patch-Makefile | 58 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 97 insertions(+)

diffs:
diff --git a/lua-term/DESCR b/lua-term/DESCR
new file mode 100644
index 0000000000..a21b3bcafb
--- /dev/null
+++ b/lua-term/DESCR
@@ -0,0 +1 @@
+lua-term is a Lua module for manipulating a terminal.
diff --git a/lua-term/Makefile b/lua-term/Makefile
new file mode 100644
index 0000000000..5193f40c1c
--- /dev/null
+++ b/lua-term/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+DISTNAME=	lua-term-0.7
+PKGNAME=	${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=hoelzro/}
+GITHUB_PROJECT=	lua-term
+GITHUB_TAG=	0.07
+
+HOMEPAGE=	https://github.com/hoelzro/lua-term
+COMMENT=	Lua module for manipulating a terminal
+LICENSE=	mit
+
+USE_TOOLS+=	gmake pkg-config
+
+INSTALLATION_DIRS+=	${LUA_LDIR} ${LUA_CDIR}
+
+MAKE_ENV+=	LUA_DIR=${PREFIX}
+MAKE_ENV+=	LUA_VER=${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
+MAKE_ENV+=	LUA_INC=${PREFIX}/${LUA_INCDIR}
+MAKE_ENV+=	LUA_LIBDIR=${PREFIX}/${LUA_CDIR}/term
+MAKE_ENV+=	LUA_SHARE=${PREFIX}/${LUA_LDIR}/term
+MAKE_ENV+=	OPSYS=${OPSYS}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-term/PLIST b/lua-term/PLIST
new file mode 100644
index 0000000000..095945b3f6
--- /dev/null
+++ b/lua-term/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+${LUA_CDIR}/term/core.so
+${LUA_LDIR}/term/colors.lua
+${LUA_LDIR}/term/cursor.lua
+${LUA_LDIR}/term/init.lua
diff --git a/lua-term/distinfo b/lua-term/distinfo
new file mode 100644
index 0000000000..0da97982e9
--- /dev/null
+++ b/lua-term/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.3 2015/08/10 22:13:59 jonthn Exp $
+
+SHA1 (lua-term-0.7.tar.gz) = c0e8fc9054e784fb10af9dca015f713442402833
+RMD160 (lua-term-0.7.tar.gz) = 796ca95784ad56a8a1e035a5bccd96efde019ba9
+SHA512 (lua-term-0.7.tar.gz) = 2046ba1861ff590c191bb651941c45eb8b6e9a1252b05e78daaeb31837ce1fc7da9ba124aec34dc7842fd304e945754c463ffd75941125ff952e911ba66efa31
+Size (lua-term-0.7.tar.gz) = 4365 bytes
+SHA1 (patch-Makefile) = 058b4321901f5eed27f6f1fdc7d2505b0003a1b6
diff --git a/lua-term/patches/patch-Makefile b/lua-term/patches/patch-Makefile
new file mode 100644
index 0000000000..0f941c4329
--- /dev/null
+++ b/lua-term/patches/patch-Makefile
@@ -0,0 +1,58 @@
+$NetBSD$
+
+Adjust Makefile to work well for pkgsrc, specific path, options for compilation
+ and link
+
+--- Makefile.orig	2016-04-06 03:11:44.000000000 +0000
++++ Makefile
+@@ -2,37 +2,32 @@
+ 
+ LUA_VER         ?= 5.1
+ LUA_DIR         ?= /usr
+-LUA_LIBDIR      := $(LUA_DIR)/lib/lua/$(LUA_VER)/term
+-LUA_INC         := $(LUA_DIR)/include/lua$(LUA_VER)
+-LUA_SHARE       := $(LUA_DIR)/share/lua/$(LUA_VER)/term
++LUA_LIBDIR      ?= $(LUA_DIR)/lib/lua/$(LUA_VER)/term
++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
+ LIB_OPTION      := -shared
+ 
+ SONAME          := core.so
+-SONAMEV         := $(SONAME).1
+-LIBRARY         := $(SONAMEV).0.1
++LIBRARY         := $(SONAME)
+ SRC             := core.c
+ OBJ             := $(patsubst %.c, %.o, $(SRC))
+ 
+-FILES           := term/init.lua term/cursor.lua term/colors.lua
+-
+-all: $(LIBRARY) $(SONAMEV) $(SONAME)
++EXTRA_LDFLAGS_Darwin	= -install_name $(LUA_LIBDIR)/$(SONAME) -undefined dynamic_lookup
+ 
+-$(SONAMEV):
+-	ln -s $(LIBRARY) $@
++FILES           := term/init.lua term/cursor.lua term/colors.lua
+ 
+-$(SONAME):
+-	ln -s $(SONAMEV) $@
++all: $(LIBRARY)
+ 
+ $(LIBRARY): $(OBJ)
+-	$(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBRARY) $(OBJ) -lc
++	$(CC) $(LIB_OPTION) $(EXTRA_LDFLAGS_$(OPSYS)) -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
++	$(RM) $(LIBRARY) $(SONAME) *.o


Home | Main Index | Thread Index | Old Index