commit: a994cd2271075c3e65fe5d154dd1bb978af6b486 Author: Jonas Frei <freijon <AT> pm <DOT> me> AuthorDate: Mon Sep 15 08:02:06 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Mon Sep 15 08:02:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a994cd22
gui-apps/espanso: add 2.2.5 Signed-off-by: Jonas Frei <freijon <AT> pm.me> gui-apps/espanso/Manifest | 2 + gui-apps/espanso/espanso-2.2.5.ebuild | 88 +++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/gui-apps/espanso/Manifest b/gui-apps/espanso/Manifest index 6d69a2fa7d..64b45e9629 100644 --- a/gui-apps/espanso/Manifest +++ b/gui-apps/espanso/Manifest @@ -1,2 +1,4 @@ DIST espanso-2.2.3-crates.tar.xz 34351212 BLAKE2B edb68292eb5c02fa6611f113bd625e65b339b3115e58cfcc62a2ea520fc80248149369d44e1c3c740c205bb64c6417115aae7b281bb617820155d1b1db8c5289 SHA512 9316e646004c254f59fb5dc6fdf7665fa0d3e2b1811065923832c134ca89ebabb70c82d4b7b81039378f8fe20d1c30f9e6a576282297456192d21d0a019ef0f6 DIST espanso-2.2.3.tar.gz 42222981 BLAKE2B 51c975de64910dcfa5305817cc61fdd06f57a1e063df6b5bcde7e93ce05413508ef6056183b00d30ac1697cc716c9d449db51e7aa70fe226e86c28d85a21d7b1 SHA512 4523ca1a6a21d16444103451333615d998e3bf86a0ee26ce0dbfb1ab2a1e4246a5b0fcf781478c11a23a8df59f16b2bd6f3407528351151b63ebd094a0a26741 +DIST espanso-2.2.5-crates.tar.xz 35677948 BLAKE2B bf5971ec46e760eb1a748d87fa1c39efef02b3609fb0c48c23768f3511dcafffb2cf4e94956c3899097b22403440227ad534bc0c3f7e8ff5ab9739ef029f0032 SHA512 97d196a9a1c0b85a7e8c78a4a332693a912a03cdecc1897e8eeea1b4d14e9f9da82d9d82fc61c0134f48a3140538569689cfe0e0594945662e2339a5d8dc0d12 +DIST espanso-2.2.5.tar.gz 71744103 BLAKE2B 76cfdabc8c71e713afeb2832287cffa54ec7f598eeed9aca62166df4739c553b2a742854a9d24fb2a688e576d6f6e68866d38784bcccef0af2afaf07a5da6962 SHA512 7b6f0afb7da3e6841afa932b8ce3f1d60183da14f44c0d4fda150f41a618ff74306b9df49d705effebe290e6f681366dce67f7d61eaa12fd48d4509dbd9a910c diff --git a/gui-apps/espanso/espanso-2.2.5.ebuild b/gui-apps/espanso/espanso-2.2.5.ebuild new file mode 100644 index 0000000000..1f4931091f --- /dev/null +++ b/gui-apps/espanso/espanso-2.2.5.ebuild @@ -0,0 +1,88 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +RUST_MIN_VER="1.77.0" + +inherit cargo desktop fcaps linux-info systemd xdg-utils + +DESCRIPTION="Cross-platform Text Expander written in Rust" +HOMEPAGE="https://espanso.org" +SRC_URI="https://github.com/espanso/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +DEPS_URI="https://github.com/freijon/${PN}/releases/download/v${PV}/${P}-crates.tar.xz" +SRC_URI+=" ${DEPS_URI}" + +LICENSE="GPL-3" +# Dependent crate licenses +LICENSE+=" Apache-2.0 BSD-2 BSD CC0-1.0 ISC MIT MPL-2.0 ZLIB" +SLOT="0" +KEYWORDS="~amd64" +IUSE="wayland" + +DEPEND=" + acct-group/input + dev-libs/openssl + sys-apps/dbus + x11-libs/wxGTK + wayland? ( + x11-libs/libxkbcommon[wayland] + ) + !wayland? ( + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXtst + x11-libs/libxkbcommon[X] + ) +" +RDEPEND="${DEPEND}" + +QA_FLAGS_IGNORED="usr/bin/${PN}" + +pkg_setup() { + CONFIG_CHECK="~INPUT_UINPUT" + ERROR_INPUT_UINPUT="Espanso with Wayland needs the UINPUT" + ERROR_INPUT_UINPUT+=" input device driver to detect user inputs. Without it," + ERROR_INPUT_UINPUT+=" Espanso will not work as intended" + + # Now do the actual checks setup above, but only when using wayland + use wayland && linux-info_pkg_setup + rust_pkg_setup +} + +src_configure() { + local myfeatures=( + modulo + native-tls + $(usev wayland) + ) + cargo_src_configure --verbose --no-default-features +} + +src_compile() { + cargo_src_compile -p "${PN}" +} + +src_install() { + cargo_src_install --path "${PN}" + + newicon -s 128 "espanso/src/res/linux/icon.png" "${PN}.png" + domenu "espanso/src/res/linux/${PN}.desktop" + + # install the systemd-service (user level) + sed -i "s|{{{espanso_path}}}|/usr/bin/espanso|g" "espanso/src/res/linux/systemd.service" || die + systemd_newuserunit "espanso/src/res/linux/systemd.service" "${PN}.service" +} + +pkg_postinst() { + # See https://espanso.org/docs/install/linux/#adding-the-required-capabilities + use wayland && fcaps cap_dac_override "usr/bin/${PN}" + + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +}
