* [gentoo-commits] repo/proj/guru:dev commit in: x11-wm/firefox-i3-workspaces/, x11-wm/firefox-i3-workspaces/files/
@ 2024-04-07 5:35 Vitaly Zdanevich
0 siblings, 0 replies; only message in thread
From: Vitaly Zdanevich @ 2024-04-07 5:35 UTC (permalink / raw
To: gentoo-commits
commit: d215ee8db96e85b1cf14a220a0eaf165a63406ce
Author: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Sun Apr 7 05:35:41 2024 +0000
Commit: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> 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 <zdanevich.vitaly <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Vitaly Zdanevich</name>
+ <email>zdanevich.vitaly@ya.ru</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="gitlab">yurikhan/firefox-i3-workspaces</remote-id>
+ <bugs-to>https://github.com/yurikhan/firefox-i3-workspaces/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-07 5:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-07 5:35 [gentoo-commits] repo/proj/guru:dev commit in: x11-wm/firefox-i3-workspaces/, x11-wm/firefox-i3-workspaces/files/ Vitaly Zdanevich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox