[gentoo-commits] repo/gentoo:master commit in: games-util/sc-controller/, games-util/sc-controller/files/

2022-12-18 Thread Ionen Wolkens
commit: 55adf794dd39a7b281681d84c96fc7768aafdc51
Author: Ionen Wolkens  gentoo  org>
AuthorDate: Mon Dec 19 07:08:54 2022 +
Commit: Ionen Wolkens  gentoo  org>
CommitDate: Mon Dec 19 07:11:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55adf794

games-util/sc-controller: drop 0.4.8.6_p20211211

Signed-off-by: Ionen Wolkens  gentoo.org>

 games-util/sc-controller/Manifest  |  1 -
 .../files/sc-controller-bluetooth-evdev.patch  | 38 
 .../sc-controller-0.4.8.6_p20211211.ebuild | 50 --
 3 files changed, 89 deletions(-)

diff --git a/games-util/sc-controller/Manifest 
b/games-util/sc-controller/Manifest
index cb4dcb8a51f7..84b03c55a28c 100644
--- a/games-util/sc-controller/Manifest
+++ b/games-util/sc-controller/Manifest
@@ -1,2 +1 @@
-DIST sc-controller-0.4.8.6_p20211211.tar.gz 2527489 BLAKE2B 
e04e2a9d617b6cfb3b0709f37b7384ac0c516f1f30a23547f1132c562cafeb8972f23e9cc93967187c881fd78fe6e6d102451aa5afc4bf8fce619e86820b
 SHA512 
9d1030ed2766b9a0984852eafc343e265768489f3d01833e6633019276c0559cb4265d72013c0bc2ecb57ac35c95791ee8e2285f8c45917695ea92826bca6dc3
 DIST sc-controller-0.4.8.9.tar.gz 2541647 BLAKE2B 
f4e4ebcd15f8c32f292293ea21a0c30655fedefba310991082ece3b9159b52700178a31da4b3e7a172e40fde4e718403c0945387f3781628e09fa1fc086eee93
 SHA512 
e0848d366f6f80c36670adcda717b792b6993e7383c01e969c0478cf187bcdb891ea9c434271f24e7f5dfc96d8f321f953f610bb8efeb6ed843b7cd069b9b18f

diff --git a/games-util/sc-controller/files/sc-controller-bluetooth-evdev.patch 
b/games-util/sc-controller/files/sc-controller-bluetooth-evdev.patch
deleted file mode 100644
index 6f5b6ae1856d..
--- a/games-util/sc-controller/files/sc-controller-bluetooth-evdev.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 0b816d9fb06a325477961c50118db670e1cc15d2 Mon Sep 17 00:00:00 2001
-From: James Le Cuirot 
-Date: Sat, 12 Mar 2022 09:52:54 +
-Subject: [PATCH] Allow Bluetooth evdev and HID controllers to appear in the
- list
-
-We currently check whether `dev.phys` is blank to work out whether the
-device is virtual or not. Unfortunately, this is also blank for
-Bluetooth-connected devices.
-
-I thought checking whether `dev.info.bustype` is `BUS_VIRTUAL` might
-help but our emulated gamepad has `BUS_USB`. Given that we deliberately
-make the emulated device look as real as possible, I can't find any
-other way to tell it apart from real USB devices. We should therefore
-only check whether `dev.phys` is blank when the bustype is `BUS_USB`.
-This will allow Bluetooth devices with `BUS_BLUETOOTH` to work.

- scc/gui/creg/dialog.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/scc/gui/creg/dialog.py b/scc/gui/creg/dialog.py
-index 76658e08..77a94dea 100644
 a/scc/gui/creg/dialog.py
-+++ b/scc/gui/creg/dialog.py
-@@ -742,7 +742,9 @@ class ControllerRegistration(Editor):
-   for fname in evdev.list_devices():
-   dev = evdev.InputDevice(fname)
-   is_gamepad = 
ControllerRegistration.does_he_looks_like_a_gamepad(dev)
--  if not dev.phys:
-+  # bustype 3 is BUS_USB, which is the type used for 
emulated
-+  # gamepads. phys is blank for BUS_BLUETOOTH devices.
-+  if dev.info.bustype == 3 and not dev.phys:
-   # Skipping over virtual devices so list doesn't 
show
-   # gamepads emulated by SCC
-   continue
--- 
-2.34.1
-

