Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-linenoise Add lua-linenoise-0.9:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1f0ace804eb
branches:  trunk
changeset: 436604:f1f0ace804eb
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 06 22:47:16 2020 +0000

description:
Add lua-linenoise-0.9:

Linenoise is a delightfully simple command line library. This Lua module
is simply a binding for it.

diffstat:

 devel/lua-linenoise/DESCR                  |   2 ++
 devel/lua-linenoise/Makefile               |  26 ++++++++++++++++++++++++++
 devel/lua-linenoise/PLIST                  |   2 ++
 devel/lua-linenoise/distinfo               |   7 +++++++
 devel/lua-linenoise/patches/patch-Makefile |  24 ++++++++++++++++++++++++
 5 files changed, 61 insertions(+), 0 deletions(-)

diffs (81 lines):

diff -r 4f83a11a5f8b -r f1f0ace804eb devel/lua-linenoise/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-linenoise/DESCR Thu Aug 06 22:47:16 2020 +0000
@@ -0,0 +1,2 @@
+Linenoise is a delightfully simple command line library. This Lua module
+is simply a binding for it.
diff -r 4f83a11a5f8b -r f1f0ace804eb devel/lua-linenoise/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-linenoise/Makefile      Thu Aug 06 22:47:16 2020 +0000
@@ -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"
diff -r 4f83a11a5f8b -r f1f0ace804eb devel/lua-linenoise/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-linenoise/PLIST Thu Aug 06 22:47:16 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/08/06 22:47:16 joerg Exp $
+${LUA_CDIR}/linenoise.so
diff -r 4f83a11a5f8b -r f1f0ace804eb devel/lua-linenoise/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-linenoise/distinfo      Thu Aug 06 22:47:16 2020 +0000
@@ -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
diff -r 4f83a11a5f8b -r f1f0ace804eb devel/lua-linenoise/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-linenoise/patches/patch-Makefile        Thu Aug 06 22:47:16 2020 +0000
@@ -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