commit:     173e636785eb68c6ca6403044937cf32d153edfd
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Mon May  5 13:24:30 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon May  5 13:24:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=173e6367

www-client/zen-bin: add 1.12.1b

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 www-client/zen-bin/Manifest               |  1 +
 www-client/zen-bin/zen-bin-1.12.1b.ebuild | 89 +++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/www-client/zen-bin/Manifest b/www-client/zen-bin/Manifest
index 5b6b1ef08..3d7e4a320 100644
--- a/www-client/zen-bin/Manifest
+++ b/www-client/zen-bin/Manifest
@@ -1,2 +1,3 @@
 DIST zen-bin-1.11.5b.tar.xz 78007628 BLAKE2B 
21b78fdcec9dc634633a61e9437d8ff9e25ed380c547c58f3d49963416aacf54bcd674965f8928c90b68595420d43f9190ed1a5a309f05efac378de58ddf6f27
 SHA512 
3ea32de295d922d54da89a9c9c5fed9577421c296f32193f0d91b791ca1452f6e6b551ed8df1161e57afac4bf7b78cb912d9a257b02ae7502cd4afb91a817828
 DIST zen-bin-1.11b.tar.xz 77934824 BLAKE2B 
ac5e2aa6cba4d06743892be5146d8cea5c00e15053993c6e386b5ddb04bc2c25aab2f7921007d88bfdb274f9b68ab30599788cbcdf013592d3072dd0d18b6742
 SHA512 
8a530bd44f59b9e13505e343434b87f12243aa2f604b7eb9e45f5d778e4e089c6b98a67e26ddbbf3e1373cf87c312b80dc3438a4cdfad915c87c4019af8fa484
+DIST zen-bin-1.12.1b.tar.xz 78223572 BLAKE2B 
d54e5093847f087804bd614ace121b7b2735310e5c65f249f4c093c88c984cf57558b9b314a4eaf2ad97f4b25bdd21f77829dd90f44ae67999a2c16f61d2cceb
 SHA512 
98f9f942d4ceb7cfdf0a196f78da31cf615b448b3e284fef04f3ba7c7bb25692daa0a5c4072dad736e75bb683a03e849a28334728b7fc2fe73eaa8524b599f93

diff --git a/www-client/zen-bin/zen-bin-1.12.1b.ebuild 
b/www-client/zen-bin/zen-bin-1.12.1b.ebuild
new file mode 100644
index 000000000..41033c538
--- /dev/null
+++ b/www-client/zen-bin/zen-bin-1.12.1b.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg-utils desktop
+
+MY_P="zen"
+
+DESCRIPTION="Zen Browser - A Firefox-based browser focused on privacy"
+HOMEPAGE="https://github.com/zen-browser/desktop";
+SRC_URI="https://github.com/zen-browser/desktop/releases/download/${PV}/${MY_P}.linux-x86_64.tar.xz
 -> ${P}.tar.xz"
+
+S="${WORKDIR}"
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       app-accessibility/at-spi2-core:2
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/nspr
+       dev-libs/nss
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       net-print/cups
+       sys-apps/dbus
+       sys-libs/glibc
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:3
+       x11-libs/libX11
+       x11-libs/libxcb
+       x11-libs/libXcomposite
+       x11-libs/libXcursor
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXi
+       x11-libs/libXrandr
+       x11-libs/libXrender
+       x11-libs/libXtst
+       x11-libs/pango
+"
+
+DEPEND="${RDEPEND}"
+
+QA_PREBUILT="opt/zen/*"
+
+src_install() {
+       #create dest dir
+       local destdir="/opt/zen"
+       dodir "${destdir}"
+       #copy files into dest dir
+       cp -a "${S}/zen"/* "${ED}${destdir}" || die
+       #create a symlink to the binary
+       dosym "${destdir}/zen-bin" "/usr/bin/zen-bin" || die
+       #add icons
+       local icon_dir="${ED}${destdir}/browser/chrome/icons/default"
+       if [[ -d "${icon_dir}" ]]; then
+               for size in 16 32 48 64 128; do
+                       if [[ -f "${icon_dir}/default${size}.png" ]]; then
+                               newicon -s ${size} 
"${icon_dir}/default${size}.png" zen.png
+                       fi
+               done
+       else
+               ewarn "Icon directory not found, skipping icon installation"
+       fi
+       #create desktop file
+       make_desktop_entry zen-bin "Zen" zen "Network;WebBrowser"
+       #handle permissions of destdir files
+       fperms 0755 "${destdir}"/{zen-bin,updater,glxtest,vaapitest}
+       fperms 0750 "${destdir}"/pingsender
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+       elog "For optimal performance and compatibility, please ensure"
+       elog "that you have the latest graphics drivers installed."
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}

Reply via email to