From nobody Thu Aug 17 13:12:22 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RRQQZ6Fdbz4qfvH; Thu, 17 Aug 2023 13:12:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RRQQZ5MXZz4hZ1; Thu, 17 Aug 2023 13:12:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692277942; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LIBZVeAgVqQeNRLpYWkS9pKpRKpm3VWJgw1A8CWt2y8=; b=ChgXbhisky9pugFEyTlCD0OlDfqE2sCb8VXMgN7b7y8os1jAAzbDbHuHOM2kg+UTS8BlKy ZSHcPlofcp24KKnRUqsWe1CSc5JqJ8FdmhX5lqBs3R3uvVJtDD3zW2TGs51+taYJE9iz6u G6sfdicco6a6WTUNz2/YoFl5/Fk4PfQ1+WfWRi5q5FVI6ikKYx8lF8W5CvML2q4Hkne7R0 OvqberIiEKzpI+vUh/5y3WwkrcsPgkpzHrtARwUFlZ+kojPkOSkBs0trtfOIRWIlJEuS9V fpOUb63AodEUq2B6IknE6AHHPhu4vxhlXaOKc65Pb6wS5i2hVxfOIdscttCwyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692277942; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LIBZVeAgVqQeNRLpYWkS9pKpRKpm3VWJgw1A8CWt2y8=; b=lQmekMb3mxe4kdJSckNWUQDy17wNWr/HTDF2Nx6xNeloH0I7vpkh/y/a+x1G38GH1jDfG+ nQYGNRdzeKDAhmoBy+MFE7I+Q4g0mutFa1vKkDtjj/rZuaGY7qP5SrRymmOs0IgF8D2s3E jRqieV/dKPJoJH2Bkf9WO9K7w3X+hTsXfgBbLGQqp3xlhKNoVqurBTlSTeCge4Eo2qnVm0 KpdbsAZZccIwZK+u6bXt3hmzRn2QpN42Kd9I5A7u30reYZUzszMxwmeW91Jw4Bteg/lsTI RIJesDA6JXJ3dZyRO5uhirkix6L5e4h5cdMnoHxP9YCZsDTYMITDeKORsUhqNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692277942; a=rsa-sha256; cv=none; b=YZ3oaHNuSXMdAhEYeCWxjTHzLogHx0rez+2DfdRgYFuuAvjNat46XRGpiAYZ5kfepfBbRH FGiVN4iilYIvOjxE5UQXM2qjL1sJW/qfpT1o7m5yMCGPcnoKCg4H+R+npZYvhKi0uuuMC+ VbQ+aCk6pOZfQCuVRRODQJFF+CuLyk8C7Bvl+RqNng2mdnZp5MqkTpaNWq+q68jYwHQnYh ymcssSSWXCZy+b4qRNfq+1iBqtbSeId5dDbgdBhOZRXZEc3bGkIMg3bJPd+UOa/RUM5DU7 q8zGnMVyQftaKXD/gZn73FAMrFL4w8+g3jomCoD2ey0/+7SkxCq5c4VtZUQpSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RRQQZ4Q1rzb9w; Thu, 17 Aug 2023 13:12:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37HDCM94012527; Thu, 17 Aug 2023 13:12:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37HDCMN1012525; Thu, 17 Aug 2023 13:12:22 GMT (envelope-from git) Date: Thu, 17 Aug 2023 13:12:22 GMT Message-Id: <202308171312.37HDCMN1012525@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 70ec5e55fb58 - main - devel/yyjson: A high performance C JSON library. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 70ec5e55fb58603a1cc9a8a02da81471d2e3b299 Auto-Submitted: auto-generated The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=70ec5e55fb58603a1cc9a8a02da81471d2e3b299 commit 70ec5e55fb58603a1cc9a8a02da81471d2e3b299 Author: Piotr Kubaj AuthorDate: 2023-08-17 13:11:25 +0000 Commit: Piotr Kubaj CommitDate: 2023-08-17 13:12:18 +0000 devel/yyjson: A high performance C JSON library. Needed for upcoming update of sysutils/fastfetch. --- devel/Makefile | 1 + devel/yyjson/Makefile | 15 +++++++++++++++ devel/yyjson/distinfo | 3 +++ devel/yyjson/pkg-descr | 21 +++++++++++++++++++++ devel/yyjson/pkg-plist | 4 ++++ 5 files changed, 44 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 0d83fd9ed483..4436afc6b875 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7827,6 +7827,7 @@ SUBDIR += yder SUBDIR += youcompleteme SUBDIR += yuck + SUBDIR += yyjson SUBDIR += z80-asm SUBDIR += z80asm SUBDIR += z80ex diff --git a/devel/yyjson/Makefile b/devel/yyjson/Makefile new file mode 100644 index 000000000000..bd4a214ffab9 --- /dev/null +++ b/devel/yyjson/Makefile @@ -0,0 +1,15 @@ +PORTNAME= yyjson +PORTVERSION= 0.7.0 +CATEGORIES= devel + +MAINTAINER= pkubaj@FreeBSD.org +COMMENT= Fastest JSON library in C +WWW= https://github.com/ibireme/yyjson + +LICENSE= MIT + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= ibireme + +.include diff --git a/devel/yyjson/distinfo b/devel/yyjson/distinfo new file mode 100644 index 000000000000..7852c4496cf3 --- /dev/null +++ b/devel/yyjson/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1692277627 +SHA256 (ibireme-yyjson-0.7.0_GH0.tar.gz) = 9b91ee48ac1fe5939f747d49f123d9a522b5f4e1e46165c1871936d583628a06 +SIZE (ibireme-yyjson-0.7.0_GH0.tar.gz) = 1511395 diff --git a/devel/yyjson/pkg-descr b/devel/yyjson/pkg-descr new file mode 100644 index 000000000000..7f2644f647e8 --- /dev/null +++ b/devel/yyjson/pkg-descr @@ -0,0 +1,21 @@ +A high performance JSON library written in ANSI C. +Features: +* Fast: can read or write gigabytes per second JSON data on modern CPUs. +* Portable: complies with ANSI C (C89) for cross-platform compatibility. +* Strict: complies with RFC 8259 JSON standard, ensuring strict number format + and UTF-8 validation. +* Extendable: offers options to allow comments, trailing commas, NaN/Inf, and + custom memory allocator. +* Accuracy: can accurately read and write int64, uint64, and double numbers. +* Flexible: supports unlimited JSON nesting levels, \u0000 characters, and non + null-terminated strings. +* Manipulation: supports querying and modifying using JSON Pointer, JSON Patch + and JSON Merge Patch. +* Developer-Friendly: easy integration with only one h and one c file. + +Limitations: +* An array or object is stored as a data structure such as linked list, which + makes accessing elements by index or key slower than using an iterator. +* Duplicate keys are allowed in an object, and the order of the keys is + preserved. +* JSON parsing result is immutable, requiring a mutable copy for modification. diff --git a/devel/yyjson/pkg-plist b/devel/yyjson/pkg-plist new file mode 100644 index 000000000000..383c0bd83eb6 --- /dev/null +++ b/devel/yyjson/pkg-plist @@ -0,0 +1,4 @@ +include/yyjson.h +lib/cmake/yyjson/yyjson-config-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/yyjson/yyjson-config.cmake +lib/libyyjson.a