sys-apps/asus-touchpad-numpad-driver: initial import

asus touchpad/numpad drivers supporting multiple layouts

Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
Aisha Tammy
2022-07-23 07:49:45 +00:00
parent 0cd05d7a14
commit 901ed100ee
4 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST asus-touchpad-numpad-driver-0_pre20220311.tar.gz 612461 BLAKE2B 962f7d044401067e779a070797a281cfabf8f0c4496e9791bef968014506bd8d6ae90151a9086273494f98b410a8e800b78214453da4444a20a94ec583c0d731 SHA512 69fe5165b70ad64857d13ba689fd412ba8a50d2c7f97a18c778b04ff03b53c1620bc774c45b00eaa7e9c51e94ad16e693ba8176872dd9fcfe1ded5b2cb78ed56

View File

@@ -0,0 +1,51 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit linux-info python-single-r1
DESCRIPTION="Feature-rich configurable Asus NumPad drivers"
HOMEPAGE="https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver"
else
COMMIT="a2bada610ebb3fc002fceb53ddf93bc799241867"
SRC_URI="https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${PN}-${COMMIT}"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
dev-libs/libevdev
sys-apps/i2c-tools
$(python_gen_cond_dep '
dev-python/python-evdev[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/python-libevdev[${PYTHON_USEDEP}]
')
"
RDEPEND="
${DEPEND}
${PYTHON_DEPS}
"
src_install() {
exeinto /usr/libexec/${PN}
doexe asus_touchpad.py
insinto /usr/libexec/${PN}
doins -r numpad_layouts
python_fix_shebang ${ED}/usr/libexec/${PN}/asus_touchpad.py
python_optimize ${ED}/usr/libexec/${PN}
dosym ../libexec/${PN}/asus_touchpad.py /usr/bin/asus_touchpad
}

View File

@@ -0,0 +1,51 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit linux-info python-single-r1
DESCRIPTION="Feature-rich configurable Asus NumPad drivers"
HOMEPAGE="https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver"
else
COMMIT="a2bada610ebb3fc002fceb53ddf93bc799241867"
SRC_URI="https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${PN}-${COMMIT}"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
dev-libs/libevdev
sys-apps/i2c-tools
$(python_gen_cond_dep '
dev-python/python-evdev[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/python-libevdev[${PYTHON_USEDEP}]
')
"
RDEPEND="
${DEPEND}
${PYTHON_DEPS}
"
src_install() {
exeinto /usr/libexec/${PN}
doexe asus_touchpad.py
insinto /usr/libexec/${PN}
doins -r numpad_layouts
python_fix_shebang ${ED}/usr/libexec/${PN}/asus_touchpad.py
python_optimize ${ED}/usr/libexec/${PN}
dosym ../libexec/${PN}/asus_touchpad.py /usr/bin/asus_touchpad
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@aisha.cc</email>
<name>Aisha Tammy</name>
</maintainer>
</pkgmetadata>