diff options
author | Alfred Wingate <parona@protonmail.com> | 2023-12-14 23:09:27 +0200 |
---|---|---|
committer | Marc Schiffbauer <mschiff@gentoo.org> | 2023-12-16 02:50:56 +0100 |
commit | 177ce59bbd7d363aef7b745f3e6df46f98947afe (patch) | |
tree | 79722b2830b940c7ae7cd80808dc56bb09882f0c /app-editors/logseq-desktop-bin | |
parent | virtual/gnustep-back: Stabilize 0.29.0 x86, #910265 (diff) | |
download | gentoo-177ce59bbd7d363aef7b745f3e6df46f98947afe.tar.gz gentoo-177ce59bbd7d363aef7b745f3e6df46f98947afe.tar.bz2 gentoo-177ce59bbd7d363aef7b745f3e6df46f98947afe.zip |
app-editors/logseq-desktop-bin: revamp
* All around revamp with lessons taken from net-im/discord.
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34281
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
Diffstat (limited to 'app-editors/logseq-desktop-bin')
-rw-r--r-- | app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1-r1.ebuild | 60 | ||||
-rw-r--r-- | app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1-r2.ebuild | 88 |
2 files changed, 88 insertions, 60 deletions
diff --git a/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1-r1.ebuild b/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1-r1.ebuild deleted file mode 100644 index 3c74b68e8ecd..000000000000 --- a/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1-r1.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit desktop unpacker - -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" - -LICENSE="AGPL-3" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -RESTRICT="mirror splitdebug" - -DEPEND="" -RDEPEND=">=dev-libs/openssl-3 - 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/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="*" -S="${WORKDIR}/Logseq-linux-x64" - -src_install() { - domenu "${FILESDIR}/logseq-desktop.desktop" - doicon "${S}/resources/app/icons/logseq.png" - mkdir -p "${D}/opt/logseq-desktop" || die - cp -r "${S}"/* "${D}/opt/logseq-desktop/" || die - dosym ../logseq-desktop/Logseq /opt/bin/logseq -} - -pkg_postinst() { - update-desktop-database -} diff --git a/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1-r2.ebuild b/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1-r2.ebuild new file mode 100644 index 000000000000..c4fd8da4e783 --- /dev/null +++ b/app-editors/logseq-desktop-bin/logseq-desktop-bin-0.10.1-r2.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 +} |