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 6C7F1158041 for ; Sun, 7 Apr 2024 05:35:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 883BDE29FA; Sun, 7 Apr 2024 05:35:56 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B11DE29FA for ; Sun, 7 Apr 2024 05:35:56 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49EBB3430A3 for ; Sun, 7 Apr 2024 05:35:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3FC8414F8 for ; Sun, 7 Apr 2024 05:35:53 +0000 (UTC) From: "Vitaly Zdanevich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vitaly Zdanevich" Message-ID: <1712468141.d215ee8db96e85b1cf14a220a0eaf165a63406ce.zdanevich.vitaly@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: x11-wm/firefox-i3-workspaces/, x11-wm/firefox-i3-workspaces/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: x11-wm/firefox-i3-workspaces/Manifest x11-wm/firefox-i3-workspaces/files/path-adapt.patch x11-wm/firefox-i3-workspaces/firefox-i3-workspaces-0.10.ebuild x11-wm/firefox-i3-workspaces/metadata.xml X-VCS-Directories: x11-wm/firefox-i3-workspaces/files/ x11-wm/firefox-i3-workspaces/ X-VCS-Committer: zdanevich.vitaly X-VCS-Committer-Name: Vitaly Zdanevich X-VCS-Revision: d215ee8db96e85b1cf14a220a0eaf165a63406ce X-VCS-Branch: dev Date: Sun, 7 Apr 2024 05:35:53 +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: 76b11388-8ad6-4bca-ada0-8c7387d1a47e X-Archives-Hash: 417ed129f1f12794c5fa61bb33528b88 commit: d215ee8db96e85b1cf14a220a0eaf165a63406ce Author: Vitaly Zdanevich ya ru> AuthorDate: Sun Apr 7 05:35:41 2024 +0000 Commit: Vitaly Zdanevich ya ru> CommitDate: Sun Apr 7 05:35:41 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d215ee8d x11-wm/firefox-i3-workspaces: new package Signed-off-by: Vitaly Zdanevich ya.ru> x11-wm/firefox-i3-workspaces/Manifest | 1 + .../firefox-i3-workspaces/files/path-adapt.patch | 13 ++++++++ .../firefox-i3-workspaces-0.10.ebuild | 38 ++++++++++++++++++++++ x11-wm/firefox-i3-workspaces/metadata.xml | 12 +++++++ 4 files changed, 64 insertions(+) diff --git a/x11-wm/firefox-i3-workspaces/Manifest b/x11-wm/firefox-i3-workspaces/Manifest new file mode 100644 index 0000000000..9314fe40f1 --- /dev/null +++ b/x11-wm/firefox-i3-workspaces/Manifest @@ -0,0 +1 @@ +DIST 0.10.tar.gz 54784 BLAKE2B 88f61133a04fc0a13eee72a12ab222d4378bf4daa02fab812a6ea61ef167fd19c4ca9b7571fdb8d762b82cbbd0932b0fbd3b621748481ead77f425e8d879a1f2 SHA512 45c97cd37e436d2b61767a1ca62f96bc6efa650829f587329008189d1b87f6af80fc10c7046b5c788bc9ae932d415c2b6d8f26a3cede0841e055f6ce8bd90ffb diff --git a/x11-wm/firefox-i3-workspaces/files/path-adapt.patch b/x11-wm/firefox-i3-workspaces/files/path-adapt.patch new file mode 100644 index 0000000000..20b18deeb4 --- /dev/null +++ b/x11-wm/firefox-i3-workspaces/files/path-adapt.patch @@ -0,0 +1,13 @@ +diff --git a/host/i3_workspaces.json b/host/i3_workspaces.json +index 3e1c6e5..14288b2 100644 +--- a/host/i3_workspaces.json ++++ b/host/i3_workspaces.json +@@ -1,7 +1,7 @@ + { + "name": "i3_workspaces", + "description": "Communicate with i3 about which workspaces Firefox windows are on", +- "path": "/home/yuri/projects/firefox-i3-workspaces/host/i3_workspaces.py", ++ "path": "/usr/lib/i3_workspaces.py", + "type": "stdio", + "allowed_extensions": ["i3-workspaces@yurikhan.space"] + } diff --git a/x11-wm/firefox-i3-workspaces/firefox-i3-workspaces-0.10.ebuild b/x11-wm/firefox-i3-workspaces/firefox-i3-workspaces-0.10.ebuild new file mode 100644 index 0000000000..372f2d6040 --- /dev/null +++ b/x11-wm/firefox-i3-workspaces/firefox-i3-workspaces-0.10.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Restore Firefox windowS to correct i3 workspaceS, helper web extension is needed" +HOMEPAGE="https://github.com/yurikhan/firefox-i3-workspaces" +SRC_URI="https://github.com/yurikhan/$PN/archive/refs/tags/$PV.tar.gz" + +LICENSE="GPL-3" +SLOT=0 +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + x11-wm/i3 + dev-python/i3ipc +" + +# S="${DISTDIR}" + +PATCHES=( + "$FILESDIR/path-adapt.patch" +) + +src_install() { + path_py="$ED/usr/lib/" + mkdir -p $path_py || die + cp host/i3_workspaces.py $path_py || die + # Not dobin because this is not for the user CLI - only Firefox should call this + + path_json=/usr/lib64/mozilla/native-messaging-hosts/ + mkdir -p "$ED/$path_json" || die + cp host/i3_workspaces.json "$ED$path_json" || die +} + +pkg_postinst() { + einfo "Install browser extension from https://addons.mozilla.org/en-US/firefox/addon/i3-workspaces/" +} diff --git a/x11-wm/firefox-i3-workspaces/metadata.xml b/x11-wm/firefox-i3-workspaces/metadata.xml new file mode 100644 index 0000000000..241f322a87 --- /dev/null +++ b/x11-wm/firefox-i3-workspaces/metadata.xml @@ -0,0 +1,12 @@ + + + + + Vitaly Zdanevich + zdanevich.vitaly@ya.ru + + + yurikhan/firefox-i3-workspaces + https://github.com/yurikhan/firefox-i3-workspaces/issues + +