pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/jsoncpp jsoncpp: update to 1.8.4nb2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bee245efd39a
branches:  trunk
changeset: 332340:bee245efd39a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Apr 09 07:08:18 2019 +0000

description:
jsoncpp: update to 1.8.4nb2.

Give static library the same name as the shared one.

Bump dependency in bl3.mk to a version with shared libraries.

diffstat:

 textproc/jsoncpp/Makefile                                   |   4 +-
 textproc/jsoncpp/PLIST                                      |   4 +-
 textproc/jsoncpp/buildlink3.mk                              |   4 +-
 textproc/jsoncpp/distinfo                                   |   3 +-
 textproc/jsoncpp/patches/patch-src_lib__json_CMakeLists.txt |  15 +++++++++++++
 5 files changed, 23 insertions(+), 7 deletions(-)

diffs (81 lines):

diff -r ac8125bdac62 -r bee245efd39a textproc/jsoncpp/Makefile
--- a/textproc/jsoncpp/Makefile Tue Apr 09 06:48:18 2019 +0000
+++ b/textproc/jsoncpp/Makefile Tue Apr 09 07:08:18 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2019/04/09 06:48:18 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2019/04/09 07:08:18 wiz Exp $
 
 DISTNAME=      jsoncpp-1.8.4
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=open-source-parsers/}
 
diff -r ac8125bdac62 -r bee245efd39a textproc/jsoncpp/PLIST
--- a/textproc/jsoncpp/PLIST    Tue Apr 09 06:48:18 2019 +0000
+++ b/textproc/jsoncpp/PLIST    Tue Apr 09 07:08:18 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2019/04/09 06:48:18 wiz Exp $
+@comment $NetBSD: PLIST,v 1.4 2019/04/09 07:08:18 wiz Exp $
 include/json/allocator.h
 include/json/assertions.h
 include/json/autolink.h
@@ -10,8 +10,8 @@
 include/json/value.h
 include/json/version.h
 include/json/writer.h
+lib/libjsoncpp.a
 lib/libjsoncpp.so
 lib/libjsoncpp.so.1
 lib/libjsoncpp.so.${PKGVERSION}
-lib/libjsoncpp_static.a
 lib/pkgconfig/jsoncpp.pc
diff -r ac8125bdac62 -r bee245efd39a textproc/jsoncpp/buildlink3.mk
--- a/textproc/jsoncpp/buildlink3.mk    Tue Apr 09 06:48:18 2019 +0000
+++ b/textproc/jsoncpp/buildlink3.mk    Tue Apr 09 07:08:18 2019 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.2 2019/04/09 06:48:18 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2019/04/09 07:08:18 wiz Exp $
 
 BUILDLINK_TREE+=       jsoncpp
 
 .if !defined(JSONCPP_BUILDLINK3_MK)
 JSONCPP_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.jsoncpp+=        jsoncpp>=0.6.0rc2svn276
+BUILDLINK_API_DEPENDS.jsoncpp+=        jsoncpp>=1.8.4nb1
 BUILDLINK_PKGSRCDIR.jsoncpp?=  ../../textproc/jsoncpp
 .endif # JSONCPP_BUILDLINK3_MK
 
diff -r ac8125bdac62 -r bee245efd39a textproc/jsoncpp/distinfo
--- a/textproc/jsoncpp/distinfo Tue Apr 09 06:48:18 2019 +0000
+++ b/textproc/jsoncpp/distinfo Tue Apr 09 07:08:18 2019 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.8 2019/04/09 06:48:18 wiz Exp $
+$NetBSD: distinfo,v 1.9 2019/04/09 07:08:18 wiz Exp $
 
 SHA1 (jsoncpp-1.8.4.tar.gz) = 98a56dba0cc6378c91668b6e1c120a657820c45e
 RMD160 (jsoncpp-1.8.4.tar.gz) = 5444cc199daef95c3297aacafb7471d1a4e2b3bf
 SHA512 (jsoncpp-1.8.4.tar.gz) = f70361a3263dd8b9441374a9a409462be1426c0d6587c865171a80448ab73b3f69de2b4d70d2f0c541764e1e6cccc727dd53178347901f625ec6fb54fb94f4f1
 Size (jsoncpp-1.8.4.tar.gz) = 200226 bytes
 SHA1 (patch-CMakeLists.txt) = ce873c2fb1a1c6df0748613f0d1fe8441ceb1132
+SHA1 (patch-src_lib__json_CMakeLists.txt) = 13cd2b4fb864644bc67a493d00acc9c32822aa38
diff -r ac8125bdac62 -r bee245efd39a textproc/jsoncpp/patches/patch-src_lib__json_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/jsoncpp/patches/patch-src_lib__json_CMakeLists.txt       Tue Apr 09 07:08:18 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_lib__json_CMakeLists.txt,v 1.1 2019/04/09 07:08:18 wiz Exp $
+
+We're not on Windows, so static libraries can have the same name as shared ones.
+
+--- src/lib_json/CMakeLists.txt.orig   2017-12-20 21:07:10.000000000 +0000
++++ src/lib_json/CMakeLists.txt
+@@ -96,7 +96,7 @@ IF(BUILD_STATIC_LIBS)
+     ADD_LIBRARY(jsoncpp_lib_static STATIC ${PUBLIC_HEADERS} ${jsoncpp_sources})
+     SET_TARGET_PROPERTIES( jsoncpp_lib_static PROPERTIES VERSION ${JSONCPP_VERSION} SOVERSION ${JSONCPP_SOVERSION})
+     # avoid name clashes on windows as the shared import lib is also named jsoncpp.lib
+-    if (NOT DEFINED STATIC_SUFFIX AND BUILD_SHARED_LIBS)
++    if (WINDOWS AND NOT DEFINED STATIC_SUFFIX AND BUILD_SHARED_LIBS)
+       set (STATIC_SUFFIX "_static")
+     endif ()
+     set_target_properties (jsoncpp_lib_static PROPERTIES OUTPUT_NAME jsoncpp${STATIC_SUFFIX}



Home | Main Index | Thread Index | Old Index