git: 78e0fe8cdff1 - main - devel/electron28: update to 28.2.3

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Fri, 16 Feb 2024 05:15:32 UTC
The branch main has been updated by tagattie:

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

commit 78e0fe8cdff10efb6db1695026b26339e66d8801
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2024-02-16 05:11:48 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2024-02-16 05:15:22 +0000

    devel/electron28: update to 28.2.3
    
    Changelog: https://github.com/electron/electron/releases/tag/v28.2.3
    
    Reported by:    GitHub (watch releases)
---
 devel/electron28/Makefile                                  |  7 ++++---
 devel/electron28/Makefile.version                          |  2 +-
 devel/electron28/distinfo                                  | 14 +++++++-------
 devel/electron28/files/apply-electron-patches.sh           |  2 +-
 devel/electron28/files/patch-electron_spec_webview-spec.ts |  4 ++--
 5 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/devel/electron28/Makefile b/devel/electron28/Makefile
index ceaf40c6f536..ae4eb39a9c7e 100644
--- a/devel/electron28/Makefile
+++ b/devel/electron28/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	electron
 DISTVERSIONPREFIX=	v
 DISTVERSION=	${ELECTRON_VER:S/-beta./.b/}
 CATEGORIES=	devel
-MASTER_SITES=	https://github.com/tagattie/FreeBSD-Electron/releases/download/v28.2.2/:chromium \
+MASTER_SITES=	https://github.com/tagattie/FreeBSD-Electron/releases/download/v28.2.3/:chromium \
 		https://commondatastorage.googleapis.com/chromium-nodejs/:chromium_node \
 		https://commondatastorage.googleapis.com/chromium-fonts/:chromium_testfonts
 PKGNAMESUFFIX=	${ELECTRON_VER_MAJOR}
@@ -24,7 +24,8 @@ ONLY_FOR_ARCHS=	aarch64 amd64 i386
 
 FETCH_DEPENDS=	yarn${NODEJS_SUFFIX}>0:www/yarn${NODEJS_SUFFIX}
 EXTRACT_DEPENDS=yarn${NODEJS_SUFFIX}>0:www/yarn${NODEJS_SUFFIX}
