git: 979cbb12a7a4 - main - devel/yyjson: Improve port and enable 'make test'
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 23 Aug 2025 09:00:29 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=979cbb12a7a4c4d4b4d3874ae7138ab53a736dd9
commit 979cbb12a7a4c4d4b4d3874ae7138ab53a736dd9
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-08-23 08:37:21 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-08-23 08:39:06 +0000
    devel/yyjson: Improve port and enable 'make test'
    
    * Switch to DISTVERSION as per Porters Handbook
    * Define LICENSE_FILE
    * Enable unit tests (make test)
      Backport upstream patch 878d5da9b6c0352c2601bd6c244c0ef994ee1c24
    
    Reference:
    https://github.com/ibireme/yyjson/commit/878d5da9b6c0352c2601bd6c244c0ef994ee1c24
    
    PR:             288934
    Approved by:    pkubaj (maintainer, previous iteration)
---
 devel/yyjson/Makefile | 11 +++++++++--
 devel/yyjson/distinfo |  4 +++-
 2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/devel/yyjson/Makefile b/devel/yyjson/Makefile
index aaea11e4c414..95cea730faf7 100644
--- a/devel/yyjson/Makefile
+++ b/devel/yyjson/Makefile
@@ -1,17 +1,24 @@
 PORTNAME=	yyjson
-PORTVERSION=	0.12.0
+DISTVERSION=	0.12.0
 CATEGORIES=	devel
 
+PATCH_SITES=	https://github.com/ibireme/yyjson/commit/
+PATCHFILES=	878d5da9b6c0352c2601bd6c244c0ef994ee1c24.patch:-p1
+
 MAINTAINER=	pkubaj@FreeBSD.org
 COMMENT=	Fastest JSON library in C 
 WWW=		https://github.com/ibireme/yyjson
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cmake:testing pathfix
 
-USES=		cmake pathfix
 USE_GITHUB=	yes
 GH_ACCOUNT=	ibireme
 
+CMAKE_TESTING_ON=	YYJSON_BUILD_TESTS
+
 CMAKE_ON=	BUILD_SHARED_LIBS
 
 .include <bsd.port.mk>
diff --git a/devel/yyjson/distinfo b/devel/yyjson/distinfo
index 2da249eb6c1d..23f1dc97f556 100644
--- a/devel/yyjson/distinfo
+++ b/devel/yyjson/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1755544933
+TIMESTAMP = 1755625116
 SHA256 (ibireme-yyjson-0.12.0_GH0.tar.gz) = b16246f617b2a136c78d73e5e2647c6f1de1313e46678062985bdcf1f40bb75d
 SIZE (ibireme-yyjson-0.12.0_GH0.tar.gz) = 1620674
+SHA256 (878d5da9b6c0352c2601bd6c244c0ef994ee1c24.patch) = e2cd73c65e6948bdf899a0cefb77d78161bdf02d8fea52c2dc37e13158af2a8d
+SIZE (878d5da9b6c0352c2601bd6c244c0ef994ee1c24.patch) = 5958