pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc
Module Name: pkgsrc
Committed By: nia
Date: Wed Jul 8 17:00:04 UTC 2020
Modified Files:
pkgsrc/textproc: Makefile
Added Files:
pkgsrc/textproc/lua-rapidjson: DESCR Makefile PLIST distinfo
pkgsrc/textproc/lua-rapidjson/patches: patch-CMakeLists.txt
Log Message:
textproc: Add lua-rapidjson
A JSON module for Lua, based on the very fast RapidJSON C++ library.
To generate a diff of this commit:
cvs rdiff -u -r1.1156 -r1.1157 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/lua-rapidjson/DESCR \
pkgsrc/textproc/lua-rapidjson/Makefile \
pkgsrc/textproc/lua-rapidjson/PLIST \
pkgsrc/textproc/lua-rapidjson/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/textproc/lua-rapidjson/patches/patch-CMakeLists.txt
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/Makefile
diff -u pkgsrc/textproc/Makefile:1.1156 pkgsrc/textproc/Makefile:1.1157
--- pkgsrc/textproc/Makefile:1.1156 Wed Jul 8 16:00:22 2020
+++ pkgsrc/textproc/Makefile Wed Jul 8 17:00:03 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1156 2020/07/08 16:00:22 nia Exp $
+# $NetBSD: Makefile,v 1.1157 2020/07/08 17:00:03 nia Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -465,6 +465,7 @@ SUBDIR+= lua-etlua
SUBDIR+= lua-expat
SUBDIR+= lua-lustache
SUBDIR+= lua-markdown
+SUBDIR+= lua-rapidjson
SUBDIR+= lua-slnunicode
SUBDIR+= lua-stringy
SUBDIR+= lua-utf8
Added files:
Index: pkgsrc/textproc/lua-rapidjson/DESCR
diff -u /dev/null pkgsrc/textproc/lua-rapidjson/DESCR:1.1
--- /dev/null Wed Jul 8 17:00:04 2020
+++ pkgsrc/textproc/lua-rapidjson/DESCR Wed Jul 8 17:00:03 2020
@@ -0,0 +1 @@
+A JSON module for Lua, based on the very fast RapidJSON C++ library.
Index: pkgsrc/textproc/lua-rapidjson/Makefile
diff -u /dev/null pkgsrc/textproc/lua-rapidjson/Makefile:1.1
--- /dev/null Wed Jul 8 17:00:04 2020
+++ pkgsrc/textproc/lua-rapidjson/Makefile Wed Jul 8 17:00:03 2020
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 17:00:03 nia Exp $
+
+DISTNAME= lua-rapidjson-0.6.1
+PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/^lua-//1}
+CATEGORIES= textproc lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=xpol/}
+GITHUB_PROJECT= lua-rapidjson
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= https://github.com/xpol/lua-rapidjson
+COMMENT= JSON module for Lua, based on the very fast RapidJSON C++ library
+LICENSE= mit
+
+TEST_DEPENDS+= ${LUA_PKGPREFIX}-busted-[0-9]*:../../devel/lua-busted
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+
+# C++11
+GCC_REQD+= 4.7
+
+INSTALLATION_DIRS+= ${LUA_CDIR}
+
+pre-configure:
+ # Use the standard cmake mechanism for finding Lua.
+ ${RM} -f ${WRKSRC}/cmake/Modules/FindLua.cmake
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/rapidjson.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
+
+do-test:
+ cd ${WRKSRC} && ${PREFIX}/bin/busted${_LUA_DOT_VERSION}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/lua-rapidjson/PLIST
diff -u /dev/null pkgsrc/textproc/lua-rapidjson/PLIST:1.1
--- /dev/null Wed Jul 8 17:00:04 2020
+++ pkgsrc/textproc/lua-rapidjson/PLIST Wed Jul 8 17:00:03 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 17:00:03 nia Exp $
+${LUA_CDIR}/rapidjson.so
Index: pkgsrc/textproc/lua-rapidjson/distinfo
diff -u /dev/null pkgsrc/textproc/lua-rapidjson/distinfo:1.1
--- /dev/null Wed Jul 8 17:00:04 2020
+++ pkgsrc/textproc/lua-rapidjson/distinfo Wed Jul 8 17:00:03 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/07/08 17:00:03 nia Exp $
+
+SHA1 (lua-rapidjson-0.6.1.tar.gz) = c8fb7409ff9ea7fe0cce33ffd07dd6e71e012b6e
+RMD160 (lua-rapidjson-0.6.1.tar.gz) = aaebada7c103664fecf3df7da0330f34dafcea5d
+SHA512 (lua-rapidjson-0.6.1.tar.gz) = 45a4ed54b84739bbec538e4a58c0162201ae3b65ea03d171c637f6868568402a45ceccaef123e7a1fbf8244aa41912bc0491f0233bcc839634568a0edbc0f274
+Size (lua-rapidjson-0.6.1.tar.gz) = 192960 bytes
+SHA1 (patch-CMakeLists.txt) = 53a55d7d60564f26d1b39614e59928eb5cbb7aaa
Index: pkgsrc/textproc/lua-rapidjson/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/textproc/lua-rapidjson/patches/patch-CMakeLists.txt:1.1
--- /dev/null Wed Jul 8 17:00:04 2020
+++ pkgsrc/textproc/lua-rapidjson/patches/patch-CMakeLists.txt Wed Jul 8 17:00:03 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2020/07/08 17:00:03 nia Exp $
+
+-march=native is a terrible idea for obvious reasons.
+
+--- CMakeLists.txt.orig 2020-07-08 16:47:57.527083977 +0000
++++ CMakeLists.txt
+@@ -31,8 +31,8 @@ if(UNIX)
+ set(PLAT "linux")
+ set(LINK_FLAGS "-shared")
+ endif(APPLE)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -fPIC -march=native")
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -fPIC -march=native")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fPIC")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fPIC")
+ else(UNIX)
+ if(WIN32)
+ set(PLAT "win32")
Home |
Main Index |
Thread Index |
Old Index