diff --git a/games-util/sc-controller/sc-controller-0.4.8.6_p20211211.ebuild 
b/games-util/sc-controller/sc-controller-0.4.8.6_p20211211.ebuild
deleted file mode 100644
index 6f4d359c969c..
--- a/games-util/sc-controller/sc-controller-0.4.8.6_p20211211.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_SINGLE_IMPL=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1 linux-info xdg
-
-COMMIT="3ce2d23c873f6f5ecc80ef90f153c14f744368f9"
-DESCRIPTION="User-mode driver and GTK-based GUI for Steam Controllers and 
others"
-HOMEPAGE="https://github.com/Ryochan7/sc-controller/;
-SRC_URI="https://github.com/Ryochan7/sc-controller/archive/${COMMIT}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="GPL-2 BSD CC-BY-3.0 CC0-1.0 LGPL-2.1 MIT PSF-2 ZLIB"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+udev"
-
-RDEPEND="
-   $(python_gen_cond_dep '
-   dev-python/pygobject[${PYTHON_USEDEP},cairo]
-   dev-python/pylibacl[${PYTHON_USEDEP}]
-   dev-python/python-evdev[${PYTHON_USEDEP}]
-   dev-python/vdf[${PYTHON_USEDEP}]')
-   gnome-base/librsvg[introspection]
-   virtual/libusb
-   x11-libs/gtk+:3[introspection]
-   udev? ( games-util/game-device-udev-rules )"
-

[gentoo-commits] repo/gentoo:master commit in: games-util/sc-controller/, games-util/sc-controller/files/

2022-03-20 Thread James Le Cuirot
commit: 9060b75babcdd713cf447828760206f7950bb0ce
Author: James Le Cuirot  gentoo  org>
AuthorDate: Sun Mar 20 13:39:37 2022 +
Commit: James Le Cuirot  gentoo  org>
CommitDate: Sun Mar 20 13:39:37 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9060b75b

games-util/sc-controller: Patch fix Bluetooth evdev and HID controllers

Signed-off-by: James Le Cuirot  gentoo.org>

 .../files/sc-controller-bluetooth-evdev.patch  | 38 ++
 .../sc-controller-0.4.8.6_p20211211.ebuild |  4 +++
 2 files changed, 42 insertions(+)

diff --git a/games-util/sc-controller/files/sc-controller-bluetooth-evdev.patch 
b/games-util/sc-controller/files/sc-controller-bluetooth-evdev.patch
new file mode 100644
index ..6f5b6ae1856d
--- /dev/null
+++ b/games-util/sc-controller/files/sc-controller-bluetooth-evdev.patch
@@ -0,0 +1,38 @@
+From 0b816d9fb06a325477961c50118db670e1cc15d2 Mon Sep 17 00:00:00 2001
+From: James Le Cuirot 
+Date: Sat, 12 Mar 2022 09:52:54 +
+Subject: [PATCH] Allow Bluetooth evdev and HID controllers to appear in the
+ list
+
+We currently check whether `dev.phys` is blank to work out whether the
+device is virtual or not. Unfortunately, this is also blank for
+Bluetooth-connected devices.
+
+I thought checking whether `dev.info.bustype` is `BUS_VIRTUAL` might
+help but our emulated gamepad has `BUS_USB`. Given that we deliberately
+make the emulated device look as real as possible, I can't find any
+other way to tell it apart from real USB devices. We should therefore
+only check whether `dev.phys` is blank when the bustype is `BUS_USB`.
+This will allow Bluetooth devices with `BUS_BLUETOOTH` to work.
+---
+ scc/gui/creg/dialog.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/scc/gui/creg/dialog.py b/scc/gui/creg/dialog.py
+index 76658e08..77a94dea 100644
+--- a/scc/gui/creg/dialog.py
 b/scc/gui/creg/dialog.py
+@@ -742,7 +742,9 @@ class ControllerRegistration(Editor):
+   for fname in evdev.list_devices():
+   dev = evdev.InputDevice(fname)
+   is_gamepad = 
ControllerRegistration.does_he_looks_like_a_gamepad(dev)
+-  if not dev.phys:
++  # bustype 3 is BUS_USB, which is the type used for 
emulated
++  # gamepads. phys is blank for BUS_BLUETOOTH devices.
++  if dev.info.bustype == 3 and not dev.phys:
+   # Skipping over virtual devices so list doesn't 
show
+   # gamepads emulated by SCC
+   continue
+-- 
+2.34.1
+

diff --git a/games-util/sc-controller/sc-controller-0.4.8.6_p20211211.ebuild 
b/games-util/sc-controller/sc-controller-0.4.8.6_p20211211.ebuild
index f4b6ee09f983..6f4d359c969c 100644
--- a/games-util/sc-controller/sc-controller-0.4.8.6_p20211211.ebuild
+++ b/games-util/sc-controller/sc-controller-0.4.8.6_p20211211.ebuild
@@ -33,6 +33,10 @@ distutils_enable_tests pytest
 
 S="${WORKDIR}/${PN}-${COMMIT}"
 
+PATCHES=(
+   "${FILESDIR}"/${PN}-bluetooth-evdev.patch
+)
+
 pkg_setup() {
local CONFIG_CHECK="~INPUT_UINPUT"
 



[gentoo-commits] repo/gentoo:master commit in: games-util/sc-controller/, games-util/sc-controller/files/

2021-12-28 Thread Ionen Wolkens
commit: 50749dd21676d72d4bddb92102da9e6a8d23ca65
Author: Ionen Wolkens  gentoo  org>
AuthorDate: Tue Dec 28 15:02:46 2021 +
Commit: Ionen Wolkens  gentoo  org>
CommitDate: Tue Dec 28 17:00:10 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50749dd2

games-util/sc-controller: drop 0.4.8.1

Signed-off-by: Ionen Wolkens  gentoo.org>

 games-util/sc-controller/Manifest  |  1 -
 .../sc-controller/files/status-icon-click.patch| 28 --
 .../sc-controller/sc-controller-0.4.8.1.ebuild | 33 --
 3 files changed, 62 deletions(-)

diff --git a/games-util/sc-controller/Manifest 
b/games-util/sc-controller/Manifest
index 38b205222bdc..b712ecee7617 100644
--- a/games-util/sc-controller/Manifest
+++ b/games-util/sc-controller/Manifest
@@ -1,2 +1 @@
-DIST sc-controller-0.4.8.1.tar.gz 2520167 BLAKE2B 
40c8e366519ec2a6d80b31c2b342fba2664fa35f3a889e222665f8f5cd4d59dd912804f6cdf4ecd844ab94075f5f45f88a61138ac1c0cb528652c9fd9b710afa
 SHA512 
bc57bd381c71e94c0771ecdb08f95326d0c1478e25cdf3955b71c203abe6cb78091ca977deb8a1e954b5b1b65a6df487f8b8921920b1eb672aa6f1f5554a4847
 DIST sc-controller-0.4.8.2.tar.gz 2520528 BLAKE2B 
0c98e1fd49e846909ec0a78c5bbf48731de464ab79ebe3e1b0370e2a6f176e925e6f2b288c17358221b2e50be0cd783f31f05324ac585aec310967d148ce5011
 SHA512 
8d157e871fa519ebd3eee27dd1c0ff1afe6f79201df12578aa31f3cbc62974bd7ba47c8a097870b693a7abaacaadd1e502012c9664c0aecddbd982fa10c7f84d

diff --git a/games-util/sc-controller/files/status-icon-click.patch 
b/games-util/sc-controller/files/status-icon-click.patch
deleted file mode 100644
index 46b39553b483..
--- a/games-util/sc-controller/files/status-icon-click.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From b1388d0e768f0bedd5704ffae9b13500ad325308 Mon Sep 17 00:00:00 2001
-From: James Le Cuirot 
-Date: Sat, 17 Oct 2020 21:36:49 +0100
-Subject: [PATCH] Fix TypeError when clicking on the status icon
-
-The error was:
-
-  TypeError: GObject.emit() argument 1 must be str, not bytes

- scc/gui/statusicon.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/scc/gui/statusicon.py b/scc/gui/statusicon.py
-index 61ef9e96..83600492 100644
 a/scc/gui/statusicon.py
-+++ b/scc/gui/statusicon.py
-@@ -322,7 +322,7 @@ class StatusIconProxy(StatusIcon):
-   self._load_fallback()
-   
-   def _on_click(self, *args):
--  self.emit(b"clicked")
-+  self.emit("clicked")
-   
-   def _on_notify_active_gtk(self, *args):
-   if self._status_fb:
--- 
-2.26.2
-

diff --git a/games-util/sc-controller/sc-controller-0.4.8.1.ebuild 
b/games-util/sc-controller/sc-controller-0.4.8.1.ebuild
deleted file mode 100644
index f5cb8a83901e..
--- a/games-util/sc-controller/sc-controller-0.4.8.1.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DISTUTILS_SINGLE_IMPL=1
-DISTUTILS_USE_SETUPTOOLS=no
-PYTHON_COMPAT=( python3_{7,8,9} )
-
-inherit distutils-r1 xdg
-
-DESCRIPTION="User-mode driver and GTK-based GUI for Steam Controllers and 
others"
-HOMEPAGE="https://github.com/Ryochan7/sc-controller/;
-SRC_URI="https://github.com/Ryochan7/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-LICENSE="GPL-2 CC0-1.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+udev"
-
-RDEPEND="
-   $(python_gen_cond_dep '
-   dev-python/pygobject[${PYTHON_USEDEP},cairo]
-   dev-python/pylibacl[${PYTHON_USEDEP}]
-   dev-python/python-evdev[${PYTHON_USEDEP}]
-   ')
-   gnome-base/librsvg
-   x11-libs/gtk+:3
-   udev? ( games-util/game-device-udev-rules )
-"
-
-PATCHES=(
-   "${FILESDIR}"/status-icon-click.patch
-)



[gentoo-commits] repo/gentoo:master commit in: games-util/sc-controller/, games-util/sc-controller/files/

2020-11-06 Thread James Le Cuirot
commit: 5ec6155ac4f96a502512be1936aadc5cf26ae57f
Author: James Le Cuirot  gentoo  org>
AuthorDate: Fri Nov  6 21:35:45 2020 +
Commit: James Le Cuirot  gentoo  org>
CommitDate: Fri Nov  6 21:35:45 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ec6155a

games-util/sc-controller: New package

This was sys-apps/sc-controller in steam-overlay.

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: James Le Cuirot  gentoo.org>

 games-util/sc-controller/Manifest  |  1 +
 .../sc-controller/files/status-icon-click.patch| 28 ++
 games-util/sc-controller/metadata.xml  | 11 
 .../sc-controller/sc-controller-0.4.8.1.ebuild | 33 ++
 4 files changed, 73 insertions(+)

diff --git a/games-util/sc-controller/Manifest 
b/games-util/sc-controller/Manifest
new file mode 100644
index 000..31972543988
--- /dev/null
+++ b/games-util/sc-controller/Manifest
@@ -0,0 +1 @@
+DIST sc-controller-0.4.8.1.tar.gz 2520167 BLAKE2B 
40c8e366519ec2a6d80b31c2b342fba2664fa35f3a889e222665f8f5cd4d59dd912804f6cdf4ecd844ab94075f5f45f88a61138ac1c0cb528652c9fd9b710afa
 SHA512 
bc57bd381c71e94c0771ecdb08f95326d0c1478e25cdf3955b71c203abe6cb78091ca977deb8a1e954b5b1b65a6df487f8b8921920b1eb672aa6f1f5554a4847

diff --git a/games-util/sc-controller/files/status-icon-click.patch 
b/games-util/sc-controller/files/status-icon-click.patch
new file mode 100644
index 000..46b39553b48
--- /dev/null
+++ b/games-util/sc-controller/files/status-icon-click.patch
@@ -0,0 +1,28 @@
+From b1388d0e768f0bedd5704ffae9b13500ad325308 Mon Sep 17 00:00:00 2001
+From: James Le Cuirot 
+Date: Sat, 17 Oct 2020 21:36:49 +0100
+Subject: [PATCH] Fix TypeError when clicking on the status icon
+
+The error was:
+
+  TypeError: GObject.emit() argument 1 must be str, not bytes
+---
+ scc/gui/statusicon.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/scc/gui/statusicon.py b/scc/gui/statusicon.py
+index 61ef9e96..83600492 100644
+--- a/scc/gui/statusicon.py
 b/scc/gui/statusicon.py
+@@ -322,7 +322,7 @@ class StatusIconProxy(StatusIcon):
+   self._load_fallback()
+   
+   def _on_click(self, *args):
+-  self.emit(b"clicked")
++  self.emit("clicked")
+   
+   def _on_notify_active_gtk(self, *args):
+   if self._status_fb:
+-- 
+2.26.2
+

diff --git a/games-util/sc-controller/metadata.xml 
b/games-util/sc-controller/metadata.xml
new file mode 100644
index 000..e3a736ee87d
--- /dev/null
+++ b/games-util/sc-controller/metadata.xml
@@ -0,0 +1,11 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   ga...@gentoo.org
+   Gentoo Games Project
+   
+   
+   Ryochan7/sc-controller
+   
+

diff --git a/games-util/sc-controller/sc-controller-0.4.8.1.ebuild 
b/games-util/sc-controller/sc-controller-0.4.8.1.ebuild
new file mode 100644
index 000..f5cb8a83901
--- /dev/null
+++ b/games-util/sc-controller/sc-controller-0.4.8.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_SETUPTOOLS=no
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit distutils-r1 xdg
+
+DESCRIPTION="User-mode driver and GTK-based GUI for Steam Controllers and 
others"
+HOMEPAGE="https://github.com/Ryochan7/sc-controller/;
+SRC_URI="https://github.com/Ryochan7/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+LICENSE="GPL-2 CC0-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+udev"
+
+RDEPEND="
+   $(python_gen_cond_dep '
+   dev-python/pygobject[${PYTHON_USEDEP},cairo]
+   dev-python/pylibacl[${PYTHON_USEDEP}]
+   dev-python/python-evdev[${PYTHON_USEDEP}]
+   ')
+   gnome-base/librsvg
+   x11-libs/gtk+:3
+   udev? ( games-util/game-device-udev-rules )
+"
+
+PATCHES=(
+   "${FILESDIR}"/status-icon-click.patch
+)