x11-misc/i3-restore: new package, add 4.1

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
Vitaly Zdanevich 2024-02-25 08:51:47 +04:00
parent 770d2bd51a
commit 632f5f0efa
No known key found for this signature in database
GPG Key ID: E91CC56723EE101E
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST i3-restore-4.1.tar.gz 33362 BLAKE2B 008637a1ad5281f9076c02daddd6e89cecaba1c5361ae53fc949386d25b759fd0fb2a0cfa47637b0f31b05e487987b81854a514ec413f7be70077b5f458d279d SHA512 a0affbbf564830a6de400c2f3d3bb7549676e670d4ad10b341482eb3dca771e109054f4d114625c7cd7636c56915e9eaeb1d956e43bc2b3cfb23334503d301b2

View File

@ -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"
}

View File

@ -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>zdanevich.vitaly@ya.ru</email>
<name>Vitaly Zdanevich</name>
</maintainer>
<upstream>
<remote-id type="github">jdholtz/i3-restore</remote-id>
</upstream>
</pkgmetadata>