git: 947d707e3d3b - main - textproc/libjcat: Cleanup dependencies and some improvements

From: Bernhard Froehlich <decke_at_FreeBSD.org>
Date: Sun, 03 Nov 2024 14:25:57 UTC
The branch main has been updated by decke:

URL: https://cgit.FreeBSD.org/ports/commit/?id=947d707e3d3bc493fc914abf431e5b81ad884453

commit 947d707e3d3bc493fc914abf431e5b81ad884453
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-11-03 14:24:22 +0000
Commit:     Bernhard Froehlich <decke@FreeBSD.org>
CommitDate: 2024-11-03 14:24:22 +0000

    textproc/libjcat: Cleanup dependencies and some improvements
    
    PR:             282500
---
 textproc/libjcat/Makefile  | 17 ++++++++---------
 textproc/libjcat/distinfo  |  6 +++---
 textproc/libjcat/pkg-plist | 15 ---------------
 3 files changed, 11 insertions(+), 27 deletions(-)

diff --git a/textproc/libjcat/Makefile b/textproc/libjcat/Makefile
index fd1546c81c3f..df4c83fdf578 100644
--- a/textproc/libjcat/Makefile
+++ b/textproc/libjcat/Makefile
@@ -1,27 +1,26 @@
 PORTNAME=	libjcat
 DISTVERSION=	0.2.2
+PORTREVISION=	1
 CATEGORIES=	textproc
+MASTER_SITES=	https://github.com/hughsie/${PORTNAME}/releases/download/${DISTVERSION}/
 
 MAINTAINER=	decke@FreeBSD.org
 COMMENT=	Library for reading and writing JSON catalog files
 WWW=		https://github.com/hughsie/libjcat
 
 LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	gobject-introspection>=1.36:devel/gobject-introspection \
-		gtkdocize:textproc/gtk-doc \
-		help2man:misc/help2man \
-		${PYTHON_PKGNAMEPREFIX}elementpath>0:textproc/py-elementpath@${PY_FLAVOR}
 LIB_DEPENDS=	libgnutls.so:security/gnutls \
 		libgpg-error.so:security/libgpg-error \
 		libgpgme.so:security/gpgme \
-		libhogweed.so:security/nettle \
 		libjson-glib-1.0.so:devel/json-glib
 
-USES=		gnome localbase:ldflags meson pkgconfig vala:build python
-USE_GITHUB=	yes
-GH_ACCOUNT=	hughsie
-USE_GNOME=	glib20
+USES=		gettext-runtime gnome localbase:ldflags meson pkgconfig \
+		python:build tar:xz vala:build
+USE_GNOME=	glib20 introspection:build
 USE_LDCONFIG=	yes
 
+MESON_ARGS=	-Dgtkdoc=false -Dtests=false
+
 .include <bsd.port.mk>
diff --git a/textproc/libjcat/distinfo b/textproc/libjcat/distinfo
index eaac2bdb3522..f4a21347e01c 100644
--- a/textproc/libjcat/distinfo
+++ b/textproc/libjcat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1730567380
-SHA256 (hughsie-libjcat-0.2.2_GH0.tar.gz) = 60fb1d30b16ba1a2dbf48998094d366bc94a082846b71decf9d6ac6bb6aa4800
-SIZE (hughsie-libjcat-0.2.2_GH0.tar.gz) = 79047
+TIMESTAMP = 1730569434
+SHA256 (libjcat-0.2.2.tar.xz) = f1bed6217234cc2f833d72ae3a375d9164f92a0010b49c5b19b63e88e03de12c
+SIZE (libjcat-0.2.2.tar.xz) = 66128
diff --git a/textproc/libjcat/pkg-plist b/textproc/libjcat/pkg-plist
index b4ba06c73be3..ac086fa19213 100644
--- a/textproc/libjcat/pkg-plist
+++ b/textproc/libjcat/pkg-plist
@@ -16,22 +16,7 @@ lib/libjcat.so
 lib/libjcat.so.1
 lib/libjcat.so.1.0.0
 libdata/pkgconfig/jcat.pc
-libexec/installed-tests/libjcat/jcat-self-test
 share/gir-1.0/Jcat-1.0.gir
-share/installed-tests/libjcat/colorhug/firmware.bin
-share/installed-tests/libjcat/colorhug/firmware.bin.asc
-share/installed-tests/libjcat/colorhug/firmware.bin.ed25519
-share/installed-tests/libjcat/colorhug/firmware.bin.p7b
-share/installed-tests/libjcat/colorhug/firmware.bin.p7c
-share/installed-tests/libjcat/colorhug/firmware.bin.sha256.p7c
-share/installed-tests/libjcat/libjcat.test
-share/installed-tests/libjcat/pki/GPG-KEY-Linux-Vendor-Firmware-Service
-share/installed-tests/libjcat/pki/LVFS-CA.pem
-share/installed-tests/libjcat/pki/test.ed25519
-share/installed-tests/libjcat/pki/test.pem
-share/installed-tests/libjcat/secret.ed25519
-share/installed-tests/libjcat/test.btcheckpoint
-share/installed-tests/libjcat/test.btverifier
 share/man/man1/jcat-tool.1.gz
 share/vala/vapi/jcat.deps
 share/vala/vapi/jcat.vapi