pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/lua-linenoise
Module Name: pkgsrc
Committed By: joerg
Date: Thu Aug 6 22:47:16 UTC 2020
Added Files:
pkgsrc/devel/lua-linenoise: DESCR Makefile PLIST distinfo
pkgsrc/devel/lua-linenoise/patches: patch-Makefile
Log Message:
Add lua-linenoise-0.9:
Linenoise is a delightfully simple command line library. This Lua module
is simply a binding for it.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-linenoise/DESCR \
pkgsrc/devel/lua-linenoise/Makefile pkgsrc/devel/lua-linenoise/PLIST \
pkgsrc/devel/lua-linenoise/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-linenoise/patches/patch-Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/lua-linenoise/DESCR
diff -u /dev/null pkgsrc/devel/lua-linenoise/DESCR:1.1
--- /dev/null Thu Aug 6 22:47:16 2020
+++ pkgsrc/devel/lua-linenoise/DESCR Thu Aug 6 22:47:16 2020
@@ -0,0 +1,2 @@
+Linenoise is a delightfully simple command line library. This Lua module
+is simply a binding for it.
Index: pkgsrc/devel/lua-linenoise/Makefile
diff -u /dev/null pkgsrc/devel/lua-linenoise/Makefile:1.1
--- /dev/null Thu Aug 6 22:47:16 2020
+++ pkgsrc/devel/lua-linenoise/Makefile Thu Aug 6 22:47:16 2020
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2020/08/06 22:47:16 joerg Exp $
+
+DISTNAME= linenoise-0.9
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES= devel lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=hoelzro/}
+GITHUB_PROJECT= lua-linenoise
+GITHUB_TAG= ${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/hoelzro/lua-linenoise/
+COMMENT= Lua binding for linenoise
+LICENSE= mit
+
+INSTALLATION_DIRS+= ${LUA_CDIR}
+
+USE_TOOLS+= gmake
+
+BUILD_TARGET=
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/linenoise.so \
+ ${DESTDIR}${PREFIX}/${LUA_CDIR}/
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/lua-linenoise/PLIST
diff -u /dev/null pkgsrc/devel/lua-linenoise/PLIST:1.1
--- /dev/null Thu Aug 6 22:47:16 2020
+++ pkgsrc/devel/lua-linenoise/PLIST Thu Aug 6 22:47:16 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/08/06 22:47:16 joerg Exp $
+${LUA_CDIR}/linenoise.so
Index: pkgsrc/devel/lua-linenoise/distinfo
diff -u /dev/null pkgsrc/devel/lua-linenoise/distinfo:1.1
--- /dev/null Thu Aug 6 22:47:16 2020
+++ pkgsrc/devel/lua-linenoise/distinfo Thu Aug 6 22:47:16 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/08/06 22:47:16 joerg Exp $
+
+SHA1 (linenoise-0.9.tar.gz) = 7b1c3598e727b28f74dbd83482d5a8ea580f1b35
+RMD160 (linenoise-0.9.tar.gz) = 1fe30be2a7517c2b1417d3888b846f6cb3a1cac4
+SHA512 (linenoise-0.9.tar.gz) = 24cecd36329f74f36026c81afe1b7a9a3213d35c9cdc433e21f45bc4867be9537d61807ecb7344d789585a80a06c4f4d2de2412aab130e84adf817b56ecd0ea5
+Size (linenoise-0.9.tar.gz) = 10310874 bytes
+SHA1 (patch-Makefile) = 71779ee8be544ce9be9acf0cda5bbcaa790cf217
Index: pkgsrc/devel/lua-linenoise/patches/patch-Makefile
diff -u /dev/null pkgsrc/devel/lua-linenoise/patches/patch-Makefile:1.1
--- /dev/null Thu Aug 6 22:47:16 2020
+++ pkgsrc/devel/lua-linenoise/patches/patch-Makefile Thu Aug 6 22:47:16 2020
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile,v 1.1 2020/08/06 22:47:16 joerg Exp $
+
+Honor proper compiler flags.
+
+--- Makefile.orig 2020-08-06 22:39:25.558919061 +0000
++++ Makefile
+@@ -4,12 +4,14 @@ OBJECTS=linenoise.o encodings/utf8.o lin
+
+ ifeq ($(OS),Darwin)
+ linenoise.dylib: $(OBJECTS)
+- gcc -o $@ -bundle -undefined dynamic_lookup $^ $(OPT_LIB)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -bundle -undefined dynamic_lookup $^ $(OPT_LIB)
+ else
+-CFLAGS=-fPIC -I/usr/include/lua5.1
+ linenoise.so: $(OBJECTS)
+- gcc -o $@ -shared $^ $(OPT_LIB)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $^ $(OPT_LIB)
+ endif
+
++%.o: %.c
++ $(CC) -c $(CFLAGS) -fPIC $< -o $@
++
+ clean:
+ rm -f *.o encodings/*.o *.so *.dylib
Home |
Main Index |
Thread Index |
Old Index