commit: 632f5f0efa812d7ed3d82af4136e865eb7bf2dca Author: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru> AuthorDate: Sun Feb 25 04:51:47 2024 +0000 Commit: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru> CommitDate: Sun Feb 25 04:51:47 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=632f5f0e
x11-misc/i3-restore: new package, add 4.1 Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru> 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(+) 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>[email protected]</email> + <name>Vitaly Zdanevich</name> + </maintainer> + <upstream> + <remote-id type="github">jdholtz/i3-restore</remote-id> + </upstream> +</pkgmetadata>
