git: 5d2d912c7d8b - main - net/dico: Improve port

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sun, 02 Mar 2025 11:20:53 UTC
The branch main has been updated by vvd:

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

commit 5d2d912c7d8b1f35a8bd5b2f32b096bb161e0289
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-03-02 11:09:20 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-03-02 11:19:42 +0000

    net/dico: Improve port
    
    - Remove GNU_CONFIGURE_MANPREFIX.
    - Pet portclippy.
    - Rename PLIST_SUB variable.
---
 net/dico/Makefile  | 13 +++++--------
 net/dico/pkg-plist |  2 +-
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/net/dico/Makefile b/net/dico/Makefile
index 43d6d5ec8e00..fa5acbe665eb 100644
--- a/net/dico/Makefile
+++ b/net/dico/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	dico
 DISTVERSION=	2.12
+PORTREVISION=	1
 CATEGORIES=	net textproc
 MASTER_SITES=	GNU
 
@@ -14,17 +15,13 @@ LIB_DEPENDS=	libltdl.so:devel/libltdl
 
 USES=		gmake iconv libtool localbase ncurses pkgconfig readline tar:xz
 USE_LDCONFIG=	yes
+USE_RC_SUBR=	dicod
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 INSTALL_TARGET=	install-strip
-
-INFO=		dico
-
 LDFLAGS+=	-lthr
-
-PLIST_SUB=	PORTVERSION=${PORTVERSION}
 SUB_FILES=	pkg-message
-USE_RC_SUBR=	dicod
+INFO=		dico
+PLIST_SUB=	VERSION=${DISTVERSION}
 
 OPTIONS_DEFINE=	PYTHON GUILE PCRE GSASL PAM LDAP NLS TK
 OPTIONS_DEFAULT=	PYTHON PCRE
@@ -49,8 +46,8 @@ PCRE_LIB_DEPENDS=	libpcre2-8.so:devel/pcre2
 PCRE_CONFIGURE_OFF=	--without-pcre
 
 PYTHON_USES=		python
-PYTHON_CONFIGURE_ENV=	PYTHON_CONFIG=${PYTHON_CMD}-config
 PYTHON_CONFIGURE_OFF=	--without-python
+PYTHON_CONFIGURE_ENV=	PYTHON_CONFIG=${PYTHON_CMD}-config
 
 TK_USES=		tk
 TK_BINARY_ALIAS=	wish=${WISH}
diff --git a/net/dico/pkg-plist b/net/dico/pkg-plist
index b42875e8351d..f16549aea68b 100644
--- a/net/dico/pkg-plist
+++ b/net/dico/pkg-plist
@@ -58,7 +58,7 @@ share/man/man1/dico.1.gz
 share/man/man5/dicod.conf.5.gz
 share/man/man8/dicod.8.gz
 sbin/dicod
-%%DATADIR%%/%%PORTVERSION%%/include/pp-setup
+%%DATADIR%%/%%VERSION%%/include/pp-setup
 %%NLS%%share/locale/da/LC_MESSAGES/dico.mo
 %%NLS%%share/locale/de/LC_MESSAGES/dico.mo
 %%NLS%%share/locale/es/LC_MESSAGES/dico.mo