pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/lua-rapidjson lua-rapidjson: update to 0.7.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/207f16017981
branches:  trunk
changeset: 454247:207f16017981
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Jun 07 11:53:31 2021 +0000

description:
lua-rapidjson: update to 0.7.1

includes some performance improvements, fixes, and
a newer rapidjson library.

diffstat:

 textproc/lua-rapidjson/Makefile                     |   6 ++++--
 textproc/lua-rapidjson/distinfo                     |  12 ++++++------
 textproc/lua-rapidjson/patches/patch-CMakeLists.txt |  19 +++++++++++--------
 3 files changed, 21 insertions(+), 16 deletions(-)

diffs (70 lines):

diff -r b3857736376e -r 207f16017981 textproc/lua-rapidjson/Makefile
--- a/textproc/lua-rapidjson/Makefile   Mon Jun 07 11:52:48 2021 +0000
+++ b/textproc/lua-rapidjson/Makefile   Mon Jun 07 11:53:31 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2020/07/08 17:00:03 nia Exp $
+# $NetBSD: Makefile,v 1.2 2021/06/07 11:53:31 nia Exp $
 
-DISTNAME=      lua-rapidjson-0.6.1
+DISTNAME=      lua-rapidjson-0.7.1
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua-//1}
 CATEGORIES=    textproc lua
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=xpol/}
@@ -17,6 +17,8 @@
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
 
+CMAKE_ARGS+=   -DLUA_RAPIDJSON_VERSION=${PKGVERSION}
+
 # C++11
 GCC_REQD+=     4.7
 
diff -r b3857736376e -r 207f16017981 textproc/lua-rapidjson/distinfo
--- a/textproc/lua-rapidjson/distinfo   Mon Jun 07 11:52:48 2021 +0000
+++ b/textproc/lua-rapidjson/distinfo   Mon Jun 07 11:53:31 2021 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.1 2020/07/08 17:00:03 nia Exp $
+$NetBSD: distinfo,v 1.2 2021/06/07 11:53:31 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
+SHA1 (lua-rapidjson-0.7.1.tar.gz) = 09322ef9a91596afbc2bf5303a8aa7c1c10af78d
+RMD160 (lua-rapidjson-0.7.1.tar.gz) = d088e03472480a1847c7ff2be03c9fa551d90968
+SHA512 (lua-rapidjson-0.7.1.tar.gz) = e84157ddf000605cf41faf359eb51223867203cccd3c0d3597b1bc8e237ad6eda85ddf7854d97f1c57551e601f9a4389ac51143b4c51c27d21344b71e5a084dd
+Size (lua-rapidjson-0.7.1.tar.gz) = 196402 bytes
+SHA1 (patch-CMakeLists.txt) = 0cab7e139d29289582bfda81edf6e74d6df00494
diff -r b3857736376e -r 207f16017981 textproc/lua-rapidjson/patches/patch-CMakeLists.txt
--- a/textproc/lua-rapidjson/patches/patch-CMakeLists.txt       Mon Jun 07 11:52:48 2021 +0000
+++ b/textproc/lua-rapidjson/patches/patch-CMakeLists.txt       Mon Jun 07 11:53:31 2021 +0000
@@ -1,17 +1,20 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2020/07/08 17:00:03 nia Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2021/06/07 11:53:31 nia Exp $
 
--march=native is a terrible idea for obvious reasons.
+-march=native is a terrible idea if we want binary packages to work.
 
---- CMakeLists.txt.orig        2020-07-08 16:47:57.527083977 +0000
+--- CMakeLists.txt.orig        2021-04-09 11:59:20.000000000 +0000
 +++ CMakeLists.txt
-@@ -31,8 +31,8 @@ if(UNIX)
+@@ -31,12 +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")
+-    add_compile_options(-g -Wall -fPIC)
++    add_compile_options(-Wall -fPIC)
+     include(CheckCXXCompilerFlag)
+-    CHECK_CXX_COMPILER_FLAG("-march=native" COMPILER_SUPPORTS_ARCH_NATIVE)
+-    if (COMPILER_SUPPORTS_ARCH_NATIVE)
+-        add_compile_options(-march=native)
+-    endif()
  else(UNIX)
      if(WIN32)
          set(PLAT "win32")



Home | Main Index | Thread Index | Old Index