From: "Marc Schiffbauer" <mschiff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/logseq-desktop-bin/
Date: Sat, 16 Dec 2023 01:51:03 +0000 (UTC) [thread overview]
Message-ID: <1702691456.177ce59bbd7d363aef7b745f3e6df46f98947afe.mschiff@gentoo> (raw)
commit: 177ce59bbd7d363aef7b745f3e6df46f98947afe
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Thu Dec 14 21:09:27 2023 +0000
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Sat Dec 16 01:50:56 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=177ce59b
app-editors/logseq-desktop-bin: revamp
* All around revamp with lessons taken from net-im/discord.
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34281
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
.../logseq-desktop-bin-0.10.1-r1.ebuild | 60 ---------------
.../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
+}
next reply other threads:[~2023-12-16 1:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-16 1:51 Marc Schiffbauer [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-29 22:26 [gentoo-commits] repo/gentoo:master commit in: app-editors/logseq-desktop-bin/ Marc Schiffbauer
2024-04-01 13:52 Marc Schiffbauer
2024-04-01 13:52 Marc Schiffbauer
2024-03-06 17:28 Marc Schiffbauer
2024-03-06 17:28 Marc Schiffbauer
2024-02-19 8:48 Marc Schiffbauer
2024-02-16 12:01 Marc Schiffbauer
2024-01-19 0:01 Marc Schiffbauer
2023-12-28 16:23 Marc Schiffbauer
2023-12-23 22:16 Marc Schiffbauer
2023-12-14 13:29 Marc Schiffbauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1702691456.177ce59bbd7d363aef7b745f3e6df46f98947afe.mschiff@gentoo \
--to=mschiff@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox