pkgsrc-WIP-changes archive

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

cJSON: Import cJSON-1.7.12 as devel/cJSON



Module Name:	pkgsrc-wip
Committed By:	Travis Paul <tr%vispaul.me@localhost>
Pushed By:	tpaul
Date:		Wed May 22 08:24:12 2019 +0800
Changeset:	0b57732ae2077d7eb900c9302bb902790cb44f18

Modified Files:
	Makefile
Added Files:
	cJSON/DESCR
	cJSON/Makefile
	cJSON/PLIST
	cJSON/TODO
	cJSON/distinfo

Log Message:
cJSON: Import cJSON-1.7.12 as devel/cJSON

cJSON aims to be the dumbest possible parser that you can get your job done
with. It's a single file of C, and a single header file.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0b57732ae2077d7eb900c9302bb902790cb44f18

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile       |  1 +
 cJSON/DESCR    |  2 ++
 cJSON/Makefile | 23 +++++++++++++++++++++++
 cJSON/PLIST    | 10 ++++++++++
 cJSON/TODO     |  1 +
 cJSON/distinfo |  6 ++++++
 6 files changed, 43 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 9b883b91a1..9158787099 100644
--- a/Makefile
+++ b/Makefile
@@ -403,6 +403,7 @@ SUBDIR+=	cinnamon-screensaver
 SUBDIR+=	cinnamon-session
 SUBDIR+=	cinnamon-settings-daemon
 SUBDIR+=	ciwiki
+SUBDIR+=	cJSON
 SUBDIR+=	cjs
 SUBDIR+=	cl-alexandria
 SUBDIR+=	cl-anaphora
diff --git a/cJSON/DESCR b/cJSON/DESCR
new file mode 100644
index 0000000000..76d3d1436c
--- /dev/null
+++ b/cJSON/DESCR
@@ -0,0 +1,2 @@
+cJSON aims to be the dumbest possible parser that you can get your job done
+with. It's a single file of C, and a single header file.
diff --git a/cJSON/Makefile b/cJSON/Makefile
new file mode 100644
index 0000000000..dd2ee337a2
--- /dev/null
+++ b/cJSON/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	cJSON
+DISTNAME=	v1.7.12
+PKGNAME=	${GITHUB_PROJECT}-1.7.12
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=DaveGamble/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	tpaul%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/DaveGamble/cJSON/
+COMMENT=	Ultralightweight JSON parser in ANSI C
+LICENSE=	mit
+
+WRKSRC=		${WRKDIR}/cJSON-1.7.12
+USE_CMAKE=	yes
+USE_TOOLS+=	pkg-config
+TEST_TARGET=	test
+
+PKGCONFIG_OVERRIDE+=	library_config/libcjson_utils.pc.in
+PKGCONFIG_OVERRIDE+=	library_config/libcjson.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/cJSON/PLIST b/cJSON/PLIST
new file mode 100644
index 0000000000..a59324d911
--- /dev/null
+++ b/cJSON/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+include/cjson/cJSON.h
+lib/cmake/cJSON/cJSONConfig.cmake
+lib/cmake/cJSON/cJSONConfigVersion.cmake
+lib/cmake/cJSON/cjson-noconfig.cmake
+lib/cmake/cJSON/cjson.cmake
+lib/libcjson.so
+lib/libcjson.so.1
+lib/libcjson.so.${PKGVERSION}
+lib/pkgconfig/libcjson.pc
diff --git a/cJSON/TODO b/cJSON/TODO
new file mode 100644
index 0000000000..637350677a
--- /dev/null
+++ b/cJSON/TODO
@@ -0,0 +1 @@
+Figure out why tests fail when run with pkgsrc (they pass when run elsewhere)
diff --git a/cJSON/distinfo b/cJSON/distinfo
new file mode 100644
index 0000000000..64c42277dd
--- /dev/null
+++ b/cJSON/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (cJSON/v1.7.12.tar.gz) = e90abbcdc0f40e7854d5838214d0668e24e6c147
+RMD160 (cJSON/v1.7.12.tar.gz) = 0d1c70cc79683cf2accfa470634f8ff64a50e4d5
+SHA512 (cJSON/v1.7.12.tar.gz) = d767b7261eff3a1a50ea46cc5573f9504f5734a891ea211ad348835bfb4b80acf7f744da2d34bb1fa270cd4d44576c21bc6f52c0604b7e6ffdeb61ecb396b376
+Size (cJSON/v1.7.12.tar.gz) = 348294 bytes


Home | Main Index | Thread Index | Old Index