git: 697a94b55c01 - main - graphics/drawio: update to 22.1.2

From: Rodrigo Osorio <rodrigo_at_FreeBSD.org>
Date: Sun, 26 Nov 2023 14:25:27 UTC
The branch main has been updated by rodrigo:

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

commit 697a94b55c01269fcc30436c47fa42dac26a65be
Author:     Alexey Yushkin <x636808@gmail.com>
AuthorDate: 2023-11-23 10:55:26 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2023-11-26 14:19:36 +0000

    graphics/drawio: update to 22.1.2
    
        Major changes:
            * Fixes move of child cells in groups [drawio-3967]
            * [conf cloud] Fixes bugs in rendering diagrams with pageInfo param [DFCC-64]
    
        Port changes:
            * disable auto updater on first run
            * update maintainer email address
            * Reorder Makefile components to make linters happy
---
 graphics/drawio/Makefile        | 10 +++++-----
 graphics/drawio/distinfo        |  6 +++---
 graphics/drawio/files/drawio.in |  6 ++++++
 3 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/graphics/drawio/Makefile b/graphics/drawio/Makefile
index 09f6ecdc98ee..89567ad493fd 100644
--- a/graphics/drawio/Makefile
+++ b/graphics/drawio/Makefile
@@ -1,12 +1,11 @@
 PORTNAME=	drawio
-PORTVERSION=	22.0.3
+PORTVERSION=	22.1.2
 DISTVERSIONPREFIX=	x86_64-
-PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	https://github.com/jgraph/drawio-desktop/releases/download/v${PORTVERSION}/
 EXTRACT_SUFX=	.rpm
 
-MAINTAINER=	636808@mail.ru
+MAINTAINER=	x636808@gmail.com
 COMMENT=	Diagramming and whiteboarding desktop app
 WWW=		https://drawio.com/
 
@@ -14,10 +13,11 @@ LICENSE=	APACHE20
 
 USES=		desktop-file-utils electronfix:25 shared-mime-info
 
-ELECTRONFIX_MAIN_EXECUTABLE=	drawio
+NO_BUILD=	yes
 SUB_FILES=	drawio
 NO_WRKSUBDIR=	yes
-NO_BUILD=	yes
+
+ELECTRONFIX_MAIN_EXECUTABLE=	drawio
 
 do-install:
 	cd ${WRKSRC}/opt/ && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/share
diff --git a/graphics/drawio/distinfo b/graphics/drawio/distinfo
index 794e531faa18..afa5f4e19b62 100644
--- a/graphics/drawio/distinfo
+++ b/graphics/drawio/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1698402619
-SHA256 (drawio-x86_64-22.0.3.rpm) = 2c19909a99510da7722913305d8abe3c674a13b8823dc7ab8fb67c4d3d9670bb
-SIZE (drawio-x86_64-22.0.3.rpm) = 107585929
+TIMESTAMP = 1700735365
+SHA256 (drawio-x86_64-22.1.2.rpm) = 197aa4dda7488fff14d65abde13081557e2d4b8e276b80150e3f8cf3b517c2ce
+SIZE (drawio-x86_64-22.1.2.rpm) = 107662185
diff --git a/graphics/drawio/files/drawio.in b/graphics/drawio/files/drawio.in
index 778634eb81e6..f8beb1579c6b 100644
--- a/graphics/drawio/files/drawio.in
+++ b/graphics/drawio/files/drawio.in
@@ -5,4 +5,10 @@ if [ "$DBUS_SESSION_BUS_ADDRESS" = "" ]; then
     export DBUS_SESSION_BUS_ADDRESS="autolaunch:"
 fi
 
+# disable auto updater on first run
+if [ ! -f $HOME/.config/draw.io/config.json ]; then
+    mkdir -p $HOME/.config/draw.io/
+    echo '{"dontCheckUpdates":true}' > $HOME/.config/draw.io/config.json
+fi
+
 exec %%DATADIR%%/drawio  "$@"