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-rings



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bf765a8d17db
branches:  trunk
changeset: 435616:bf765a8d17db
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Jul 10 11:18:01 2020 +0000

description:
devel: Add lua-rings

Rings is a library which provides a way to create new Lua states from within
Lua. It also offers a simple way to communicate between the creator and the
created states.

diffstat:

 devel/Makefile                         |   4 ++-
 devel/lua-rings/DESCR                  |   3 ++
 devel/lua-rings/Makefile               |  35 ++++++++++++++++++++++++++++++++++
 devel/lua-rings/PLIST                  |   7 ++++++
 devel/lua-rings/distinfo               |   8 +++++++
 devel/lua-rings/patches/patch-Makefile |  15 ++++++++++++++
 devel/lua-rings/patches/patch-config   |  16 +++++++++++++++
 7 files changed, 87 insertions(+), 1 deletions(-)

diffs (128 lines):

diff -r 1e47e0b1d1fd -r bf765a8d17db devel/Makefile
--- a/devel/Makefile    Fri Jul 10 10:59:56 2020 +0000
+++ b/devel/Makefile    Fri Jul 10 11:18:01 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3169 2020/07/10 10:26:59 nia Exp $
+# $NetBSD: Makefile,v 1.3170 2020/07/10 11:18:01 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -875,8 +875,10 @@
 SUBDIR+=       lua-mediator
 SUBDIR+=       lua-mimetypes
 SUBDIR+=       lua-mode
+SUBDIR+=       lua-moses
 SUBDIR+=       lua-penlight
 SUBDIR+=       lua-posix
+SUBDIR+=       lua-rings
 SUBDIR+=       lua-rocks
 SUBDIR+=       lua-say
 SUBDIR+=       lua-sdl2
diff -r 1e47e0b1d1fd -r bf765a8d17db devel/lua-rings/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-rings/DESCR     Fri Jul 10 11:18:01 2020 +0000
@@ -0,0 +1,3 @@
+Rings is a library which provides a way to create new Lua states from within
+Lua. It also offers a simple way to communicate between the creator and the
+created states.
diff -r 1e47e0b1d1fd -r bf765a8d17db devel/lua-rings/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-rings/Makefile  Fri Jul 10 11:18:01 2020 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2020/07/10 11:18:01 nia Exp $
+
+DISTNAME=      rings-1.3.0
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=keplerproject/}
+GITHUB_PROJECT=        rings
+GITHUB_TAG=    v_${PKGVERSION_NOREV:S/./_/g}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://keplerproject.github.io/rings/
+COMMENT=       Library which provides a way to create new Lua states from within Lua
+LICENSE=       mit
+
+WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
+
+USE_TOOLS+=    gmake
+
+MAKE_FLAGS+=   LUA_LIBDIR=${PREFIX}/${LUA_CDIR}
+MAKE_FLAGS+=   LUA_DIR=${PREFIX}/${LUA_LDIR}
+MAKE_FLAGS+=   LUA_INC=${LUA_INCDIR}
+
+INSTALLATION_DIRS+=    ${LUA_DOCDIR}
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/doc/us/* ${DESTDIR}${PREFIX}/${LUA_DOCDIR}
+
+do-test:
+       cd ${WRKSRC}/tests && \
+               LUA_CPATH=${WRKSRC}/src/?.so \
+               LUA_PATH=${WRKSRC}/src/?.lua \
+               ${LUA_INTERPRETER} sample_state.lua
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1e47e0b1d1fd -r bf765a8d17db devel/lua-rings/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-rings/PLIST     Fri Jul 10 11:18:01 2020 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/10 11:18:01 nia Exp $
+${LUA_CDIR}/rings.so
+${LUA_DOCDIR}/index.html
+${LUA_DOCDIR}/license.html
+${LUA_DOCDIR}/manual.html
+${LUA_DOCDIR}/rings.png
+${LUA_LDIR}/stable.lua
diff -r 1e47e0b1d1fd -r bf765a8d17db devel/lua-rings/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-rings/distinfo  Fri Jul 10 11:18:01 2020 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/07/10 11:18:01 nia Exp $
+
+SHA1 (rings-1.3.0.tar.gz) = e16029ddad5c2ffeca0416f01b88750d61fd13ba
+RMD160 (rings-1.3.0.tar.gz) = b63307cfa5727d0321dbe8de64a3023e66c6452b
+SHA512 (rings-1.3.0.tar.gz) = 04542ae08a3ad70120473ae383301100ded75f39aa1147cd2c99b2a5d82c90cae452d90333a9788e725a2b7a11018320cf39611620175cd9706b922ff4ad6dc1
+Size (rings-1.3.0.tar.gz) = 23322 bytes
+SHA1 (patch-Makefile) = caa2d2fadf9ca61a70ac691b68669d48850e08d1
+SHA1 (patch-config) = 7cb2b87773c72de2a566c8d34ff52ac75e89d93a
diff -r 1e47e0b1d1fd -r bf765a8d17db devel/lua-rings/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-rings/patches/patch-Makefile    Fri Jul 10 11:18:01 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2020/07/10 11:18:01 nia Exp $
+
+Don't set MACOSX_DEPLOYMENT_TARGET
+
+--- Makefile.orig      2013-09-24 13:47:05.000000000 +0000
++++ Makefile
+@@ -11,7 +11,7 @@ OBJS= src/rings.o
+ all: src/rings.so
+ 
+ src/rings.so: $(OBJS)
+-      export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/rings.so $(OBJS)
++      $(CC) $(CFLAGS) $(LIB_OPTION) -o src/rings.so $(OBJS)
+ 
+ install:
+       mkdir -p $(DESTDIR)$(LUA_LIBDIR)
diff -r 1e47e0b1d1fd -r bf765a8d17db devel/lua-rings/patches/patch-config
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-rings/patches/patch-config      Fri Jul 10 11:18:01 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-config,v 1.1 2020/07/10 11:18:01 nia Exp $
+
+Make sure WARN gets used properly.
+
+--- config.orig        2013-09-24 13:47:05.000000000 +0000
++++ config
+@@ -22,7 +22,7 @@ LIBNAME ?= $T.so.$V
+ 
+ # Compilation directives
+-WARN ?= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
++WARN += -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
+ INCS ?= -I$(LUA_INC)
+-CFLAGS ?= $(WARN) $(INCS)
++CFLAGS += $(WARN) $(INCS)
+ CC ?= gcc
+ 



Home | Main Index | Thread Index | Old Index