git: 55159a47a78a - main - deskutils/mozo: insists on installing *.mo files

From: Eric Turgeon <ericbsd_at_FreeBSD.org>
Date: Wed, 20 Oct 2021 12:24:43 UTC
The branch main has been updated by ericbsd:

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

commit 55159a47a78a0af63cb8627e27a593443f6f004b
Author:     Eric Turgeon <ericbsd@FreeBSD.org>
AuthorDate: 2021-10-20 12:20:58 +0000
Commit:     Eric Turgeon <ericbsd@FreeBSD.org>
CommitDate: 2021-10-20 12:24:41 +0000

    deskutils/mozo: insists on installing *.mo files
    
    even when NLS is off
    
    Patch for deskutils/mozo/pkg-plist hiding *.mo files behind %%NLS%%
    
    PR:     256570
    Reported by:    takefu
---
 deskutils/mozo/Makefile  |   7 +-
 deskutils/mozo/pkg-plist | 278 +++++++++++++++++++++++------------------------
 2 files changed, 141 insertions(+), 144 deletions(-)

diff --git a/deskutils/mozo/Makefile b/deskutils/mozo/Makefile
index 1ccb52057ca9..e4e87a2f0cd9 100644
--- a/deskutils/mozo/Makefile
+++ b/deskutils/mozo/Makefile
@@ -16,20 +16,17 @@ RUN_DEPENDS=	${LOCALBASE}/bin/mate-desktop-item-edit:x11/mate-panel
 
 USES=		gettext-tools gmake gnome localbase mate pathfix pkgconfig \
 		python:3.7+ tar:xz
-USE_MATE=	menus
 USE_GNOME=	gtk30 intltool pygobject3
+USE_MATE=	menus
 GNU_CONFIGURE=	yes
 NO_ARCH=	yes
 
 PORTSCOUT=	limitw:1,even
 
+NLS_USES=	gettext
 OPTIONS_DEFINE=	NLS
 OPTIONS_SUB=	yes
 
 NLS_CONFIGURE_ENABLE=	nls
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
-	    ${WRKSRC}/Mozo/util.py
-
 .include <bsd.port.mk>
diff --git a/deskutils/mozo/pkg-plist b/deskutils/mozo/pkg-plist
index e367842b0eac..4f63d8b75b92 100644
--- a/deskutils/mozo/pkg-plist
+++ b/deskutils/mozo/pkg-plist
@@ -22,143 +22,143 @@ share/icons/hicolor/24x24/apps/mozo.png
 share/icons/hicolor/256x256/apps/mozo.png
 share/icons/hicolor/32x32/apps/mozo.png
 share/icons/hicolor/48x48/apps/mozo.png
