git: 92fb8ba04418 - main - net-mgmt/fence-agents: Follow Porters Handbook more closely and use helpers

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Wed, 05 Apr 2023 06:27:56 UTC
The branch main has been updated by diizzy:

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

commit 92fb8ba04418ad80432302eb9caa241efe891ccc
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-04-05 06:26:10 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-04-05 06:26:14 +0000

    net-mgmt/fence-agents: Follow Porters Handbook more closely and use helpers
    
    Use DISTVERSION instead of PORTVERSION as instructed in Porters Handbook
    and use framework helper to define libxslt build dependency
    
    PR:             270627
    Reviewed by:    bapt (maintainer)
---
 net-mgmt/fence-agents/Makefile | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/net-mgmt/fence-agents/Makefile b/net-mgmt/fence-agents/Makefile
index 88fddeaf69a4..474dbab381bf 100644
--- a/net-mgmt/fence-agents/Makefile
+++ b/net-mgmt/fence-agents/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	fence-agents
-PORTVERSION=	4.12.1
-DISTVERSIONPREFIX=v
+DISTVERSIONPREFIX=	v
+DISTVERSION=	4.12.1
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	bapt@FreeBSD.org
@@ -26,10 +26,11 @@ OPTIONS_DEFINE=	DOCS MANPAGES
 OPTIONS_DEFAULT=MANPAGES
 OPTIONS_SUB=	yes
 
-MANPAGES_BUILD_DEPENDS=	docbook-xsl>0:textproc/docbook-xsl \
-			xsltproc:textproc/libxslt
+MANPAGES_BUILD_DEPENDS=	docbook-xsl>0:textproc/docbook-xsl
+MANPAGES_USES=	gnome
+MANPAGES_USE=	GNOME=libxslt:build
 
 post-patch:
-	echo "echo -n ${PORTVERSION}" > ${WRKSRC}/make/git-version-gen
+	echo "echo -n ${DISTVERSION}" > ${WRKSRC}/make/git-version-gen
 
 .include <bsd.port.mk>