commit: f53646a7e83a5ead506d58aaf92919c89a642cb3 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> AuthorDate: Sat Dec 23 22:16:34 2023 +0000 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> CommitDate: Sat Dec 23 22:16:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f53646a7
app-editors/logseq-desktop-bin: add 0.10.2 Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org> app-editors/logseq-desktop-bin/Manifest | 1 + .../logseq-desktop-bin-0.10.2.ebuild | 88 ++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/app-editors/logseq-desktop-bin/Manifest b/app-editors/logseq-desktop-bin/Manifest index 90583fd4023f..ca0ff806bf32 100644 --- a/app-editors/logseq-desktop-bin/Manifest +++ b/app-editors/logseq-desktop-bin/Manifest @@ -1 +1,2 @@ DIST logseq-desktop-bin-0.10.1.zip 190660046 BLAKE2B d9f781518220ecddb176e5c89948803ab73b6376aa5b165fd3ec2235a291022b88e99dce03190d80688a40a6bf55d3e699264f1420f346a222ea4346ba7d8000 SHA512 21f11c7b1ea5fde4f07dfec676fe05556040dd3fae84340bbe9cc1447556fc0ad1f10d53ee94a4ade7e93f0358fbc5386297605b28c0320e6ad25dc572055909 +DIST logseq-desktop-bin-0.10.2.zip 191301254 BLAKE2B d221ad76c7f6fe4914adab1a2bddca37d1ee3e2d3b34996cdb3353b506398cbf522cd0ca602325f5fbcab026e7413df48279d0e465d9a68c7ccfcb86f0cc50fb SHA512 939a0f4b42f1479e3a7d3bb407adf213aaa794c1412922e75138c7959e1a325f805a073c784f548bb4ffaa8d90111a7bb74d0a1337cd55cbd4301834dd91d721 diff --git a/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.2.ebuild b/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.2.ebuild new file mode 100644 index 000000000000..46c6b7e7828a --- /dev/null +++ b/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.2.ebuild @@ -0,0 +1,88 @@ +# Copyright 2023 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-419 es et fa fil fi 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 unpacker xdg + +DESCRIPTION="A privacy-first, open-source platform for knowledge sharing and management." +HOMEPAGE="https://github.com/logseq/logseq" +SRC_URI="https://github.com/logseq/logseq/releases/download/${PV}/logseq-linux-x64-${PV}.zip -> ${P}.zip" +S="${WORKDIR}/Logseq-linux-x64" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="-* ~amd64" + +RESTRICT="mirror splitdebug" + +RDEPEND=" + dev-libs/openssl:0/3 + media-libs/alsa-lib + media-libs/mesa + net-misc/curl + net-print/cups + sys-apps/dbus + sys-libs/zlib + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libdrm + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/pango +" +BDEPEND=" + app-arch/unzip +" + +QA_PREBUILT="*" + +src_configure() { + default + chromium_suid_sandbox_check_kernel_config +} + +src_prepare() { + default + pushd locales > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die +} + +src_install() { + exeinto /opt/logseq-desktop + doexe Logseq chrome-sandbox libEGL.so libffmpeg.so libGLESv2.so libvk_swiftshader.so libvulkan.so.1 + + insinto /opt/logseq-desktop + doins chrome_100_percent.pak chrome_200_percent.pak icudtl.dat resources.pak snapshot_blob.bin \ + v8_context_snapshot.bin version vk_swiftshader_icd.json + insopts -m0755 + doins -r locales resources + + # Chrome-sandbox requires the setuid bit to be specifically set + # see https://github.com/electron/electron/issues/17972 + fowners root /opt/logseq-desktop/chrome-sandbox + fperms 4711 /opt/logseq-desktop/chrome-sandbox + + # Crashpad is included in the package once in a while and when it does, it must be installed. + # See #903616 and #890595 + [[ -x chrome_crashpad_handler ]] && doins chrome_crashpad_handler + + dosym ../logseq-desktop/Logseq /opt/bin/logseq + + make_desktop_entry "/opt/bin/logseq %U" Logseq logseq Office \ + "StartupWMClass=logseq\nTerminal=false\nMimeType=x-scheme-handler/logseq" + #doicon resources/app/icons/logseq.png +}