diff options
author | joerg <joerg@pkgsrc.org> | 2020-08-06 22:47:16 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-08-06 22:47:16 +0000 |
commit | 91c0d52d3f306449bcb6fd45edabfc3bb3d80e5c (patch) | |
tree | 58ea9782caea015f800a49504c8791589d195f79 /devel | |
parent | d8d1db8b5f7747a3b36025f2222c2fd8d2a1bd2b (diff) | |
download | pkgsrc-91c0d52d3f306449bcb6fd45edabfc3bb3d80e5c.tar.gz |
Add lua-linenoise-0.9:
Linenoise is a delightfully simple command line library. This Lua module
is simply a binding for it.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/lua-linenoise/DESCR | 2 | ||||
-rw-r--r-- | devel/lua-linenoise/Makefile | 26 | ||||
-rw-r--r-- | devel/lua-linenoise/PLIST | 2 | ||||
-rw-r--r-- | devel/lua-linenoise/distinfo | 7 | ||||
-rw-r--r-- | devel/lua-linenoise/patches/patch-Makefile | 24 |
5 files changed, 61 insertions, 0 deletions
diff --git a/devel/lua-linenoise/DESCR b/devel/lua-linenoise/DESCR new file mode 100644 index 00000000000..e115a900484 --- /dev/null +++ b/devel/lua-linenoise/DESCR @@ -0,0 +1,2 @@ +Linenoise is a delightfully simple command line library. This Lua module +is simply a binding for it. diff --git a/devel/lua-linenoise/Makefile b/devel/lua-linenoise/Makefile new file mode 100644 index 00000000000..61ccd2e2bf5 --- /dev/null +++ b/devel/lua-linenoise/Makefile @@ -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 +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 --git a/devel/lua-linenoise/PLIST b/devel/lua-linenoise/PLIST new file mode 100644 index 00000000000..4c47518494d --- /dev/null +++ b/devel/lua-linenoise/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2020/08/06 22:47:16 joerg Exp $ +${LUA_CDIR}/linenoise.so diff --git a/devel/lua-linenoise/distinfo b/devel/lua-linenoise/distinfo new file mode 100644 index 00000000000..26e3a2d0f08 --- /dev/null +++ b/devel/lua-linenoise/distinfo @@ -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 --git a/devel/lua-linenoise/patches/patch-Makefile b/devel/lua-linenoise/patches/patch-Makefile new file mode 100644 index 00000000000..8828d379372 --- /dev/null +++ b/devel/lua-linenoise/patches/patch-Makefile @@ -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 |