Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2020 07:23:23 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r530565 - in head/devel/libcjson: . files
Message-ID:  <202004040723.0347NNxZ042362@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Apr  4 07:23:22 2020
New Revision: 530565
URL: https://svnweb.freebsd.org/changeset/ports/530565

Log:
  Update to 1.7.13
  
  Changes:	https://github.com/DaveGamble/cJSON/releases

Added:
  head/devel/libcjson/files/
  head/devel/libcjson/files/patch-cJSON.c   (contents, props changed)
Modified:
  head/devel/libcjson/Makefile
  head/devel/libcjson/distinfo

Modified: head/devel/libcjson/Makefile
==============================================================================
--- head/devel/libcjson/Makefile	Sat Apr  4 07:23:08 2020	(r530564)
+++ head/devel/libcjson/Makefile	Sat Apr  4 07:23:22 2020	(r530565)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	libcjson
-PORTVERSION=	1.7.12
-PORTREVISION=	1
+PORTVERSION=	1.7.13
 DISTVERSIONPREFIX=	v
 CATEGORIES=	devel
 
@@ -16,6 +15,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 USES=		cmake compiler:c11
 
 CMAKE_ON=	BUILD_SHARED_AND_STATIC_LIBS ENABLE_CJSON_UTILS ENABLE_TARGET_EXPORT
+USE_CSTD=	c11
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
 

Modified: head/devel/libcjson/distinfo
==============================================================================
--- head/devel/libcjson/distinfo	Sat Apr  4 07:23:08 2020	(r530564)
+++ head/devel/libcjson/distinfo	Sat Apr  4 07:23:22 2020	(r530565)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1558105464
-SHA256 (DaveGamble-cJSON-v1.7.12_GH0.tar.gz) = 760687665ab41a5cff9c40b1053c19572bcdaadef1194e5cba1b5e6f824686e7
-SIZE (DaveGamble-cJSON-v1.7.12_GH0.tar.gz) = 348294
+TIMESTAMP = 1585907192
+SHA256 (DaveGamble-cJSON-v1.7.13_GH0.tar.gz) = d4e77a38f540f2c37f55758f2666655314f1f51c716fea5f279659940efdcf04
+SIZE (DaveGamble-cJSON-v1.7.13_GH0.tar.gz) = 354448

Added: head/devel/libcjson/files/patch-cJSON.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libcjson/files/patch-cJSON.c	Sat Apr  4 07:23:22 2020	(r530565)
@@ -0,0 +1,11 @@
+--- cJSON.c.orig	2020-04-02 15:35:50 UTC
++++ cJSON.c
+@@ -106,7 +106,7 @@ CJSON_PUBLIC(double) cJSON_GetNumberValue(cJSON *item)
+ {
+     if (!cJSON_IsNumber(item)) 
+     {
+-        return NAN;
++        return (double)NAN;
+     }
+ 
+     return item->valuedouble;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004040723.0347NNxZ042362>