git: d4af69782243 - main - www/tor-browser: Update 14.0.9 => 14.5

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sat, 03 May 2025 13:04:51 UTC
The branch main has been updated by vvd:

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

commit d4af697822432c486174d1371f7d5f4aedfdb768
Author:     Martin Filla <freebsd@sysctl.cz>
AuthorDate: 2025-05-03 12:56:39 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-03 13:04:31 +0000

    www/tor-browser: Update 14.0.9 => 14.5
    
    Changelog:
    https://blog.torproject.org/new-release-tor-browser-145/
    
    Improve port:
    - update list of LOCALES;
    - move tpo-translation-* to MASTER_SITES with alternative mirrors - tor
      sites are blocked in several countries and not all users can download
      files from https://gitlab.torproject.org/;
    - several white-space fixes.
    
    PR:             286420
    Co-authored-by: vvd
    MFH:            2025Q2
---
 www/tor-browser/Makefile | 62 ++++++++++++++++++++++++++----------------------
 www/tor-browser/distinfo | 14 +++++------
 2 files changed, 40 insertions(+), 36 deletions(-)

diff --git a/www/tor-browser/Makefile b/www/tor-browser/Makefile
index 110c3b65d2f7..45fcd0c3ca49 100644
--- a/www/tor-browser/Makefile
+++ b/www/tor-browser/Makefile
@@ -1,23 +1,31 @@
 PORTNAME=	tor-browser
-DISTVERSION=	14.0.9
-PORTREVISION=	2
+DISTVERSION=	14.5
 CATEGORIES=	www net security wayland
+TAG_BASE=	86442427facf038d5706644221de7e2fb733550b
+TAG_TOR=	2c0b448503d52c3b512d1e7a55ccc78ac19db146
 MASTER_SITES=	TOR \
 		LOCAL/vvd \
-		LOCAL/vvd:source1 \
 		https://build-sources.tbb.torproject.org/:source1 \
+		LOCAL/vvd:source1 \
 		LOCAL/jsm:source2 \
 		LOCAL/vvd:source2 \
+		https://secure.informaction.com/:source3 \
 		LOCAL/vvd:source3 \
-		https://secure.informaction.com/%SUBDIR%/:source3
+		https://gitlab.torproject.org/tpo/translation/-/archive/${TAG_BASE}.tar.gz?dummy=/:source4 \
+		LOCAL/vvd:source4 \
+		https://gitlab.torproject.org/tpo/translation/-/archive/${TAG_TOR}.tar.gz?dummy=/:source5 \
+		LOCAL/vvd:source5
 MASTER_SITE_SUBDIR=	torbrowser/${DISTVERSION}/:DEFAULT \
 			download/releases/:source3
-DISTNAME=	src-firefox-tor-browser-128.9.0esr-14.0-2-build2
+DISTNAME=	src-firefox-tor-browser-128.9.0esr-14.5-1-build4
+MANUAL=		manual_215922.zip
 NOSCRIPT=	noscript-12.1.1.xpi
 DISTFILES=	${DISTNAME}.tar.xz \
-		manual_215922.zip:source1 \
+		${MANUAL}:source1 \
 		fonts-3--4348e1.tar.zst:source2 \
-		${NOSCRIPT}:source3
+		${NOSCRIPT}:source3 \
+		tpo-translation-${TAG_BASE}_GL0.tar.gz:source4 \
+		tpo-translation-${TAG_TOR}_GL0.tar.gz:source5
 
 MAINTAINER=	freebsd@sysctl.cz
 COMMENT=	Tor Browser for FreeBSD
@@ -28,7 +36,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	nspr>=4.32:devel/nspr \
 		nss>=3.101:security/nss \
-		icu>=73.1:devel/icu \
+		icu>=73.1,1:devel/icu \
 		libevent>=2.1.8:devel/libevent \
 		harfbuzz>=8.5.0:print/harfbuzz \
 		graphite2>=1.3.14:graphics/graphite2 \
@@ -50,18 +58,13 @@ USE_GECKO=	gecko
 USE_GITHUB=	nodefault
 TAG_L10N=	fcd0300e8478d1ec4d1c097a073ddb8e1e0351e3
 GH_TUPLE=	mozilla-l10n:firefox-l10n:${TAG_L10N}:ffl10n
