commit:     d041cbbc872842c6b4bda52a0e1c2ce03a81987e
Author:     David Roman <stkw0 <AT> disroot <DOT> org>
AuthorDate: Fri Mar 13 13:37:23 2026 +0000
Commit:     David Roman <stkw0 <AT> disroot <DOT> org>
CommitDate: Fri Mar 13 13:38:06 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d041cbbc

sci-electronics/logic-bin: add 2.4.43

Signed-off-by: David Roman <stkw0 <AT> disroot.org>

 sci-electronics/logic-bin/Manifest                |   1 +
 sci-electronics/logic-bin/logic-bin-2.4.43.ebuild | 130 ++++++++++++++++++++++
 2 files changed, 131 insertions(+)

diff --git a/sci-electronics/logic-bin/Manifest 
b/sci-electronics/logic-bin/Manifest
index 4096e10142..5c1f768d7a 100644
--- a/sci-electronics/logic-bin/Manifest
+++ b/sci-electronics/logic-bin/Manifest
@@ -1,2 +1,3 @@
 DIST Logic-2.4.41-linux-x64.AppImage 193860856 BLAKE2B 
f07808653d9dfcadae12e81ddda843e462e0d0fb88efa9418dd662dcafbba592d7138ea1608e6bc9d187c0cb38b5f661978c6eb49c0a41c25dd5992bba1dac80
 SHA512 
e1a9096c9af25e6a8e8b6d0a0417643d24da740878665e17b2f2dbc0210105c833b03f71ec1bdcaf3bf0c7846602350946f93ccd51c025d97c900147d14e83b1
 DIST Logic-2.4.42-linux-x64.AppImage 194512309 BLAKE2B 
17370bf310078a4caeb1a10b149f078c6cd5e1d3da37a1366909bf36c8c00758a92a4071de1304c84aaa387f3aca1a8e2ae4ae41e1ac3ac82af7db51f5fcd728
 SHA512 
73a8b814bedbb06a6357367ddfe6ffe681b0151a507607b87745d4ed990a35a49b9067b3e0e455541030cac6998dce4fa81112ecb8f2508fff1cc8c284b6b793
+DIST Logic-2.4.43-linux-x64.AppImage 194513183 BLAKE2B 
f4b762f90085e551266a4b4d14d4a4a4b00da15f9159f082195aa3c3abc60e61763f08b884861d2557f087ec9966a155328bde3eb66e10dfa2af456592e21bd2
 SHA512 
d5258df9f670e8503357b0aac8a0569cd1221c8cc25805faf017e07b63b33c498d8f27663efce5866e2e898e2e09380b616cbc923898c00e5b5649b4f49c18e3

diff --git a/sci-electronics/logic-bin/logic-bin-2.4.43.ebuild 
b/sci-electronics/logic-bin/logic-bin-2.4.43.ebuild
new file mode 100644
index 0000000000..f83d485bda
--- /dev/null
+++ b/sci-electronics/logic-bin/logic-bin-2.4.43.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_LANGS="
+       af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu 
he hi
+       hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr 
sv
+       sw ta te th tr uk ur vi zh-CN zh-TW
+"
+
+inherit chromium-2 desktop xdg
+
+APPIMAGE="Logic-${PV}-linux-x64.AppImage"
+DESCRIPTION="Saleae logic analyzer"
+HOMEPAGE="https://www.saleae.com";
+
+SRC_URI="
+       amd64? ( https://downloads2.saleae.com/logic2/${APPIMAGE} )
+"
+S="${WORKDIR}"
+
+LICENSE="Saleae"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+
+RESTRICT="bindist mirror strip"
+
+RDEPEND="
+       app-accessibility/at-spi2-core:2
+       dev-libs/dbus-glib
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libdbusmenu
+       dev-libs/nspr
+       dev-libs/nss
+       media-libs/alsa-lib
+       media-libs/mesa
+       net-print/cups
+       sys-apps/dbus
+       sys-libs/libxcrypt
+       virtual/zlib
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:2
+       x11-libs/gtk+:3
+       x11-libs/libnotify
+       x11-libs/libX11
+       x11-libs/libXcomposite
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXrandr
+       x11-libs/libXScrnSaver
+       x11-libs/libXtst
+       x11-libs/libdrm
+       x11-libs/libxcb
+       x11-libs/libxkbcommon
+       x11-libs/pango
+"
+
+BDEPEND="dev-util/patchelf"
+
+QA_PREBUILT="*"
+
+src_unpack() {
+       cp "${DISTDIR}/${APPIMAGE}" "${S}" || die
+
+       cd "${S}" || die # "appimage-extract" unpacks to current directory
+       chmod +x "${APPIMAGE}" || die
+       ./"${APPIMAGE}" --appimage-extract || die
+}
+
+src_prepare() {
+       # Fix permissions
+       find "${S}" -type d -exec chmod a+rx {} + || die
+       find "${S}" -type f -exec chmod a+r {} + || die
+
+       cd squashfs-root || die
+
+       for f in *.so; do
+               patchelf --set-rpath '$ORIGIN' $f || die
+       done
+
+       # scanelf: rpath_security_checks(): Security problem NULL DT_RUNPATH
+       pushd resources/linux-x64/Analyzers || die
+       for f in *.so; do
+               patchelf --set-rpath '$ORIGIN' $f || die
+       done
+       popd || die
+
+       pushd locales || die
+       chromium_remove_language_paks
+       popd || die
+
+       default
+}
+
+src_configure() {
+       default
+       chromium_suid_sandbox_check_kernel_config
+}
+
+src_install() {
+       cd "${S}/squashfs-root" || die
+
+       insinto /usr/share
+       doins -r ./usr/share/icons
+
+       local -a toremove=(
+               .DirIcon
+               AppRun
+               Logic.png
+               usr/lib/libnotify.so.4
+               usr/lib/libXss.so.1
+               usr/lib/libXtst.so.6
+       )
+       rm -r "${toremove[@]}" || die
+
+       insinto /opt/Logic
+       doins -r ./*
+
+       fperms 4755 /opt/Logic/chrome-sandbox
+       for i in Logic chrome_crashpad_handler *.so* usr/lib/*.so*; do
+               fperms +x "/opt/Logic/${i}"
+       done
+
+       dosym -r "/opt/Logic/Logic" /usr/bin/Logic
+       domenu Logic.desktop
+}

Reply via email to