Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc textproc: Add lua-rapidjson



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d6a9be2c6575
branches:  trunk
changeset: 435533:d6a9be2c6575
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 08 17:00:03 2020 +0000

description:
textproc: Add lua-rapidjson

A JSON module for Lua, based on the very fast RapidJSON C++ library.

diffstat:

 textproc/Makefile                                   |   3 +-
 textproc/lua-rapidjson/DESCR                        |   1 +
 textproc/lua-rapidjson/Makefile                     |  36 +++++++++++++++++++++
 textproc/lua-rapidjson/PLIST                        |   2 +
 textproc/lua-rapidjson/distinfo                     |   7 ++++
 textproc/lua-rapidjson/patches/patch-CMakeLists.txt |  17 +++++++++
 6 files changed, 65 insertions(+), 1 deletions(-)

diffs (100 lines):

diff -r 08c72b86c813 -r d6a9be2c6575 textproc/Makefile
--- a/textproc/Makefile Wed Jul 08 16:40:55 2020 +0000
+++ b/textproc/Makefile Wed Jul 08 17:00:03 2020 +0000
@@ -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-expat
 SUBDIR+=       lua-lustache
 SUBDIR+=       lua-markdown
+SUBDIR+=       lua-rapidjson
 SUBDIR+=       lua-slnunicode
 SUBDIR+=       lua-stringy
 SUBDIR+=       lua-utf8
diff -r 08c72b86c813 -r d6a9be2c6575 textproc/lua-rapidjson/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-rapidjson/DESCR      Wed Jul 08 17:00:03 2020 +0000
@@ -0,0 +1,1 @@
+A JSON module for Lua, based on the very fast RapidJSON C++ library.
diff -r 08c72b86c813 -r d6a9be2c6575 textproc/lua-rapidjson/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-rapidjson/Makefile   Wed Jul 08 17:00:03 2020 +0000
@@ -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"
diff -r 08c72b86c813 -r d6a9be2c6575 textproc/lua-rapidjson/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-rapidjson/PLIST      Wed Jul 08 17:00:03 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 17:00:03 nia Exp $
+${LUA_CDIR}/rapidjson.so
diff -r 08c72b86c813 -r d6a9be2c6575 textproc/lua-rapidjson/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-rapidjson/distinfo   Wed Jul 08 17:00:03 2020 +0000
@@ -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
diff -r 08c72b86c813 -r d6a9be2c6575 textproc/lua-rapidjson/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/lua-rapidjson/patches/patch-CMakeLists.txt       Wed Jul 08 17:00:03 2020 +0000
@@ -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