From 632f5f0efa812d7ed3d82af4136e865eb7bf2dca Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Sun, 25 Feb 2024 08:51:47 +0400 Subject: [PATCH] x11-misc/i3-restore: new package, add 4.1 Signed-off-by: Vitaly Zdanevich --- x11-misc/i3-restore/Manifest | 1 + x11-misc/i3-restore/i3-restore-4.1.ebuild | 49 +++++++++++++++++++++++ x11-misc/i3-restore/metadata.xml | 11 +++++ 3 files changed, 61 insertions(+) create mode 100644 x11-misc/i3-restore/Manifest create mode 100644 x11-misc/i3-restore/i3-restore-4.1.ebuild create mode 100644 x11-misc/i3-restore/metadata.xml diff --git a/x11-misc/i3-restore/Manifest b/x11-misc/i3-restore/Manifest new file mode 100644 index 0000000000..390ad6d48c --- /dev/null +++ b/x11-misc/i3-restore/Manifest @@ -0,0 +1 @@ +DIST i3-restore-4.1.tar.gz 33362 BLAKE2B 008637a1ad5281f9076c02daddd6e89cecaba1c5361ae53fc949386d25b759fd0fb2a0cfa47637b0f31b05e487987b81854a514ec413f7be70077b5f458d279d SHA512 a0affbbf564830a6de400c2f3d3bb7549676e670d4ad10b341482eb3dca771e109054f4d114625c7cd7636c56915e9eaeb1d956e43bc2b3cfb23334503d301b2 diff --git a/x11-misc/i3-restore/i3-restore-4.1.ebuild b/x11-misc/i3-restore/i3-restore-4.1.ebuild new file mode 100644 index 0000000000..20905fc3e3 --- /dev/null +++ b/x11-misc/i3-restore/i3-restore-4.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A simple bash + python script to restore your i3 session" +HOMEPAGE="https://github.com/jdholtz/i3-restore/" + +SRC_URI="https://github.com/jdholtz/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +LICENSE="GPL-3" +SLOT="0" + +PYTHON_COMPAT=( python3_{7..12} ) +inherit python-single-r1 + +RDEPEND=" + x11-wm/i3 + "${PYTHON_DEPS}" +" +DEPEND=" + x11-misc/xdotool + app-misc/jq + $(python_gen_cond_dep \ + 'dev-python/psutil[${PYTHON_USEDEP}]' ) +" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + sed -i 's#CURR_DIR="$(dirname "${0}")"#CURR_DIR=/usr/libexec/i3-restore#' i3-save i3-restore \ + || die "Sed error!" + default +} + +src_install() { + insinto "/usr/libexec/${PN}" + doins -r utils + dobin i3-save + dobin i3-restore + python_moduleinto "/usr/libexec/${PN}" + python_domodule programs +} + +pkg_postinst() { + elog "Usage: i3-save and i3-restore" + elog "See the documentation about automatic saving and restoring https://github.com/jdholtz/i3-restore/?tab=readme-ov-file#automating-the-script" +} diff --git a/x11-misc/i3-restore/metadata.xml b/x11-misc/i3-restore/metadata.xml new file mode 100644 index 0000000000..2edebb765d --- /dev/null +++ b/x11-misc/i3-restore/metadata.xml @@ -0,0 +1,11 @@ + + + + + zdanevich.vitaly@ya.ru + Vitaly Zdanevich + + + jdholtz/i3-restore + +