git: f9080cec69db - main - x11-wm/nscde: Replace expired ksh2020 dependency, Remove DEPRECATED

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Fri, 30 Dec 2022 08:41:04 UTC
The branch main has been updated by eduardo:

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

commit f9080cec69db09ce08dc72da892cc830fdbfe231
Author:     Chris Moerz <freebsd@ny-central.org>
AuthorDate: 2022-12-30 08:36:08 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-12-30 08:40:33 +0000

    x11-wm/nscde: Replace expired ksh2020 dependency, Remove DEPRECATED
    
     - add LICENSE_FILE
     - fix avoiding use of != in assignments
    
    PR:             267501
    MFH:            2022Q4
---
 x11-wm/nscde/Makefile | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/x11-wm/nscde/Makefile b/x11-wm/nscde/Makefile
index 101e986ba64a..19db82204080 100644
--- a/x11-wm/nscde/Makefile
+++ b/x11-wm/nscde/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	nscde
 DISTVERSION=	2.2
+PORTREVISION=	1
 CATEGORIES=	x11-wm
 MASTER_SITES=	https://github.com/NsCDE/NsCDE/releases/download/${DISTVERSION}/
 
@@ -8,9 +9,7 @@ COMMENT=	Modern CDE clone based on fvwm
 WWW=		https://github.com/NsCDE/NsCDE
 
 LICENSE=	GPLv3
-
-DEPRECATED=	Depends on expired shells/ksh2020
-EXPIRATION_DATE=2022-12-31
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psutil>=5.7.0:sysutils/py-psutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} \
@@ -19,7 +18,7 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psutil>=5.7.0:sysutils/py-psutil@${PY_FLAV
 		font-bh-lucidatypewriter-100dpi>0:x11-fonts/font-bh-lucidatypewriter-100dpi \
 		fvwm2:x11-wm/fvwm2 \
 		gsed:textproc/gsed \
-		ksh93:shells/ksh2020 \
+		ksh93:shells/ksh93 \
 		qt5-style-plugins>=5.0.0:x11-themes/qt5-style-plugins \
 		roboto-fonts-ttf>0:x11-fonts/roboto-fonts-ttf \
 		stalonetray:x11/stalonetray \
@@ -52,8 +51,8 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psutil>=5.7.0:sysutils/py-psutil@${PY_FLAVOR
 		xsettingsd:x11/xsettingsd \
 		xterm:x11/xterm
 
-USES=		gettext magick pkgconfig:build pyqt:5 python:3.7+ shebangfix \
-		xorg
+USES=		desktop-file-utils gettext magick pkgconfig:build pyqt:5 \
+		python:3.7+ shebangfix xorg
 USE_PYQT=	pyqt5
 USE_XORG=	x11 xext xpm
 
@@ -83,15 +82,15 @@ SUDO_DESC=			Use sudo to elevate privileges
 
 ASTKSH_RUN_DEPENDS=	ksh93:shells/ast-ksh93
 DOAS_RUN_DEPENDS=	doas:security/doas
-KSH2020_RUN_DEPENDS=	ksh93:shells/ksh2020
+KSH2020_RUN_DEPENDS=	ksh93:shells/ksh93
 SUDO_RUN_DEPENDS=	sudo:security/sudo
 
 _SUDOFILES=	data/fvwm/Functions.fvwmconf.in lib/scripts/SysActionDialog
 
 .include <bsd.port.pre.mk>
 
-UNAME_M!=	${UNAME} -m
-PLIST_SUB+=	ARCH=${UNAME_M}
+UNAME_M_CMD=	${UNAME} -m
+PLIST_SUB+=	ARCH="$$(${UNAME_M_CMD})"
 
 post-patch-DOAS-on:
 	( for SUDOF in ${_SUDOFILES}; do ${REINPLACE_CMD} -e "s@sudo \\-n@doas@g" ${WRKSRC}/$${SUDOF}; done )