git: ccdf31503d33 - main - security/rhonabwy: Update to 1.1.11

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Jun 2023 07:18:18 UTC
The branch main has been updated by sunpoet:

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

commit ccdf31503d33df89a93ee5b9d0c81e4cdd3a901f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-06-30 07:02:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-06-30 07:02:15 +0000

    security/rhonabwy: Update to 1.1.11
    
    - Update WWW
    - Update version requirement of BUILD_DEPENDS
    - Use USES=pathfix to fix .pc installation
    - Use complete arguments/options
    - Update pkg-descr
    - Take maintainership
    
    Changes:        https://github.com/babelouest/rhonabwy/releases
---
 security/rhonabwy/Makefile                         | 32 +++++++++++++---------
 security/rhonabwy/distinfo                         |  6 ++--
 security/rhonabwy/files/patch-CMakeLists.txt       |  9 ++++--
 ....cmake => patch-cmake-modules-FindNettle.cmake} |  0
 security/rhonabwy/pkg-descr                        | 24 +++++++++-------
 security/rhonabwy/pkg-plist                        |  3 +-
 6 files changed, 45 insertions(+), 29 deletions(-)

diff --git a/security/rhonabwy/Makefile b/security/rhonabwy/Makefile
index 59aa8c6cb943..3889a27c5580 100644
--- a/security/rhonabwy/Makefile
+++ b/security/rhonabwy/Makefile
@@ -1,34 +1,40 @@
 PORTNAME=	rhonabwy
+PORTVERSION=	1.1.11
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.1.9
 CATEGORIES=	security
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Javascript Object Signing and Encryption (JOSE) library
-WWW=		https://github.com/babelouest/rhonabwy
+WWW=		https://babelouest.github.io/rhonabwy/ \
+		https://github.com/babelouest/rhonabwy
 
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	yder>1.4.14:devel/yder \
-		orcania>2.2.1:devel/orcania \
-		gnutls>0:security/gnutls
-
+BUILD_DEPENDS=	jansson>=2.4:devel/jansson \
+		orcania>=2.3.2:devel/orcania \
+		ulfius>=2.7.13:www/ulfius \
+		yder>=1.4.19:devel/yder
 LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libgmp.so:math/gmp \
-		libnettle.so:security/nettle \
-		libjansson.so:devel/jansson \
 		libgnutls.so:security/gnutls \
+		libjansson.so:devel/jansson \
+		libnettle.so:security/nettle \
 		liborcania.so:devel/orcania \
+		libulfius.so:www/ulfius \
 		libyder.so:devel/yder
 
-USES=		cmake
+USES=		cmake pathfix pkgconfig
+
+CMAKE_OFF=	BUILD_RHONABWY_DOCUMENTATION BUILD_RHONABWY_TESTING BUILD_RPM DOWNLOAD_DEPENDENCIES
+CMAKE_ON=	BUILD_RNBYC BUILD_STATIC INSTALL_HEADER SEARCH_ORCANIA_R SEARCH_YDER_R WITH_CURL WITH_ULFIUS
+
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	babelouest
 
-PLIST_SUB=	DISTVERSION=${DISTVERSION}
-
-CMAKE_ARGS=	-DWITH_JOURNALD=off
+post-install:
+	${INSTALL_DATA} ${INSTALL_WRKSRC}/librhonabwy.a ${STAGEDIR}${PREFIX}/lib/
 
 .include <bsd.port.mk>
diff --git a/security/rhonabwy/distinfo b/security/rhonabwy/distinfo
index 4da3403e0a90..3dd3da607a9e 100644
--- a/security/rhonabwy/distinfo
+++ b/security/rhonabwy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1670088829
-SHA256 (babelouest-rhonabwy-v1.1.9_GH0.tar.gz) = 57c5b67c8826e8071b9a93ec96303fa58749964dc056574d65a5e6035ffde278
-SIZE (babelouest-rhonabwy-v1.1.9_GH0.tar.gz) = 401523
+TIMESTAMP = 1686496692
+SHA256 (babelouest-rhonabwy-v1.1.11_GH0.tar.gz) = 78021d176615a48477927eae9cad404760d345c70b62b86e5620eb9f80969d2e
+SIZE (babelouest-rhonabwy-v1.1.11_GH0.tar.gz) = 382916
diff --git a/security/rhonabwy/files/patch-CMakeLists.txt b/security/rhonabwy/files/patch-CMakeLists.txt
index 81ac445f6200..d5037798ade4 100644
--- a/security/rhonabwy/files/patch-CMakeLists.txt
+++ b/security/rhonabwy/files/patch-CMakeLists.txt
@@ -1,6 +1,11 @@
---- CMakeLists.txt.orig	2022-07-08 18:38:40 UTC
+--- CMakeLists.txt.orig	2023-02-08 14:06:47 UTC
 +++ CMakeLists.txt
