pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel
Module Name: pkgsrc
Committed By: nia
Date: Fri Jul 10 11:18:02 UTC 2020
Modified Files:
pkgsrc/devel: Makefile
Added Files:
pkgsrc/devel/lua-rings: DESCR Makefile PLIST distinfo
pkgsrc/devel/lua-rings/patches: patch-Makefile patch-config
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.3169 -r1.3170 pkgsrc/devel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-rings/DESCR \
pkgsrc/devel/lua-rings/Makefile pkgsrc/devel/lua-rings/PLIST \
pkgsrc/devel/lua-rings/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-rings/patches/patch-Makefile \
pkgsrc/devel/lua-rings/patches/patch-config
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.3169 pkgsrc/devel/Makefile:1.3170
--- pkgsrc/devel/Makefile:1.3169 Fri Jul 10 10:26:59 2020
+++ pkgsrc/devel/Makefile Fri Jul 10 11:18:01 2020
@@ -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-luv
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
Added files:
Index: pkgsrc/devel/lua-rings/DESCR
diff -u /dev/null pkgsrc/devel/lua-rings/DESCR:1.1
--- /dev/null Fri Jul 10 11:18:02 2020
+++ pkgsrc/devel/lua-rings/DESCR Fri Jul 10 11:18:01 2020
@@ -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.
Index: pkgsrc/devel/lua-rings/Makefile
diff -u /dev/null pkgsrc/devel/lua-rings/Makefile:1.1
--- /dev/null Fri Jul 10 11:18:02 2020
+++ pkgsrc/devel/lua-rings/Makefile Fri Jul 10 11:18:01 2020
@@ -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"
Index: pkgsrc/devel/lua-rings/PLIST
diff -u /dev/null pkgsrc/devel/lua-rings/PLIST:1.1
--- /dev/null Fri Jul 10 11:18:02 2020
+++ pkgsrc/devel/lua-rings/PLIST Fri Jul 10 11:18:01 2020
@@ -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
Index: pkgsrc/devel/lua-rings/distinfo
diff -u /dev/null pkgsrc/devel/lua-rings/distinfo:1.1
--- /dev/null Fri Jul 10 11:18:02 2020
+++ pkgsrc/devel/lua-rings/distinfo Fri Jul 10 11:18:01 2020
@@ -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
Index: pkgsrc/devel/lua-rings/patches/patch-Makefile
diff -u /dev/null pkgsrc/devel/lua-rings/patches/patch-Makefile:1.1
--- /dev/null Fri Jul 10 11:18:02 2020
+++ pkgsrc/devel/lua-rings/patches/patch-Makefile Fri Jul 10 11:18:01 2020
@@ -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)
Index: pkgsrc/devel/lua-rings/patches/patch-config
diff -u /dev/null pkgsrc/devel/lua-rings/patches/patch-config:1.1
--- /dev/null Fri Jul 10 11:18:02 2020
+++ pkgsrc/devel/lua-rings/patches/patch-config Fri Jul 10 11:18:01 2020
@@ -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