git: 319d9a719f88 - main - news/sabnzbd: Update 4.3.2 → 4.3.3

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Fri, 30 Aug 2024 21:44:34 UTC
The branch main has been updated by vvd:

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

commit 319d9a719f8874be9ec9eaf11f94f92459458756
Author:     Matt <lazeraman@gmail.com>
AuthorDate: 2024-08-30 21:43:45 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-30 21:43:45 +0000

    news/sabnzbd: Update 4.3.2 → 4.3.3
    
    Changelog:
    https://github.com/sabnzbd/sabnzbd/releases/tag/4.3.3
    
    Port changes:
    - Rework NLS option
    - Rework do-install target
    - Formatting
    
    PR:             281105
    Approved by:    Nicholas Kirby <nick@kirby.cx> (maintainer)
---
 news/sabnzbd/Makefile  |  44 ++++++-----
 news/sabnzbd/distinfo  |   6 +-
 news/sabnzbd/pkg-plist | 199 +++++++++++++++++--------------------------------
 3 files changed, 93 insertions(+), 156 deletions(-)

diff --git a/news/sabnzbd/Makefile b/news/sabnzbd/Makefile
index 452a9f092959..f46770b68328 100644
--- a/news/sabnzbd/Makefile
+++ b/news/sabnzbd/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	sabnzbd
-DISTVERSION=	4.3.2
+DISTVERSION=	4.3.3
 CATEGORIES=	news
-MASTER_SITES=	https://github.com/sabnzbd/sabnzbd/releases/download/${DISTVERSION}/
+MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
 DISTNAME=	SABnzbd-${DISTVERSION}-src
 
 MAINTAINER=	nick@kirby.cx
@@ -30,19 +30,20 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}apprise>0:net-im/py-apprise@${PY_FLAVOR} \
 		par2cmdline-turbo>0:archivers/par2cmdline-turbo \
 		unrar:archivers/unrar
 
-USES=		gettext-tools python shebangfix
-USE_RC_SUBR=	sabnzbd
+USES=		python shebangfix
+USE_RC_SUBR=	${PORTNAME}
 
-SHEBANG_FILES=	SABnzbd.py tools/msgfmt.py
+SHEBANG_FILES=	SABnzbd.py
 
 NO_ARCH=	yes
+NO_BUILD=	yes
 SUB_FILES=	pkg-message
 SUB_LIST=	PYTHON_CMD=${PYTHON_CMD}
 
 WRKSRC=		${WRKDIR}/SABnzbd-${DISTVERSION}
 
-USERS=		_sabnzbd
-GROUPS=		_sabnzbd
+USERS=		_${PORTNAME}
+GROUPS=		_${PORTNAME}
 
 PORTDOCS=	COPYRIGHT.txt INSTALL.txt ISSUES.txt README.mkd
 
@@ -56,35 +57,32 @@ PYGOBJECT_DESC=		PyGObject support for system tray icon (requires cairo)
 
 7ZIP_RUN_DEPENDS=	7zz:archivers/7-zip
 DBUS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${PY_FLAVOR}
-NLS_USES=		gettext
-NLS_CONFIGURE_OFF=	--disable-nls
+NLS_USES=		gettext-tools
 NOTIFY2_IMPLIES=	DBUS
 NOTIFY2_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}notify2>=0:devel/py-notify2@${PY_FLAVOR}
 PYGOBJECT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>=3.10.2:devel/py-gobject3@${PY_FLAVOR}
 SSL_USE=		PYTHON=cryptography
 
 post-patch:
-	@${REINPLACE_CMD} -e "s:%%DATADIR%%:'${DATADIR}':g" \
-		 ${WRKSRC}/SABnzbd.py
-
-# Generate locale files
-do-build:
-	cd ${WRKSRC} && ${PYTHON_CMD} tools/make_mo.py
+	@${REINPLACE_CMD} -e "s:%%DATADIR%%:'${DATADIR}':g" ${WRKSRC}/SABnzbd.py
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/SABnzbd.py ${STAGEDIR}${PREFIX}/bin
-	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd
-	cd ${WRKSRC}/sabnzbd && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd
-	@${MKDIR} ${STAGEDIR}${DATADIR}
-.for i in email icons interfaces locale po tools
-	@${MKDIR} ${STAGEDIR}${DATADIR}/${i}
-	cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${i}
-.endfor
+	(cd ${WRKSRC} && \
+		${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} && \
+		${COPYTREE_SHARE} "icons interfaces" ${STAGEDIR}${DATADIR})
 
 post-install-DOCS-on:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
 .endfor
 
