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

- add LICENSE_FILE
 - fix avoiding use of != in assignments

PR:		267501
MFH:		2022Q4
This commit is contained in:
Chris Moerz 2022-12-30 08:36:08 +00:00 committed by Nuno Teixeira
parent 8ce2f72427
commit f9080cec69

View file

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