git: d4af91742581 - main - sysutils/libdnf: Update 0.64.0 -> 0.67.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 12 May 2022 18:57:58 UTC
The branch main has been updated by yuri:

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

commit d4af9174258123370a829621b3645232fdcd8de0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-05-12 17:39:06 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-05-12 18:57:51 +0000

    sysutils/libdnf: Update 0.64.0 -> 0.67.0
    
    Reported by:    portscout
---
 sysutils/libdnf/Makefile                   | 33 ++++++++++++++++++++++--------
 sysutils/libdnf/distinfo                   |  6 +++---
 sysutils/libdnf/files/patch-CMakeLists.txt | 22 --------------------
 sysutils/libdnf/pkg-plist                  |  1 +
 4 files changed, 28 insertions(+), 34 deletions(-)

diff --git a/sysutils/libdnf/Makefile b/sysutils/libdnf/Makefile
index a8461739fb36..5d7fcaf3ea29 100644
--- a/sysutils/libdnf/Makefile
+++ b/sysutils/libdnf/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	libdnf
-DISTVERSION=	0.64.0
+DISTVERSION=	0.67.0
 CATEGORIES=	sysutils
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -10,24 +10,38 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	check>0:devel/check
 LIB_DEPENDS=	libassuan.so:security/libassuan \
+		libcurl.so:ftp/curl \
+		libexpat.so:textproc/expat2 \
+		libffi.so:devel/libffi \
+		libgcrypt.so:security/libgcrypt \
 		libgpgme.so:security/gpgme \
 		libgpg-error.so:security/libgpg-error \
+		libidn2.so:dns/libidn2 \
 		libjson-c.so:devel/json-c \
 		libmodulemd.so:misc/libmodulemd \
+		libnghttp2.so:www/libnghttp2 \
+		libpsl.so:dns/libpsl \
+		libpcre.so:devel/pcre \
+		libpopt.so:devel/popt \
 		librepo.so:misc/librepo \
 		librpmio.so:archivers/rpm4 \
 		libsmartcols.so:devel/util-linux \
-		libsolv.so:misc/libsolv
-
-USES=		cmake compiler:c++11-lang gettext gnome pkgconfig sqlite ssl
-USE_GNOME=	glib20
+		libsolv.so:misc/libsolv \
+		libssh2.so:security/libssh2 \
+		libunistring.so:devel/libunistring \
+		libyaml.so:textproc/libyaml \
+		libzstd.so:archivers/zstd
+
+USES=		cmake compiler:c++11-lang gettext gnome lua pkgconfig sqlite ssl
+USE_GNOME=	glib20 libxml2
 USE_LDCONFIG=	yes
-USE_GCC=	yes # clang fails: https://github.com/rpm-software-management/libdnf/issues/1038
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	rpm-software-management
 
-CMAKE_OFF=	BUILD_TESTNG WITH_GTKDOC WITH_HTML BUILD_TESTING FREEBSD_INSTALL_DOCS
+CMAKE_OFF=	BUILD_TESTNG WITH_GTKDOC WITH_HTML WITH_TESTS FREEBSD_INSTALL_DOCS
+
+BINARY_ALIAS=	git=false
 
 OPTIONS_DEFINE=		PYTHON ZCHUNK
 OPTIONS_DEFAULT=	PYTHON
@@ -36,10 +50,11 @@ OPTIONS_SUB=		yes
 PYTHON_CMAKE_BOOL=	WITH_BINDINGS
 PYTHON_USES=		python
 PYTHON_CMAKE_ON=	-DPYTHON_DESIRED=${PYTHON_MAJOR_VER}
-PYTHON_BUILD_DEPENDS=	swig:devel/swig
+PYTHON_BUILD_DEPENDS=	swig:devel/swig \
+			${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
 
 ZCHUNK_DESC=		With zchunk support
 ZCHUNK_CMAKE_BOOL=	WITH_ZCHUNK
-ZCHUNK_BROKEN=		ZCHUNK option is declared, but this library is never actually used
+ZCHUNK_BROKEN=		Links with zchunk when WITH_ZCHUNK=OFF https://github.com/rpm-software-management/libdnf/issues/1515
 
 .include <bsd.port.mk>
diff --git a/sysutils/libdnf/distinfo b/sysutils/libdnf/distinfo
index 40f2032c7771..eabbc5b47a0d 100644
--- a/sysutils/libdnf/distinfo
+++ b/sysutils/libdnf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1633842247
-SHA256 (rpm-software-management-libdnf-0.64.0_GH0.tar.gz) = 827038393d0eab0338fb369c525b0d822e4bad85ba89c212c6bf42178ddaa065
-SIZE (rpm-software-management-libdnf-0.64.0_GH0.tar.gz) = 1128166
+TIMESTAMP = 1652373297
+SHA256 (rpm-software-management-libdnf-0.67.0_GH0.tar.gz) = 14b4327cf95f46c0f2a095935c58a10f472f09319f37cb7d1732d4d242404230
+SIZE (rpm-software-management-libdnf-0.67.0_GH0.tar.gz) = 1153214
diff --git a/sysutils/libdnf/files/patch-CMakeLists.txt b/sysutils/libdnf/files/patch-CMakeLists.txt
deleted file mode 100644
index 7ecbbd2c1d37..000000000000
--- a/sysutils/libdnf/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,22 +0,0 @@
---- CMakeLists.txt.orig	2021-03-01 17:31:02 UTC
-+++ CMakeLists.txt
-@@ -168,15 +168,19 @@ add_subdirectory(po)
- 
- 
- # build docs
-+if (FREEBSD_INSTALL_DOCS)
- add_subdirectory(docs/libdnf)
- if(WITH_BINDINGS)
-     add_subdirectory(docs/hawkey)
- endif()
-+endif()
- 
- 
- # build tests
-+if (BUILD_TESTING)
- enable_testing()
- add_subdirectory(tests)
-+endif()
- if(WITH_BINDINGS)
-     add_subdirectory(python/hawkey)
- endif()
diff --git a/sysutils/libdnf/pkg-plist b/sysutils/libdnf/pkg-plist
index 373a35bcb80f..d3d4ce61bdbb 100644
--- a/sysutils/libdnf/pkg-plist
+++ b/sysutils/libdnf/pkg-plist
@@ -126,3 +126,4 @@ share/locale/tr/LC_MESSAGES/libdnf.mo
 share/locale/uk/LC_MESSAGES/libdnf.mo
 share/locale/zh_CN/LC_MESSAGES/libdnf.mo
 share/locale/zh_TW/LC_MESSAGES/libdnf.mo
+%%PYTHON%%share/man/man3/hawkey.3.gz