git: e45f4121324e - main - x11/xsnow: update to 3.7.1 release (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Thu, 09 Mar 2023 20:39:48 UTC
The branch main has been updated by fluffy:

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

commit e45f4121324ee30e51d8c8120fb2896f415a3e2f
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-03-09 20:14:16 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-03-09 20:39:43 +0000

    x11/xsnow: update to 3.7.1 release (+)
    
    Introduce NLS support
    
    Changelog:      https://www.ratrabbit.nl/ratrabbit/xsnow/changelog/index.html
---
 x11/xsnow/Makefile  | 19 +++++++++++--------
 x11/xsnow/distinfo  |  6 +++---
 x11/xsnow/pkg-plist | 27 +++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 11 deletions(-)

diff --git a/x11/xsnow/Makefile b/x11/xsnow/Makefile
index 284db4ccf27d..9d3427246d74 100644
--- a/x11/xsnow/Makefile
+++ b/x11/xsnow/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	xsnow
-PORTVERSION=	3.6.0
-PORTREVISION=	1
+PORTVERSION=	3.7.1
 CATEGORIES=	x11
 MASTER_SITES=	SF/${PORTNAME}/
 
@@ -11,16 +10,20 @@ WWW=		https://www.ratrabbit.nl/ratrabbit/xsnow/
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libgsl.so:math/gsl
+LIB_DEPENDS=	libgsl.so:math/gsl \
+		libxkbcommon.so:x11/libxkbcommon
 
 USES=		compiler:c11 gmake gnome pkgconfig xorg
 USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30 libxml2
-USE_XORG=	x11 xext xpm xt xorgproto
+USE_XORG=	x11 xext xinerama xpm xt xtst xorgproto
 GNU_CONFIGURE=	yes
-PLIST_FILES=	bin/xsnow man/man6/xsnow.6.gz \
-		share/applications/xsnow.desktop \
-		share/metainfo/xsnow.appdata.xml \
-		share/pixmaps/xsnow.svg
+
+OPTIONS_DEFINE=		NLS
+OPTIONS_DEFAULT=	NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=		gettext-tools
+NLS_CONFIGURE_ENABLE=	nls
 
 post-patch:
 	@${REINPLACE_CMD} \
diff --git a/x11/xsnow/distinfo b/x11/xsnow/distinfo
index 38d0e1e4178d..0c4eb7015adc 100644
--- a/x11/xsnow/distinfo
+++ b/x11/xsnow/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1670353830
-SHA256 (xsnow-3.6.0.tar.gz) = 715741f11dd5fd672ddc3c702e802585a31c211aac3d06612e462a6369398215
-SIZE (xsnow-3.6.0.tar.gz) = 495875
+TIMESTAMP = 1678391381
+SHA256 (xsnow-3.7.1.tar.gz) = bb7ee8e411902a22d59cdd91e04fe83cb9ea526baea1690d2d6970fdb17caac4
+SIZE (xsnow-3.7.1.tar.gz) = 1381485
diff --git a/x11/xsnow/pkg-plist b/x11/xsnow/pkg-plist
new file mode 100644
index 000000000000..fc904da8516b
--- /dev/null
+++ b/x11/xsnow/pkg-plist
@@ -0,0 +1,27 @@
+bin/xsnow
+man/man6/xsnow.6.gz
+share/applications/xsnow.desktop
+%%NLS%%share/locale/cs/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/da/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/de/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/el/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/en/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/es/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/et/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/is/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/it/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/lv/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/no/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/xsnow.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/xsnow.mo
+share/metainfo/xsnow.appdata.xml
+share/pixmaps/xsnow.svg