git: 5a9e5ba34b58 - main - net/jose: Improve port

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 08:56:02 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a9e5ba34b58b4e334cdd5ce840f7c40771441f5

commit 5a9e5ba34b58b4e334cdd5ce840f7c40771441f5
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-08-04 08:47:17 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-08-04 08:55:43 +0000

    net/jose: Improve port
    
    * Use upstream release archive
    * Remove USES= ninja, selection of meson backend is handled by the framework
    * Make asciidoc build dependency optional via MANPAGES option
    * Remove INSTALL_TARGET (not used with meson)
    * Sort pkg-plist
    
    PR:             280101
    Approved by:    portmgr (maintainer timeout, 1+ month)
---
 net/jose/Makefile  | 16 +++++++++-------
 net/jose/distinfo  |  6 +++---
 net/jose/pkg-plist | 42 +++++++++++++++++++++---------------------
 3 files changed, 33 insertions(+), 31 deletions(-)

diff --git a/net/jose/Makefile b/net/jose/Makefile
index 3f29455d385b..d8c9bc583c5d 100644
--- a/net/jose/Makefile
+++ b/net/jose/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	jose
 DISTVERSION=	14
 CATEGORIES=	net
+MASTER_SITES=	https://github.com/latchset/${PORTNAME}/releases/download/v${DISTVERSION}/
 
 MAINTAINER=	hdholm@alumni.iastate.edu
 COMMENT=	Tools for JSON Object Signing and Encryption (JOSE)
@@ -9,16 +10,17 @@ WWW=		https://github.com/latchset/jose
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	a2x:textproc/asciidoc \
-		jq:textproc/jq
+BUILD_DEPENDS=	jq:textproc/jq
 LIB_DEPENDS=	libjansson.so:devel/jansson
 
-USES=		compiler:c11 meson ninja pkgconfig ssl
-USE_GITHUB=	yes
-GH_ACCOUNT=	latchset
-GH_TAGNAME=	v14
+USES=		compiler:c11 meson pkgconfig ssl tar:xz
 USE_LDCONFIG=	yes
 
-INSTALL_TARGET=	install-strip
+OPTIONS_DEFINE=	MANPAGES
+OPTIONS_DEFAULT=MANPAGES
+OPTIONS_SUB=	yes
+
+MANPAGES_BUILD_DEPENDS=	a2x:textproc/asciidoc
+MANPAGES_MESON_ENABLED=	docs
 
 .include <bsd.port.mk>
diff --git a/net/jose/distinfo b/net/jose/distinfo
index 4e984a98c805..df29adbf0429 100644
--- a/net/jose/distinfo
+++ b/net/jose/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1719702984
-SHA256 (latchset-jose-14-v14_GH0.tar.gz) = 3ffb8ea9a0fa5194051499d96bfde957621fcd490ef7ed95effc699029d7ad3b
-SIZE (latchset-jose-14-v14_GH0.tar.gz) = 843394
+TIMESTAMP = 1719954796
+SHA256 (jose-14.tar.xz) = cee329ef9fce97c4c025604a8d237092f619aaa9f6d35fdf9d8c9052bc1ff95b
+SIZE (jose-14.tar.xz) = 764940
diff --git a/net/jose/pkg-plist b/net/jose/pkg-plist
index d97e5a1aff74..e7b4a21c5ed4 100644
--- a/net/jose/pkg-plist
+++ b/net/jose/pkg-plist
@@ -1,25 +1,4 @@
 bin/jose
-lib/libjose.so
-lib/libjose.so.0
-lib/libjose.so.0.0.0
-libdata/pkgconfig/jose.pc
-share/man/man1/jose-alg.1.gz
-share/man/man1/jose-b64-dec.1.gz
-share/man/man1/jose-b64-enc.1.gz
-share/man/man1/jose-fmt.1.gz
-share/man/man1/jose-jwe-dec.1.gz
-share/man/man1/jose-jwe-enc.1.gz
-share/man/man1/jose-jwe-fmt.1.gz
-share/man/man1/jose-jwk-eql.1.gz
-share/man/man1/jose-jwk-exc.1.gz
-share/man/man1/jose-jwk-gen.1.gz
-share/man/man1/jose-jwk-pub.1.gz
-share/man/man1/jose-jwk-thp.1.gz
-share/man/man1/jose-jwk-use.1.gz
-share/man/man1/jose-jws-fmt.1.gz
-share/man/man1/jose-jws-sig.1.gz
-share/man/man1/jose-jws-ver.1.gz
-share/man/man1/jose.1.gz
 include/jose/b64.h
 include/jose/cfg.h
 include/jose/io.h
@@ -28,6 +7,27 @@ include/jose/jwe.h
 include/jose/jwk.h
 include/jose/jws.h
 include/jose/openssl.h
+lib/libjose.so
+lib/libjose.so.0
+lib/libjose.so.0.0.0
+libdata/pkgconfig/jose.pc
+%%MANPAGES%%share/man/man1/jose-alg.1.gz
+%%MANPAGES%%share/man/man1/jose-b64-dec.1.gz
+%%MANPAGES%%share/man/man1/jose-b64-enc.1.gz
+%%MANPAGES%%share/man/man1/jose-fmt.1.gz
+%%MANPAGES%%share/man/man1/jose-jwe-dec.1.gz
+%%MANPAGES%%share/man/man1/jose-jwe-enc.1.gz
+%%MANPAGES%%share/man/man1/jose-jwe-fmt.1.gz
+%%MANPAGES%%share/man/man1/jose-jwk-eql.1.gz
+%%MANPAGES%%share/man/man1/jose-jwk-exc.1.gz
+%%MANPAGES%%share/man/man1/jose-jwk-gen.1.gz
+%%MANPAGES%%share/man/man1/jose-jwk-pub.1.gz
+%%MANPAGES%%share/man/man1/jose-jwk-thp.1.gz
+%%MANPAGES%%share/man/man1/jose-jwk-use.1.gz
+%%MANPAGES%%share/man/man1/jose-jws-fmt.1.gz
+%%MANPAGES%%share/man/man1/jose-jws-sig.1.gz
+%%MANPAGES%%share/man/man1/jose-jws-ver.1.gz
+%%MANPAGES%%share/man/man1/jose.1.gz
 share/man/man3/jose_b64.3.gz
 share/man/man3/jose_cfg.3.gz
 share/man/man3/jose_io.3.gz