commit:     7f6dd65f2e85aa046b5b2806e5377e1562633be5
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  5 19:37:30 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Sep  5 20:04:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f6dd65f

app-office/joplin-desktop: bump to 3.4.10

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-office/joplin-desktop/Manifest                 |   1 +
 .../joplin-desktop/joplin-desktop-3.4.10.ebuild    | 105 +++++++++++++++++++++
 2 files changed, 106 insertions(+)

diff --git a/app-office/joplin-desktop/Manifest 
b/app-office/joplin-desktop/Manifest
index d8ef8ead3f5a..bc3ee678acb0 100644
--- a/app-office/joplin-desktop/Manifest
+++ b/app-office/joplin-desktop/Manifest
@@ -1,3 +1,4 @@
 DIST Joplin-3.3.13.AppImage 229318179 BLAKE2B 
3bc647beab4ca35d810e1e4977b3105eaf1c2f7b617ca8086a2b9019cc00c100593ed287daf04d0734c420056649951122eaf865176009f07dc945772e65035b
 SHA512 
1e9a8867766f398a4efbc7066cf7940cf3affa208e5a7ca3f240d25e57879b633e122d78ec7066c2152b21e369a313881fd0fc189a11edc7aa10d7ba6eb4984b
+DIST Joplin-3.4.10.AppImage 154558278 BLAKE2B 
6c9be8c85c17a676e38beddcd779aba2d6fd8e907327f5364af72703cfcfa5c47ce8c0622f142111eda1761651d85c57b08ca6e6feff2b83e49ae9825f87cf3b
 SHA512 
406030136c9f11ad308d9523e9fddfc25a9459b137c900deac1c43116d763aeee543204e5832bb018e9093fb78058ce920d985316ffe3b58eb922a502f8908a7
 DIST Joplin-3.4.3.AppImage 154482392 BLAKE2B 
02b4552a350118386a723f6af6b37048222e4a7ed9597ce94d7b90cc603298145286a189c47d054b5778e60ee3145c6881875e5e6fafc1c1c9d7fbb46a8c2569
 SHA512 
a860ebe6c7b887593a57bb19125b73153aa205ee3d371200558d76e53fecb0d08c2de80f5966378328ac1cc18ad448f97c555167d238878968d2fccff69fc107
 DIST Joplin-3.4.7.AppImage 154405865 BLAKE2B 
5de5338ad0151080c801012d8ae41a92a944a8cef6e3ac3980044e702985c6a73432be82ed1648f0d6ff65f402fc07d99f92934317ee0d33db2c23dfd5e884b5
 SHA512 
3d1cd11d227bc03c5a0a3c24f6178f4768e45d7f77bc49860521273999e04ad18ea6d0260999c12e0c8e922f00df24cee4d3a56eb3400a38b6bfd9c0cc8f45dd

diff --git a/app-office/joplin-desktop/joplin-desktop-3.4.10.ebuild 
b/app-office/joplin-desktop/joplin-desktop-3.4.10.ebuild
new file mode 100644
index 000000000000..f9a05be04735
--- /dev/null
+++ b/app-office/joplin-desktop/joplin-desktop-3.4.10.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# NOTICE: This is a Electron app (oh my) and the upstream only provides 
AppImages.
+
+EAPI=8
+
+APPIMAGE="Joplin-${PV}.AppImage"
+
+inherit desktop xdg
+
+DESCRIPTION="Secure note taking and to-do app with synchronization 
capabilities"
+HOMEPAGE="https://joplinapp.org/
+       https://github.com/laurent22/joplin/";
+SRC_URI="https://github.com/laurent22/joplin/releases/download/v${PV}/${APPIMAGE}";
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+RESTRICT="bindist splitdebug"
+
+RDEPEND="
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       app-crypt/libsecret[crypt]
+       app-misc/ca-certificates
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/nspr
+       dev-libs/nss
+       media-libs/alsa-lib
+       || (
+               media-libs/libcanberra-gtk3
+               media-libs/libcanberra[gtk3(-)]
+       )
+       media-libs/libglvnd
+       media-libs/mesa
+       net-misc/curl
+       net-print/cups
+       sys-apps/dbus
+       sys-libs/zlib
+       sys-process/lsof
+       x11-libs/cairo
+       x11-libs/gtk+:3
+       x11-libs/libdrm
+       x11-libs/libnotify
+       x11-libs/libX11
+       x11-libs/libxcb
+       x11-libs/libXcomposite
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libxkbcommon
+       x11-libs/libxkbfile
+       x11-libs/libXrandr
+       x11-libs/libXScrnSaver
+       x11-libs/pango
+       x11-misc/xdg-utils
+"
+
+QA_PREBUILT="*"
+
+src_unpack() {
+       mkdir -p "${S}" || die
+       cp "${DISTDIR}/${APPIMAGE}" "${S}" || die
+
+       cd "${S}" || die         # "appimage-extract" unpacks to current 
directory.
+       chmod +x "${S}/${APPIMAGE}" || die
+       "${S}/${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
+
+       default
+}
+
+src_install() {
+       cd "${S}/squashfs-root" || die
+
+       insinto /usr/share
+       doins -r ./usr/share/icons
+
+       local apphome="/opt/${PN}"
+       local -a toremove=(
+               .DirIcon
+               AppRun
+               LICENSE.electron.txt
+               LICENSES.chromium.html
+               joplin.png
+               resources/app.asar.unpacked/node_modules/7zip-bin-linux/arm
+               resources/app.asar.unpacked/node_modules/7zip-bin-linux/arm64
+               resources/app.asar.unpacked/node_modules/node-notifier
+               usr
+       )
+       rm -f -r "${toremove[@]}" || die
+
+       mkdir -p "${ED}/${apphome}" || die
+       cp -r . "${ED}/${apphome}" || die
+
+       dosym -r "${apphome}/joplin" "/usr/bin/${PN}"
+       make_desktop_entry "${PN}" Joplin joplin "Office;" \
+               "StartupWMClass=Joplin\nMimeType=x-scheme-handler/joplin;"
+}

Reply via email to