-USE_GITLAB=	nodefault
-GL_SITE=	https://gitlab.torproject.org/
-GL_ACCOUNT=	tpo
-GL_PROJECT=	translation:basebrowser translation:torbrowser
-TAG_BASE=	d687be19490caa48a46a3e2193bda95d57cbb96d
-TAG_TOR=	95b60f2679611d39b035f2e45555c2c3d64d991f
-GL_TAGNAME=	${TAG_BASE}:basebrowser ${TAG_TOR}:torbrowser
 USE_MOZILLA=	-sqlite
 
-LOCALES=	ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko \
-		lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN \
-		zh-TW
+LOCALES=	af ar az be bg bs ca cs da de el es-ES et fa fi fr ga-IE gu-IN \
+		he hi-IN hr hu hy-AM id is it ja ka km ko lt lv mk mr ms my \
+		nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ro ru sk sl sq sr sv-SE ta \
+		te th tl tr uk ur vi zh-CN zh-TW
+
 CONFIGURE_ENV+=	BINDGEN_CFLAGS="-I${LOCALBASE}/include" \
 		MOZ_CHROME_MULTILOCALE="${LOCALES}"
 
@@ -114,40 +117,41 @@ MOZILLA_PLIST_DIRS=	bin lib share/applications share/pixmaps \
 			share/tor-browser
 MOZ_OPTIONS+=	--with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot
 .endif
+
 post-patch:
 	@${REINPLACE_CMD} 's|LOCALBASE|${LOCALBASE}|g' \
 		"${WRKSRC}/browser/app/profile/000-tor-browser.js"
 	@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' \
 		${WRKSRC}/browser/app/nsBrowserApp.cpp
 	${MKDIR} ${WRKSRC}/tmp-manual
-	${UNZIP_NATIVE_CMD} -d ${WRKSRC}/tmp-manual ${DISTDIR}/manual_215922.zip
+	${UNZIP_NATIVE_CMD} -d ${WRKSRC}/tmp-manual ${DISTDIR}/${MANUAL}
+
 pre-configure:
 	@${REINPLACE_CMD} 's|export MOZ_GOOGLE_.*||g' ${WRKSRC}/.mozconfig
 	${PYTHON_CMD} ${FILESDIR}/packagemanual.py ${WRKSRC}/tmp-manual/public \
 		${WRKSRC}/browser/base/content/manual