-PATCH_DEPENDS=	git:devel/git
+PATCH_DEPENDS=	git:devel/git \
+		jq:textproc/jq
 BUILD_DEPENDS=	gperf:devel/gperf \
 		yasm:devel/yasm \
 		${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri \
@@ -217,7 +218,7 @@ SNDIO_VARS=		GN_ARGS+=use_sndio=true
 SNDIO_VARS_OFF=		GN_ARGS+=use_sndio=false
 
 # See ${WRKSRC}/electron/DEPS for CHROMIUM_VER
-CHROMIUM_VER=			120.0.6099.276
+CHROMIUM_VER=			120.0.6099.283
 # See ${WRKSRC}/third_party/node/node_modules.tar.gz.sha1 for CHROMIUM_NODE_MODULES_HASH
 CHROMIUM_NODE_MODULES_HASH=	bb991b26ccca36a9b3912b51dec5b70e5dea9aea
 # See ${WRKSRC}/third_party/test_fonts/test_fonts.tar.gz.sha1 for CHROMIUM_TEST_FONTS_HASH
diff --git a/devel/electron28/Makefile.version b/devel/electron28/Makefile.version
index 8c27c47929dd..8a61ff8acb41 100644
--- a/devel/electron28/Makefile.version
+++ b/devel/electron28/Makefile.version
@@ -1,2 +1,2 @@
-ELECTRON_VER=	28.2.2
+ELECTRON_VER=	28.2.3
 ELECTRON_VER_MAJOR=	${ELECTRON_VER:C/\..*//}
diff --git a/devel/electron28/distinfo b/devel/electron28/distinfo
index 143fa3d19496..46da1516d4a7 100644
--- a/devel/electron28/distinfo
+++ b/devel/electron28/distinfo
@@ -1,14 +1,14 @@
-TIMESTAMP = 1707461373
-SHA256 (electron/chromium-120.0.6099.276.tar.xz) = aad36204104f52f4bb22d6086ffb063c2c3f7ec1b1ebd7fdded17c079494c18e
-SIZE (electron/chromium-120.0.6099.276.tar.xz) = 1578733972
+TIMESTAMP = 1707998186
+SHA256 (electron/chromium-120.0.6099.283.tar.xz) = 4729ff0312492e01c95b3ff15c20d52402c9a17e833f0cdd6a3f8fab7fb965b4
+SIZE (electron/chromium-120.0.6099.283.tar.xz) = 1578611028
 SHA256 (electron/bb991b26ccca36a9b3912b51dec5b70e5dea9aea) = 8ada8e0554ecd02f649047f8f15a438590c67505b9f2e6a58fd973fe02c4ca52
 SIZE (electron/bb991b26ccca36a9b3912b51dec5b70e5dea9aea) = 9782997
 SHA256 (electron/336e775eec536b2d785cc80eff6ac39051931286) = a2ca2962daf482a8f943163541e1c73ba4b2694fabcd2510981f2db4eda493c8
 SIZE (electron/336e775eec536b2d785cc80eff6ac39051931286) = 32624734
-SHA256 (electron/electron-yarn-cache-28.2.2.tar.xz) = ee4117440555d6be62f706646bb1b3c6737cc5b741b8e72377136c72a3474518
-SIZE (electron/electron-yarn-cache-28.2.2.tar.xz) = 29073696
-SHA256 (electron/electron-electron-v28.2.2_GH0.tar.gz) = 7a20c98125eb1afde63be09235e2dcf148b21e4eca6ce06a9b9e73d5c6ec8d1f
-SIZE (electron/electron-electron-v28.2.2_GH0.tar.gz) = 11458942
+SHA256 (electron/electron-yarn-cache-28.2.3.tar.xz) = ee4117440555d6be62f706646bb1b3c6737cc5b741b8e72377136c72a3474518
+SIZE (electron/electron-yarn-cache-28.2.3.tar.xz) = 29073696
+SHA256 (electron/electron-electron-v28.2.3_GH0.tar.gz) = 330272fe10598d744a3b9213d284aa2267c505338c0468db8d5541e1884197d8
+SIZE (electron/electron-electron-v28.2.3_GH0.tar.gz) = 11462490
 SHA256 (electron/nodejs-node-v18.18.2_GH0.tar.gz) = b1c20070ec2cfc930572e8d3c3f1de4be8bc7e2259956031db00709b7775a0da
 SIZE (electron/nodejs-node-v18.18.2_GH0.tar.gz) = 112758381
 SHA256 (electron/nodejs-nan-e14bdcd1f72d62bca1d541b66da43130384ec213_GH0.tar.gz) = 02edf8d5b3fef9af94d8a1355da60564a57e7f2c99cb422bce042400607ed2eb
diff --git a/devel/electron28/files/apply-electron-patches.sh b/devel/electron28/files/apply-electron-patches.sh
index 9d974b536054..367de24e9a71 100644
--- a/devel/electron28/files/apply-electron-patches.sh
+++ b/devel/electron28/files/apply-electron-patches.sh
@@ -12,7 +12,7 @@ PATCH_CONF=${WRKSRC}/electron/patches/config.json
 
 ${GIT_CMD} status "${WRKSRC}" > /dev/null 2>&1 && IS_GIT_REPO=1
 
-PATCHD_REPOD_PAIRS=$(sed -e '1d; $d; /^$/d; s/[",]//g; s/:  */:/' "${PATCH_CONF}")
+PATCHD_REPOD_PAIRS=$(jq -r '.[] | .patch_dir + ":" + .repo' "${PATCH_CONF}")
 for prp in ${PATCHD_REPOD_PAIRS}; do
     pd=$(echo "${prp}" | awk -F: '{print $1}' | sed -e 's/src/./')
     rd=$(echo "${prp}" | awk -F: '{print $2}' | sed -e 's/src/./')
diff --git a/devel/electron28/files/patch-electron_spec_webview-spec.ts b/devel/electron28/files/patch-electron_spec_webview-spec.ts
index 2376dcf1365e..db630d225c1b 100644
--- a/devel/electron28/files/patch-electron_spec_webview-spec.ts
+++ b/devel/electron28/files/patch-electron_spec_webview-spec.ts
@@ -1,6 +1,6 @@
---- electron/spec/webview-spec.ts.orig	2023-12-04 18:19:02 UTC
+--- electron/spec/webview-spec.ts.orig	2024-02-14 18:35:26 UTC
 +++ electron/spec/webview-spec.ts
-@@ -530,7 +530,7 @@ describe('<webview> tag', function () {
+@@ -555,7 +555,7 @@ describe('<webview> tag', function () {
      });
  
      // FIXME(zcbenz): Fullscreen events do not work on Linux.