-share/locale/af/LC_MESSAGES/mozo.mo
-share/locale/am/LC_MESSAGES/mozo.mo
-share/locale/an/LC_MESSAGES/mozo.mo
-share/locale/ar/LC_MESSAGES/mozo.mo
-share/locale/as/LC_MESSAGES/mozo.mo
-share/locale/ast/LC_MESSAGES/mozo.mo
-share/locale/az/LC_MESSAGES/mozo.mo
-share/locale/be/LC_MESSAGES/mozo.mo
-share/locale/bg/LC_MESSAGES/mozo.mo
-share/locale/bn/LC_MESSAGES/mozo.mo
-share/locale/bn_IN/LC_MESSAGES/mozo.mo
-share/locale/br/LC_MESSAGES/mozo.mo
-share/locale/bs/LC_MESSAGES/mozo.mo
-share/locale/ca/LC_MESSAGES/mozo.mo
-share/locale/ca@valencia/LC_MESSAGES/mozo.mo
-share/locale/cmn/LC_MESSAGES/mozo.mo
-share/locale/crh/LC_MESSAGES/mozo.mo
-share/locale/cs/LC_MESSAGES/mozo.mo
-share/locale/cy/LC_MESSAGES/mozo.mo
-share/locale/da/LC_MESSAGES/mozo.mo
-share/locale/de/LC_MESSAGES/mozo.mo
-share/locale/dz/LC_MESSAGES/mozo.mo
-share/locale/el/LC_MESSAGES/mozo.mo
-share/locale/en_AU/LC_MESSAGES/mozo.mo
-share/locale/en_CA/LC_MESSAGES/mozo.mo
-share/locale/en_GB/LC_MESSAGES/mozo.mo
-share/locale/eo/LC_MESSAGES/mozo.mo
-share/locale/es/LC_MESSAGES/mozo.mo
-share/locale/es_AR/LC_MESSAGES/mozo.mo
-share/locale/es_CL/LC_MESSAGES/mozo.mo
-share/locale/es_CO/LC_MESSAGES/mozo.mo
-share/locale/es_CR/LC_MESSAGES/mozo.mo
-share/locale/es_DO/LC_MESSAGES/mozo.mo
-share/locale/es_EC/LC_MESSAGES/mozo.mo
-share/locale/es_ES/LC_MESSAGES/mozo.mo
-share/locale/es_MX/LC_MESSAGES/mozo.mo
-share/locale/es_NI/LC_MESSAGES/mozo.mo
-share/locale/es_PA/LC_MESSAGES/mozo.mo
-share/locale/es_PE/LC_MESSAGES/mozo.mo
-share/locale/es_PR/LC_MESSAGES/mozo.mo
-share/locale/es_SV/LC_MESSAGES/mozo.mo
-share/locale/es_UY/LC_MESSAGES/mozo.mo
-share/locale/es_VE/LC_MESSAGES/mozo.mo
-share/locale/et/LC_MESSAGES/mozo.mo
-share/locale/eu/LC_MESSAGES/mozo.mo
-share/locale/fa/LC_MESSAGES/mozo.mo
-share/locale/fi/LC_MESSAGES/mozo.mo
-share/locale/fr/LC_MESSAGES/mozo.mo
-share/locale/fr_CA/LC_MESSAGES/mozo.mo
-share/locale/frp/LC_MESSAGES/mozo.mo
-share/locale/fur/LC_MESSAGES/mozo.mo
-share/locale/fy/LC_MESSAGES/mozo.mo
-share/locale/ga/LC_MESSAGES/mozo.mo
-share/locale/gd/LC_MESSAGES/mozo.mo
-share/locale/gl/LC_MESSAGES/mozo.mo
-share/locale/gu/LC_MESSAGES/mozo.mo
-share/locale/ha/LC_MESSAGES/mozo.mo
-share/locale/he/LC_MESSAGES/mozo.mo
-share/locale/hi/LC_MESSAGES/mozo.mo
-share/locale/hr/LC_MESSAGES/mozo.mo
-share/locale/hu/LC_MESSAGES/mozo.mo
-share/locale/hy/LC_MESSAGES/mozo.mo
-share/locale/ia/LC_MESSAGES/mozo.mo
-share/locale/id/LC_MESSAGES/mozo.mo
-share/locale/ie/LC_MESSAGES/mozo.mo
-share/locale/ig/LC_MESSAGES/mozo.mo
-share/locale/is/LC_MESSAGES/mozo.mo
-share/locale/it/LC_MESSAGES/mozo.mo
-share/locale/ja/LC_MESSAGES/mozo.mo
-share/locale/ka/LC_MESSAGES/mozo.mo
-share/locale/kab/LC_MESSAGES/mozo.mo
-share/locale/kk/LC_MESSAGES/mozo.mo
-share/locale/km/LC_MESSAGES/mozo.mo
-share/locale/kn/LC_MESSAGES/mozo.mo
-share/locale/ko/LC_MESSAGES/mozo.mo
-share/locale/ks/LC_MESSAGES/mozo.mo
-share/locale/ku/LC_MESSAGES/mozo.mo
-share/locale/ku_IQ/LC_MESSAGES/mozo.mo
-share/locale/ky/LC_MESSAGES/mozo.mo
-share/locale/la/LC_MESSAGES/mozo.mo
-share/locale/li/LC_MESSAGES/mozo.mo
-share/locale/lt/LC_MESSAGES/mozo.mo
-share/locale/lv/LC_MESSAGES/mozo.mo
-share/locale/mai/LC_MESSAGES/mozo.mo
-share/locale/mg/LC_MESSAGES/mozo.mo
-share/locale/mi/LC_MESSAGES/mozo.mo
-share/locale/mk/LC_MESSAGES/mozo.mo
-share/locale/ml/LC_MESSAGES/mozo.mo
-share/locale/mn/LC_MESSAGES/mozo.mo
-share/locale/mr/LC_MESSAGES/mozo.mo
-share/locale/ms/LC_MESSAGES/mozo.mo
-share/locale/my/LC_MESSAGES/mozo.mo
-share/locale/nah/LC_MESSAGES/mozo.mo
-share/locale/nb/LC_MESSAGES/mozo.mo
-share/locale/nds/LC_MESSAGES/mozo.mo
-share/locale/ne/LC_MESSAGES/mozo.mo
-share/locale/nl/LC_MESSAGES/mozo.mo
-share/locale/nn/LC_MESSAGES/mozo.mo
-share/locale/nqo/LC_MESSAGES/mozo.mo
-share/locale/nso/LC_MESSAGES/mozo.mo
-share/locale/oc/LC_MESSAGES/mozo.mo
-share/locale/or/LC_MESSAGES/mozo.mo
-share/locale/pa/LC_MESSAGES/mozo.mo
-share/locale/pl/LC_MESSAGES/mozo.mo
-share/locale/pms/LC_MESSAGES/mozo.mo
-share/locale/ps/LC_MESSAGES/mozo.mo
-share/locale/pt/LC_MESSAGES/mozo.mo
-share/locale/pt_BR/LC_MESSAGES/mozo.mo
-share/locale/ro/LC_MESSAGES/mozo.mo
-share/locale/ru/LC_MESSAGES/mozo.mo
-share/locale/rw/LC_MESSAGES/mozo.mo
-share/locale/sc/LC_MESSAGES/mozo.mo
-share/locale/si/LC_MESSAGES/mozo.mo
-share/locale/sk/LC_MESSAGES/mozo.mo
-share/locale/sl/LC_MESSAGES/mozo.mo
-share/locale/sq/LC_MESSAGES/mozo.mo
-share/locale/sr/LC_MESSAGES/mozo.mo
-share/locale/sr@latin/LC_MESSAGES/mozo.mo
-share/locale/sv/LC_MESSAGES/mozo.mo
-share/locale/ta/LC_MESSAGES/mozo.mo
-share/locale/te/LC_MESSAGES/mozo.mo
-share/locale/th/LC_MESSAGES/mozo.mo
-share/locale/tk/LC_MESSAGES/mozo.mo
-share/locale/tr/LC_MESSAGES/mozo.mo
-share/locale/tt/LC_MESSAGES/mozo.mo
-share/locale/ug/LC_MESSAGES/mozo.mo
-share/locale/uk/LC_MESSAGES/mozo.mo
-share/locale/ur/LC_MESSAGES/mozo.mo
-share/locale/ur_PK/LC_MESSAGES/mozo.mo
-share/locale/uz/LC_MESSAGES/mozo.mo
-share/locale/vi/LC_MESSAGES/mozo.mo
-share/locale/wa/LC_MESSAGES/mozo.mo
-share/locale/xh/LC_MESSAGES/mozo.mo
-share/locale/yi/LC_MESSAGES/mozo.mo
-share/locale/yo/LC_MESSAGES/mozo.mo
-share/locale/zh_CN/LC_MESSAGES/mozo.mo
-share/locale/zh_HK/LC_MESSAGES/mozo.mo
-share/locale/zh_TW/LC_MESSAGES/mozo.mo
-share/locale/zu/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/af/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/am/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/an/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ar/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/as/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ast/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/az/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/be/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/bn/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/bn_IN/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/br/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/bs/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ca@valencia/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/cmn/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/crh/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/cy/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/da/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/de/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/dz/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/el/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/en_AU/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/en_CA/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_AR/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_CL/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_CO/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_CR/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_DO/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_EC/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_ES/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_MX/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_NI/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_PA/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_PE/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_PR/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_SV/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_UY/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/es_VE/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/et/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/fa/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/fr_CA/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/frp/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/fur/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/fy/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ga/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/gd/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/gu/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ha/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/he/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/hi/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/hy/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ia/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/id/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ie/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ig/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/is/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/it/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ka/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/kab/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/kk/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/km/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/kn/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ks/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ku/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ku_IQ/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ky/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/la/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/li/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/lv/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/mai/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/mg/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/mi/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/mk/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ml/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/mn/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/mr/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ms/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/my/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/nah/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/nds/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ne/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/nn/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/nqo/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/nso/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/oc/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/or/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/pa/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/pms/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ps/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/rw/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/sc/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/si/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/sq/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/sr@latin/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ta/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/te/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/th/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/tk/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/tt/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ug/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ur/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/ur_PK/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/uz/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/wa/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/xh/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/yi/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/yo/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/zh_HK/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/mozo.mo
+%%NLS%%share/locale/zu/LC_MESSAGES/mozo.mo
 %%DATADIR%%/mozo.ui