mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
python3-inputs: new port
This commit is contained in:
2
main/python3-inputs/.checksums
Normal file
2
main/python3-inputs/.checksums
Normal file
@@ -0,0 +1,2 @@
|
||||
3b468d78b0eca49a62d7f0eeefc17829 3203c9e25f1e14c4316d85d59c536b4e407f569f.patch
|
||||
5a0f2276bbaf7814be2fa802ecf69fc3 v0.5.zip
|
||||
15
main/python3-inputs/.pkgfiles
Normal file
15
main/python3-inputs/.pkgfiles
Normal file
@@ -0,0 +1,15 @@
|
||||
python3-inputs-0.5-1
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/python3.11/
|
||||
drwxr-xr-x root/root usr/lib/python3.11/site-packages/
|
||||
drwxr-xr-x root/root usr/lib/python3.11/site-packages/__pycache__/
|
||||
-rw-r--r-- root/root usr/lib/python3.11/site-packages/__pycache__/inputs.cpython-311.opt-1.pyc
|
||||
-rw-r--r-- root/root usr/lib/python3.11/site-packages/__pycache__/inputs.cpython-311.pyc
|
||||
drwxr-xr-x root/root usr/lib/python3.11/site-packages/inputs-0.5.dist-info/
|
||||
-rw-r--r-- root/root usr/lib/python3.11/site-packages/inputs-0.5.dist-info/LICENSE
|
||||
-rw-r--r-- root/root usr/lib/python3.11/site-packages/inputs-0.5.dist-info/METADATA
|
||||
-rw-r--r-- root/root usr/lib/python3.11/site-packages/inputs-0.5.dist-info/RECORD
|
||||
-rw-r--r-- root/root usr/lib/python3.11/site-packages/inputs-0.5.dist-info/WHEEL
|
||||
-rw-r--r-- root/root usr/lib/python3.11/site-packages/inputs-0.5.dist-info/top_level.txt
|
||||
-rw-r--r-- root/root usr/lib/python3.11/site-packages/inputs.py
|
||||
@@ -0,0 +1,22 @@
|
||||
From 3203c9e25f1e14c4316d85d59c536b4e407f569f Mon Sep 17 00:00:00 2001
|
||||
From: Jonathan spyreas <jspyreas@root-ai.com>
|
||||
Date: Thu, 16 Apr 2020 11:43:36 -0400
|
||||
Subject: [PATCH] fix for dumb bug around leds and docker
|
||||
|
||||
---
|
||||
inputs.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/inputs.py b/inputs.py
|
||||
index b1f8fb1..36cc3e1 100644
|
||||
--- a/inputs.py
|
||||
+++ b/inputs.py
|
||||
@@ -3134,7 +3134,7 @@ def __init__(self, manager, path, name):
|
||||
|
||||
def _post_init(self):
|
||||
self._match_device()
|
||||
- self._character_device_path = self.gamepad.get_char_device_path()
|
||||
+ self._character_device_path = self.gamepad.get_char_device_path() if self.gamepad else None
|
||||
|
||||
def _match_device(self):
|
||||
number = int(self.name.split('xpad')[1])
|
||||
16
main/python3-inputs/spkgbuild
Executable file
16
main/python3-inputs/spkgbuild
Executable file
@@ -0,0 +1,16 @@
|
||||
# description : Cross-platform Python support for keyboards, mice and gamepads
|
||||
# homepage : https://github.com/zeth/python-inputs#python-
|
||||
# depends : python3-build python3-installer python3-setuptools-scm
|
||||
|
||||
name=python3-inputs
|
||||
version=0.5
|
||||
release=1
|
||||
source="https://github.com/zeth/inputs/archive/refs/tags/v$version.zip
|
||||
3203c9e25f1e14c4316d85d59c536b4e407f569f.patch"
|
||||
|
||||
build() {
|
||||
cd inputs-$version
|
||||
patch -Np1 -i $SRC/3203c9e25f1e14c4316d85d59c536b4e407f569f.patch
|
||||
python3 -m build --wheel --no-isolation
|
||||
python3 -m installer --destdir=$PKG dist/*.whl
|
||||
}
|
||||
Reference in New Issue
Block a user