+post-install-NLS-on:
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "email locale" ${STAGEDIR}${DATADIR})
+
+post-install-NLS-off:
+	${MKDIR} ${STAGEDIR}${DATADIR}/email
+	${INSTALL_DATA} ${WRKSRC}/email/*-en.tmpl ${STAGEDIR}${DATADIR}/email
+
 .include <bsd.port.mk>
diff --git a/news/sabnzbd/distinfo b/news/sabnzbd/distinfo
index 218ce04ea2a5..8c632faefb48 100644
--- a/news/sabnzbd/distinfo
+++ b/news/sabnzbd/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1717035545
-SHA256 (SABnzbd-4.3.2-src.tar.gz) = d238ffa957e71ad22c16535922cb32e7e6e84afc79eadd5c8f668ce591e207be
-SIZE (SABnzbd-4.3.2-src.tar.gz) = 5106752
+TIMESTAMP = 1724809518
+SHA256 (SABnzbd-4.3.3-src.tar.gz) = 3f787e9734e22bc69f6c160949d93bfd5ef824fe72b74a50eac356ec2262345f
+SIZE (SABnzbd-4.3.3-src.tar.gz) = 5108172
diff --git a/news/sabnzbd/pkg-plist b/news/sabnzbd/pkg-plist
index 0f87a51fef58..2777d7255c53 100644
--- a/news/sabnzbd/pkg-plist
+++ b/news/sabnzbd/pkg-plist
@@ -58,60 +58,60 @@ bin/SABnzbd.py
 %%PYTHON_SITELIBDIR%%/sabnzbd/utils/systrayiconthread.py
 %%PYTHON_SITELIBDIR%%/sabnzbd/version.py
 %%PYTHON_SITELIBDIR%%/sabnzbd/zconfig.py
-%%DATADIR%%/email/badfetch-cs.tmpl
-%%DATADIR%%/email/badfetch-da.tmpl
-%%DATADIR%%/email/badfetch-de.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-cs.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-da.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-de.tmpl
 %%DATADIR%%/email/badfetch-en.tmpl
-%%DATADIR%%/email/badfetch-es.tmpl
-%%DATADIR%%/email/badfetch-fi.tmpl
-%%DATADIR%%/email/badfetch-fr.tmpl
-%%DATADIR%%/email/badfetch-he.tmpl
-%%DATADIR%%/email/badfetch-it.tmpl
-%%DATADIR%%/email/badfetch-nb.tmpl
-%%DATADIR%%/email/badfetch-nl.tmpl
-%%DATADIR%%/email/badfetch-pl.tmpl
-%%DATADIR%%/email/badfetch-pt_BR.tmpl
-%%DATADIR%%/email/badfetch-ro.tmpl
-%%DATADIR%%/email/badfetch-ru.tmpl
-%%DATADIR%%/email/badfetch-sr.tmpl
-%%DATADIR%%/email/badfetch-sv.tmpl
-%%DATADIR%%/email/badfetch-zh_CN.tmpl
-%%DATADIR%%/email/email-cs.tmpl
-%%DATADIR%%/email/email-da.tmpl
-%%DATADIR%%/email/email-de.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-es.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-fi.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-fr.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-he.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-it.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-nb.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-nl.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-pl.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-pt_BR.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-ro.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-ru.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-sr.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-sv.tmpl
+%%NLS%%%%DATADIR%%/email/badfetch-zh_CN.tmpl
+%%NLS%%%%DATADIR%%/email/email-cs.tmpl
+%%NLS%%%%DATADIR%%/email/email-da.tmpl
+%%NLS%%%%DATADIR%%/email/email-de.tmpl
 %%DATADIR%%/email/email-en.tmpl
-%%DATADIR%%/email/email-es.tmpl
-%%DATADIR%%/email/email-fi.tmpl
-%%DATADIR%%/email/email-fr.tmpl
-%%DATADIR%%/email/email-he.tmpl
-%%DATADIR%%/email/email-it.tmpl
-%%DATADIR%%/email/email-nb.tmpl
-%%DATADIR%%/email/email-nl.tmpl
-%%DATADIR%%/email/email-pl.tmpl
-%%DATADIR%%/email/email-pt_BR.tmpl
-%%DATADIR%%/email/email-ro.tmpl
-%%DATADIR%%/email/email-ru.tmpl
-%%DATADIR%%/email/email-sr.tmpl
-%%DATADIR%%/email/email-sv.tmpl
-%%DATADIR%%/email/email-zh_CN.tmpl
-%%DATADIR%%/email/rss-cs.tmpl
-%%DATADIR%%/email/rss-da.tmpl
-%%DATADIR%%/email/rss-de.tmpl
+%%NLS%%%%DATADIR%%/email/email-es.tmpl
+%%NLS%%%%DATADIR%%/email/email-fi.tmpl
+%%NLS%%%%DATADIR%%/email/email-fr.tmpl
+%%NLS%%%%DATADIR%%/email/email-he.tmpl
+%%NLS%%%%DATADIR%%/email/email-it.tmpl
+%%NLS%%%%DATADIR%%/email/email-nb.tmpl
+%%NLS%%%%DATADIR%%/email/email-nl.tmpl
+%%NLS%%%%DATADIR%%/email/email-pl.tmpl
+%%NLS%%%%DATADIR%%/email/email-pt_BR.tmpl
+%%NLS%%%%DATADIR%%/email/email-ro.tmpl
+%%NLS%%%%DATADIR%%/email/email-ru.tmpl
+%%NLS%%%%DATADIR%%/email/email-sr.tmpl
+%%NLS%%%%DATADIR%%/email/email-sv.tmpl
+%%NLS%%%%DATADIR%%/email/email-zh_CN.tmpl
+%%NLS%%%%DATADIR%%/email/rss-cs.tmpl
+%%NLS%%%%DATADIR%%/email/rss-da.tmpl
+%%NLS%%%%DATADIR%%/email/rss-de.tmpl
 %%DATADIR%%/email/rss-en.tmpl
-%%DATADIR%%/email/rss-es.tmpl
-%%DATADIR%%/email/rss-fi.tmpl
-%%DATADIR%%/email/rss-fr.tmpl
-%%DATADIR%%/email/rss-he.tmpl
-%%DATADIR%%/email/rss-it.tmpl
-%%DATADIR%%/email/rss-nb.tmpl
-%%DATADIR%%/email/rss-nl.tmpl
-%%DATADIR%%/email/rss-pl.tmpl
-%%DATADIR%%/email/rss-pt_BR.tmpl
-%%DATADIR%%/email/rss-ro.tmpl
-%%DATADIR%%/email/rss-ru.tmpl
-%%DATADIR%%/email/rss-sr.tmpl
-%%DATADIR%%/email/rss-sv.tmpl
-%%DATADIR%%/email/rss-zh_CN.tmpl
+%%NLS%%%%DATADIR%%/email/rss-es.tmpl
+%%NLS%%%%DATADIR%%/email/rss-fi.tmpl
+%%NLS%%%%DATADIR%%/email/rss-fr.tmpl
+%%NLS%%%%DATADIR%%/email/rss-he.tmpl
+%%NLS%%%%DATADIR%%/email/rss-it.tmpl
+%%NLS%%%%DATADIR%%/email/rss-nb.tmpl
+%%NLS%%%%DATADIR%%/email/rss-nl.tmpl
+%%NLS%%%%DATADIR%%/email/rss-pl.tmpl
+%%NLS%%%%DATADIR%%/email/rss-pt_BR.tmpl
+%%NLS%%%%DATADIR%%/email/rss-ro.tmpl
+%%NLS%%%%DATADIR%%/email/rss-ru.tmpl
+%%NLS%%%%DATADIR%%/email/rss-sr.tmpl
+%%NLS%%%%DATADIR%%/email/rss-sv.tmpl
+%%NLS%%%%DATADIR%%/email/rss-zh_CN.tmpl
 %%DATADIR%%/icons/logo-arrow.svg
 %%DATADIR%%/icons/logo-arrow_gray.svg
 %%DATADIR%%/icons/logo-arrow_green.svg
@@ -223,82 +223,21 @@ bin/SABnzbd.py
 %%DATADIR%%/interfaces/wizard/static/javascript/checkserver.js
 %%DATADIR%%/interfaces/wizard/static/style.css
 %%DATADIR%%/interfaces/wizard/two.html
-%%DATADIR%%/locale/cs/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/da/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/de/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/en/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/es/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/fi/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/fr/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/he/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/it/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/nb/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/nl/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/pl/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/pt_BR/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/ro/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/ru/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/sr/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/sv/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/locale/zh_CN/LC_MESSAGES/SABnzbd.mo
-%%DATADIR%%/po/email/SABemail.pot
-%%DATADIR%%/po/email/cs.po
-%%DATADIR%%/po/email/da.po
-%%DATADIR%%/po/email/de.po
-%%DATADIR%%/po/email/en.po
-%%DATADIR%%/po/email/es.po
-%%DATADIR%%/po/email/fi.po
-%%DATADIR%%/po/email/fr.po
-%%DATADIR%%/po/email/he.po
-%%DATADIR%%/po/email/it.po
-%%DATADIR%%/po/email/nb.po
-%%DATADIR%%/po/email/nl.po
-%%DATADIR%%/po/email/pl.po
-%%DATADIR%%/po/email/pt_BR.po
-%%DATADIR%%/po/email/ro.po
-%%DATADIR%%/po/email/ru.po
-%%DATADIR%%/po/email/sr.po
-%%DATADIR%%/po/email/sv.po
-%%DATADIR%%/po/email/zh_CN.po
-%%DATADIR%%/po/main/SABnzbd.pot
-%%DATADIR%%/po/main/cs.po
-%%DATADIR%%/po/main/da.po
-%%DATADIR%%/po/main/de.po
-%%DATADIR%%/po/main/en.po
-%%DATADIR%%/po/main/es.po
-%%DATADIR%%/po/main/fi.po
-%%DATADIR%%/po/main/fr.po
-%%DATADIR%%/po/main/he.po
-%%DATADIR%%/po/main/it.po
-%%DATADIR%%/po/main/nb.po
-%%DATADIR%%/po/main/nl.po
-%%DATADIR%%/po/main/pl.po
-%%DATADIR%%/po/main/pt_BR.po
-%%DATADIR%%/po/main/ro.po
-%%DATADIR%%/po/main/ru.po
-%%DATADIR%%/po/main/sr.po
-%%DATADIR%%/po/main/sv.po
-%%DATADIR%%/po/main/zh_CN.po
-%%DATADIR%%/po/nsis/SABnsis.pot
-%%DATADIR%%/po/nsis/cs.po
-%%DATADIR%%/po/nsis/da.po
-%%DATADIR%%/po/nsis/de.po
-%%DATADIR%%/po/nsis/en.po
-%%DATADIR%%/po/nsis/es.po
-%%DATADIR%%/po/nsis/fi.po
-%%DATADIR%%/po/nsis/fr.po
-%%DATADIR%%/po/nsis/he.po
-%%DATADIR%%/po/nsis/it.po
-%%DATADIR%%/po/nsis/nb.po
-%%DATADIR%%/po/nsis/nl.po
-%%DATADIR%%/po/nsis/pl.po
-%%DATADIR%%/po/nsis/pt_BR.po
-%%DATADIR%%/po/nsis/ro.po
-%%DATADIR%%/po/nsis/ru.po
-%%DATADIR%%/po/nsis/sr.po
-%%DATADIR%%/po/nsis/sv.po
-%%DATADIR%%/po/nsis/zh_CN.po
-%%DATADIR%%/tools/extract_pot.py
-%%DATADIR%%/tools/make_mo.py
-%%DATADIR%%/tools/msgfmt.py
-%%DATADIR%%/tools/pygettext.py
+%%NLS%%%%DATADIR%%/locale/cs/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/da/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/de/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/en/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/es/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/fi/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/fr/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/he/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/it/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/nb/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/nl/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/pl/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/pt_BR/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/ro/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/ru/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/sr/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/sv/LC_MESSAGES/SABnzbd.mo
+%%NLS%%%%DATADIR%%/locale/zh_CN/LC_MESSAGES/SABnzbd.mo