-@@ -171,7 +171,7 @@ set_target_properties(rhonabwy PROPERTIES
+@@ -167,11 +167,11 @@ endif ()
+ 
+ add_library(rhonabwy SHARED ${LIB_SRC})
+ set_target_properties(rhonabwy PROPERTIES
+-        COMPILE_OPTIONS "-Wextra;-Wconversion"
++        COMPILE_OPTIONS "-Wextra;-Wconversion;-Wno-sign-conversion;-Wno-unknown-warning-option"
          PUBLIC_HEADER "${INC_DIR}/rhonabwy.h;${PROJECT_BINARY_DIR}/rhonabwy-cfg.h"
          VERSION "${LIBRARY_VERSION}"
          SOVERSION "${LIBRARY_SOVERSION}")
diff --git a/security/rhonabwy/files/patch-cmake-modules_FindNettle.cmake b/security/rhonabwy/files/patch-cmake-modules-FindNettle.cmake
similarity index 100%
rename from security/rhonabwy/files/patch-cmake-modules_FindNettle.cmake
rename to security/rhonabwy/files/patch-cmake-modules-FindNettle.cmake
diff --git a/security/rhonabwy/pkg-descr b/security/rhonabwy/pkg-descr
index 8d6ea6a7ae4b..a7ad8e249010 100644
--- a/security/rhonabwy/pkg-descr
+++ b/security/rhonabwy/pkg-descr
@@ -1,12 +1,16 @@
-Javascript Object Signing and Encryption (JOSE) library - JWK, JWKS, JWS, JWE
-and JWT
+Rhonabwy library is made to manage JWK, JWKS, JWS, JWE and JWT according to
+their respective RFCs:
+- JSON Web Keys (JWK) and JSON Web Keys Set (JWKS)
+- JSON Web Signatures (JWS)
+- JSON Web Encryption (JWE)
+- JSON Web Token (JWT)
 
-* Create, modify, parse, import or export JSON Web Keys (JWK) and
-  JSON Web Keys Set (JWKS)
-* Create, modify, parse, validate or serialize JSON Web Signatures (JWS)
-* Create, modify, parse, validate or serialize JSON Web Encryption (JWE)
-* Create, modify, parse, validate or serialize JSON Web Token (JWT)
+Rhonabwy is based on the following libraries and actively uses them:
+- GnuTLS for the cryptographic functions
+- Jansson for the JSON manipulation
+- Yder for the logs
+- Libcurl when it requires to retrieve keys from an URL
 
-JWT Relies on JWS and JWE functions, so it supports the same functionalities as
-the other 2. JWT functionalities also support nesting serialization (JWE nested
-in a JWS or the opposite).
+When relevant, a function can accept or return GnuTLS or Jansson data. But if
+you're not using those in your application and prefer raw data, you can use the
+more agnostic functions.
diff --git a/security/rhonabwy/pkg-plist b/security/rhonabwy/pkg-plist
index e8d03fd49fe6..b32f616755a0 100644
--- a/security/rhonabwy/pkg-plist
+++ b/security/rhonabwy/pkg-plist
@@ -1,8 +1,9 @@
 bin/rnbyc
 include/rhonabwy-cfg.h
 include/rhonabwy.h
+lib/librhonabwy.a
 lib/librhonabwy.so
 lib/librhonabwy.so.1.1
-lib/librhonabwy.so.%%DISTVERSION%%
+lib/librhonabwy.so.%%PORTVERSION%%
 libdata/pkgconfig/librhonabwy.pc
 share/man/man1/rnbyc.1.gz