+
 post-configure:
 	${MKDIR} ${WRKDIR}/.mozbuild/l10n-central
 	${CP} -r ${WRKDIR}/firefox-l10n-${TAG_L10N}/* \
 		${WRKDIR}/.mozbuild/l10n-central
-
 .for i in ${LOCALES}
 	${CP} ${WRKDIR}/translation-${TAG_BASE}/${i}/base-browser.ftl \
 		${WRKDIR}/.mozbuild/l10n-central/${i}/toolkit/toolkit/global/
-	${CP} ${WRKDIR}/translation-${TAG_BASE}/${i}/newIdentity.properties \
-		${WRKDIR}/.mozbuild/l10n-central/${i}/browser/chrome/browser/
-	${CP} ${WRKDIR}/translation-${TAG_BASE}/${i}/securityLevel.properties \
-		${WRKDIR}/.mozbuild/l10n-central/${i}/browser/chrome/browser/
 	${CP} ${WRKDIR}/translation-${TAG_TOR}/${i}/tor-browser.ftl \
 		${WRKDIR}/.mozbuild/l10n-central/${i}/toolkit/toolkit/global/
+	${MKDIR} ${WRKDIR}/.mozbuild/l10n-central/${i}/browser/branding/tb-release
+	${CP} ${WRKDIR}/translation-${TAG_TOR}/${i}/brand.properties \
+	      ${WRKDIR}/translation-${TAG_TOR}/${i}/branding/brand.ftl \
+		${WRKDIR}/.mozbuild/l10n-central/${i}/browser/branding/tb-release
 	${MKDIR} ${WRKSRC}/toolkit/torbutton/chrome/locale/${i}/
-.for j in aboutTBUpdate.dtd brand.dtd brand.properties onionLocation.properties \
-	settings.properties torConnect.properties torbutton.dtd \
-	torbutton.properties torlauncher.properties
+. for j in onionLocation.properties settings.properties torConnect.properties \
+	torlauncher.properties
 	${CP} ${WRKDIR}/translation-${TAG_TOR}/${i}/${j} \
 		${WRKSRC}/toolkit/torbutton/chrome/locale/${i}/
-.endfor
+. endfor
 	${CP} -r ${WRKDIR}/translation-${TAG_TOR}/${i}/branding \
-		${WRKSRC}/toolkit/torbutton/chrome/locale/${i}
+		${WRKSRC}/toolkit/torbutton/chrome/locale/${i}/
 .endfor
 
 post-build:
diff --git a/www/tor-browser/distinfo b/www/tor-browser/distinfo
index e365e4165ca4..a1983e225dd2 100644
--- a/www/tor-browser/distinfo
+++ b/www/tor-browser/distinfo
@@ -1,15 +1,15 @@
-TIMESTAMP = 1743542861
-SHA256 (src-firefox-tor-browser-128.9.0esr-14.0-2-build2.tar.xz) = d9efda416ef46206ff09a8d1e57d26e1a589f3515059eabd3a538acca39206cb
-SIZE (src-firefox-tor-browser-128.9.0esr-14.0-2-build2.tar.xz) = 610985616
+TIMESTAMP = 1746217866
+SHA256 (src-firefox-tor-browser-128.9.0esr-14.5-1-build4.tar.xz) = 67d3a6277d82b990752c82f2ee3357c938077210ec0d1dc5157acd94dd19daf2
+SIZE (src-firefox-tor-browser-128.9.0esr-14.5-1-build4.tar.xz) = 611007880
 SHA256 (manual_215922.zip) = b5ed703f54d52e9f197320f3698e936d585a3fed23cc4f9fbf59edce2869f885
 SIZE (manual_215922.zip) = 28305786
 SHA256 (fonts-3--4348e1.tar.zst) = 7fbbecece6de777f196982f6eb567970a6d8e7ac2bf5b1ad6b90e1ea36374032
 SIZE (fonts-3--4348e1.tar.zst) = 27441580
 SHA256 (noscript-12.1.1.xpi) = f9639e63ffcfc352036de00e4ff6694bb0ca65a0bb8fbd103bd08f32dc1ff31a
 SIZE (noscript-12.1.1.xpi) = 980626
+SHA256 (tpo-translation-86442427facf038d5706644221de7e2fb733550b_GL0.tar.gz) = fab408bc623e10d0baf4ee06f9358a24d6dce2b6456de140ff6a03aa5d20b26c
+SIZE (tpo-translation-86442427facf038d5706644221de7e2fb733550b_GL0.tar.gz) = 792784
+SHA256 (tpo-translation-2c0b448503d52c3b512d1e7a55ccc78ac19db146_GL0.tar.gz) = 8425aff4bfe75af487ac764adc0e351d7e8d51cecdf7edcb10fa318c8fd6f549
+SIZE (tpo-translation-2c0b448503d52c3b512d1e7a55ccc78ac19db146_GL0.tar.gz) = 2832022
 SHA256 (mozilla-l10n-firefox-l10n-fcd0300e8478d1ec4d1c097a073ddb8e1e0351e3_GH0.tar.gz) = d07ecc7fe021998b523357849f71d52c9cb5248cb79bba29793e1ba353bae5bb
 SIZE (mozilla-l10n-firefox-l10n-fcd0300e8478d1ec4d1c097a073ddb8e1e0351e3_GH0.tar.gz) = 68409826
-SHA256 (tpo-translation-d687be19490caa48a46a3e2193bda95d57cbb96d_GL0.tar.gz) = e651d509d678f8a5b69f76a37168735e7fb757d7d58008248296214f4bf5ef7c
-SIZE (tpo-translation-d687be19490caa48a46a3e2193bda95d57cbb96d_GL0.tar.gz) = 773319
-SHA256 (tpo-translation-95b60f2679611d39b035f2e45555c2c3d64d991f_GL0.tar.gz) = d8381771f306c5956da6d7f6c84e9d975e049beaad7a1b1569545566ea100420
-SIZE (tpo-translation-95b60f2679611d39b035f2e45555c2c3d64d991f_GL0.tar.gz) = 2829560