-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11-misc/input-remapper: new package, add 2.0.1
Signed-off-by: Andrew Udvare <audvare@gmail.com>
- Loading branch information
Showing
4 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
AUX input-remapper-no-data-files.patch 1288 BLAKE2B 44161b428b5ca7fba1503820c08b9f400643ada5313176fc95edf0cb666e47dd44529040b93c493121ca58000795fdfbe43afcea8e075373197338f2bf780c5d SHA512 da3ed50209129306c194874953c348f0dc1010bda6d6a5f9b39dd906ff6d07afc7f1f2a090e0e17ab0e9b99f0588311aa2c986ebb31c1f69d33a484f4d9cc1ce | ||
DIST 2.0.1.tar.gz 683086 BLAKE2B 3c33873a8fc2d5ec7b1d7c4c4d6cdaf1db4e12aee68e3bd8fe5e0a19539944a45bc35cf3229b3c1bb53b3fe9224dff7fd13944a82d501f515b1dc25a0605c1c9 SHA512 9efba252cedebe78792b1bbddff9b3fe54ecb802c496fbc24b1ba49647228604feb789f4c89750f0d1517ef1d1cfd9bd1c593716bde96133f5c1a0d649e09b9e | ||
EBUILD input-remapper-2.0.1.ebuild 1344 BLAKE2B f74e8e1c633febb5f45191087f0cf457948c67a040e8627c2e9b397f8b4940c5330b88cc7b07ac22254bc35a1b98036fc928037202e40ac0aafc5b2b97b4a49f SHA512 b2a395158d065bfc2068bc16ebbb7a24467904c861ebd49664bd86c60b568bfc56ce9ed7a4e412054d0587baf19bac1610622e1ec9df57490295a94c2fd916a0 | ||
MISC metadata.xml 334 BLAKE2B 24da92a39f00e2b64fef8cdd7d456fdd95157bf1fd1000ffa7e529afdb40b5d026c0a8110bd3f9f2c531c2b8f9ca6d749e777bffc803efbd62b8c579156e1fc1 SHA512 c4dc1b72d9a03dc39e66a3b295d16d4da758f19aa526e76fe8e6470466cc4843cb205c467007ebd09262dbf23aa7445d5831b35c5d494bc720ff1186a3cd0817 |
32 changes: 32 additions & 0 deletions
32
x11-misc/input-remapper/files/input-remapper-no-data-files.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/setup.py b/setup.py | ||
index 20c7d3c..b0d0f8e 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -110,27 +110,5 @@ setup( | ||
license="GPL-3.0", | ||
packages=get_packages(), | ||
include_package_data=True, | ||
- data_files=[ | ||
- # see development.md#files | ||
- *lang_data, | ||
- ("/usr/share/input-remapper/", glob.glob("data/*")), | ||
- ("/usr/share/applications/", ["data/input-remapper-gtk.desktop"]), | ||
- ( | ||
- "/usr/share/metainfo/", | ||
- ["data/io.github.sezanzeb.input_remapper.metainfo.xml"], | ||
- ), | ||
- ("/usr/share/polkit-1/actions/", ["data/input-remapper.policy"]), | ||
- ("/usr/lib/systemd/system", ["data/input-remapper.service"]), | ||
- ("/etc/dbus-1/system.d/", ["data/inputremapper.Control.conf"]), | ||
- ("/etc/xdg/autostart/", ["data/input-remapper-autoload.desktop"]), | ||
- ("/usr/lib/udev/rules.d", ["data/99-input-remapper.rules"]), | ||
- ("/usr/bin/", ["bin/input-remapper-gtk"]), | ||
- ("/usr/bin/", ["bin/input-remapper-service"]), | ||
- ("/usr/bin/", ["bin/input-remapper-control"]), | ||
- ("/usr/bin/", ["bin/input-remapper-reader-service"]), | ||
- ], | ||
install_requires=["setuptools", "evdev", "pydbus", "pygobject", "pydantic"], | ||
- cmdclass={ | ||
- "install": Install, | ||
- }, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright 2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DISTUTILS_USE_PEP517=setuptools | ||
PYTHON_COMPAT=( python3_1{0,1,2} ) | ||
inherit desktop distutils-r1 systemd udev xdg | ||
|
||
DESCRIPTION="An easy to use tool to change the behaviour of your input devices." | ||
HOMEPAGE="https://github.com/sezanzeb/input-remapper" | ||
SRC_URI="https://github.com/sezanzeb/${PN}/archive/refs/tags/2.0.1.tar.gz" | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
|
||
DEPEND="dev-python/pydantic[${PYTHON_USEDEP}] | ||
dev-python/pydbus[${PYTHON_USEDEP}] | ||
dev-python/pygobject[${PYTHON_USEDEP}] | ||
dev-python/python-evdev[${PYTHON_USEDEP}] | ||
x11-libs/gtksourceview:4" | ||
RDEPEND="${DEPEND}" | ||
|
||
PATCHES=( "${FILESDIR}/${PN}-no-data-files.patch" ) | ||
|
||
distutils_enable_tests unittest | ||
|
||
src_install() { | ||
distutils-r1_src_install | ||
domenu "data/${PN}-gtk.desktop" | ||
insinto /usr/share/metainfo | ||
doins "data/io.github.sezanzeb.${PN/-/_}.metainfo.xml" | ||
insinto /usr/share/polkit-1/actions | ||
doins "data/${PN}.policy" | ||
systemd_dounit "data/${PN}.service" | ||
insinto /usr/share/dbus-1/system.d | ||
doins data/inputremapper.Control.conf | ||
insinto /etc/xdg/autostart | ||
doins "data/${PN}-autoload.desktop" | ||
udev_dorules "data/99-${PN}.rules" | ||
dobin "bin/${PN}-"* | ||
insinto /usr/share/${PN} | ||
doins "data/${PN}-large.png" "data/${PN}.glade" "data/${PN}.svg" data/style.css | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="person"> | ||
<email>audvare@gmail.com</email> | ||
<name>Andrew Udvare</name> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">sezanzeb/input-remapper</remote-id> | ||
</upstream> | ||
</pkgmetadata> |