git: d219e9ec6a44 - main - sysutils/dnf: Update 4.9.0 -> 4.12.0

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

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

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

    sysutils/dnf: Update 4.9.0 -> 4.12.0
    
    Reported by:    portscout
---
 sysutils/dnf/Makefile | 8 ++++++--
 sysutils/dnf/distinfo | 6 +++---
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/sysutils/dnf/Makefile b/sysutils/dnf/Makefile
index c5211d9300e0..341073b35646 100644
--- a/sysutils/dnf/Makefile
+++ b/sysutils/dnf/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	dnf
-DISTVERSION=	4.9.0
+DISTVERSION=	4.12.0
 CATEGORIES=	sysutils
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -14,6 +14,7 @@ RUN_DEPENDS=	libcomps>0:misc/libcomps \
 		${PYTHON_PKGNAMEPREFIX}gpgme>0:security/py-gpgme@${PY_FLAVOR}
 
 USES=		cmake gettext-tools python
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	rpm-software-management
 
@@ -25,7 +26,10 @@ INSTALL_TARGET=	install
 NO_ARCH=	yes
 
 post-patch:
-	@${REINPLACE_CMD} -e "s|'/usr/bin'|'${PREFIX}/bin'|" ${WRKSRC}/bin/dnf*.in
+	@${REINPLACE_CMD} -e "\
+		s|'/usr/bin'|'${PREFIX}/bin'|;\
+		s|@PYTHON_EXECUTABLE@|${PYTHON_CMD}|\
+		" ${WRKSRC}/bin/dnf*.in
 
 post-install:
 	cd ${STAGEDIR}${PREFIX}/bin && \
diff --git a/sysutils/dnf/distinfo b/sysutils/dnf/distinfo
index 170223239b82..2214c7209805 100644
--- a/sysutils/dnf/distinfo
+++ b/sysutils/dnf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1634313154
-SHA256 (rpm-software-management-dnf-4.9.0_GH0.tar.gz) = a273bebe710e13930fa29dd5f954d6a02ff8a4abafdccae4961cf677283550b5
-SIZE (rpm-software-management-dnf-4.9.0_GH0.tar.gz) = 1940200
+TIMESTAMP = 1652377338
+SHA256 (rpm-software-management-dnf-4.12.0_GH0.tar.gz) = 94fe5061a341fc553fbcdedacd25b8ca7d65d88a82154fb81d32aa41bba4314f
+SIZE (rpm-software-management-dnf-4.12.0_GH0.tar.gz) = 1959972