From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 81FC5158043 for ; Sun, 25 Feb 2024 10:02:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A122EE29D0; Sun, 25 Feb 2024 10:02:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C2C44E29D5 for ; Sun, 25 Feb 2024 10:02:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 06A5F343080 for ; Sun, 25 Feb 2024 10:02:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 927F014CE for ; Sun, 25 Feb 2024 10:02:16 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1708836707.632f5f0efa812d7ed3d82af4136e865eb7bf2dca.ceamac@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: x11-misc/i3-restore/ X-VCS-Repository: repo/proj/guru X-VCS-Files: x11-misc/i3-restore/Manifest x11-misc/i3-restore/i3-restore-4.1.ebuild x11-misc/i3-restore/metadata.xml X-VCS-Directories: x11-misc/i3-restore/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: 632f5f0efa812d7ed3d82af4136e865eb7bf2dca X-VCS-Branch: master Date: Sun, 25 Feb 2024 10:02:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ffa65d82-b4be-4aa3-a67a-9b1c93cfe402 X-Archives-Hash: 89c76223a812939f2c4c9d5a9ad99a5b commit: 632f5f0efa812d7ed3d82af4136e865eb7bf2dca Author: Vitaly Zdanevich ya ru> AuthorDate: Sun Feb 25 04:51:47 2024 +0000 Commit: Viorel Munteanu gentoo org> 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 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 @@ + + + + + zdanevich.vitaly@ya.ru + Vitaly Zdanevich + + + jdholtz/i3-restore + +