From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrazer/
Date: Thu, 20 Feb 2025 18:33:25 +0000 (UTC) [thread overview]
Message-ID: <1740076402.c50e3bf89ee2b4ea6ad72d5d1255b8a024eca8a2.xgqt@gentoo> (raw)
commit: c50e3bf89ee2b4ea6ad72d5d1255b8a024eca8a2
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 20 17:39:33 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Feb 20 18:33:22 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c50e3bf8
sys-apps/openrazer: bump to 3.10.0
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
sys-apps/openrazer/Manifest | 1 +
sys-apps/openrazer/openrazer-3.10.0.ebuild | 175 +++++++++++++++++++++++++++++
2 files changed, 176 insertions(+)
diff --git a/sys-apps/openrazer/Manifest b/sys-apps/openrazer/Manifest
index acb9cd4d2eeb..6ba5d4e7e582 100644
--- a/sys-apps/openrazer/Manifest
+++ b/sys-apps/openrazer/Manifest
@@ -1 +1,2 @@
+DIST openrazer-3.10.0.tar.gz 256395 BLAKE2B ed2ead34dce238169ef1713569776dda2e40da18e9f9dada0986c330416dd9aa334fdc092667df554730c1df4dba3170f48cfd9b34dd324e101ee91f0551b37e SHA512 1931b1f24164a1d4117e355148b8b3bc6a36cfc0cb676793d49a4387935b46df635550ac9885cdf53151d79631bfc6f06f86beb81518bf182537e15afd27f5f1
DIST openrazer-3.9.0.tar.gz 252984 BLAKE2B d1e7392e7fbdcf8825ef2699a6f8c5cffbfd87739fabf4053eb67eaecb286fc695ffba4cde72afa0de0f459b9ce98754192096cf0cc168b80a9f77a54a0753bf SHA512 0d56e03cb9cc07ec080de654699d0b56de26931ff941d2694dfdfd6bdac6ed9dd5c0d88d9064dbe57135b7bf5dd2a01e6e51cb6a04d2b2b17a9dad22ed923fa7
diff --git a/sys-apps/openrazer/openrazer-3.10.0.ebuild b/sys-apps/openrazer/openrazer-3.10.0.ebuild
new file mode 100644
index 000000000000..0b016729aebe
--- /dev/null
+++ b/sys-apps/openrazer/openrazer-3.10.0.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit readme.gentoo-r1 systemd udev xdg-utils distutils-r1 linux-mod-r1
+
+DESCRIPTION="Drivers and user-space daemon to control Razer devices on GNU/Linux"
+HOMEPAGE="https://openrazer.github.io/
+ https://github.com/openrazer/openrazer/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+else
+ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2+"
+SLOT="0"
+
+IUSE="+client +daemon"
+REQUIRED_USE="
+ client? ( daemon )
+ daemon? ( ${PYTHON_REQUIRED_USE} )
+ test? ( daemon )
+"
+
+RDEPEND="
+ client? ( dev-python/numpy[${PYTHON_USEDEP}] )
+ daemon? (
+ acct-group/plugdev
+ dev-python/daemonize[${PYTHON_USEDEP}]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/notify2[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/pyudev[${PYTHON_USEDEP}]
+ dev-python/setproctitle[${PYTHON_USEDEP}]
+ x11-libs/gtk+:3[introspection]
+ x11-misc/xautomation
+ x11-misc/xdotool
+ )
+"
+BDEPEND="
+ ${RDEPEND}
+ virtual/linux-sources
+"
+
+DOCS=( README.md )
+
+DOC_CONTENTS="To successfully use OpenRazer: load desired kernel module
+(razeraccessory, razerkbd, razerkraken and/or razermouse),
+add your user to the \"plugdev\" group and start the OpenRazer daemon.
+To automatically start up the OpenRazer daemon on session login copy
+/usr/share/openrazer/openrazer-daemon.desktop file into Your user's
+~/.config/autostart/ directory."
+
+distutils_enable_tests unittest
+
+python_compile() {
+ cd "${S}/daemon" || die
+
+ distutils_pep517_install "${BUILD_DIR}/install"
+
+ if use client ; then
+ cd "${S}/pylib" || die
+
+ distutils_pep517_install "${BUILD_DIR}/install"
+ fi
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ python_scriptinto /usr/bin
+ python_newscript daemon/run_openrazer_daemon.py "${PN}-daemon"
+}
+
+src_prepare() {
+ xdg_environment_reset
+
+ if use daemon ; then
+ distutils-r1_src_prepare
+ else
+ default
+ fi
+
+ # Remove bad tests.
+ rm daemon/tests/test_effect_sync.py || die
+}
+
+src_compile() {
+ local -a modargs=(
+ SUBDIRS="${S}/driver"
+ KERNELDIR="${KERNEL_DIR}"
+ )
+ local -a modlist=(
+ {razeraccessory,razerkbd,razerkraken,razermouse}="hid:${S}:driver"
+ )
+ linux-mod-r1_src_compile
+
+ if use daemon ; then
+ distutils-r1_src_compile
+
+ emake -C "${S}/daemon" PREFIX=/usr service
+ fi
+
+ readme.gentoo_create_doc
+}
+
+src_test() {
+ cd daemon/tests || die
+
+ distutils-r1_src_test
+}
+
+src_install() {
+ linux-mod-r1_src_install
+
+ udev_dorules install_files/udev/99-razer.rules
+ exeinto "$(get_udevdir)"
+ doexe install_files/udev/razer_mount
+
+ # Install configuration example so that the daemon does not complain.
+ insinto /usr/share/${PN}
+ newins daemon/resources/razer.conf razer.conf.example
+
+ if use daemon ; then
+ # Python libraries/scripts, "client" also requires USE="daemon"
+ distutils-r1_src_install
+
+ # dbus service
+ insinto /usr/share/dbus-1/services
+ doins daemon/org.razer.service
+
+ # systemd unit
+ systemd_douserunit "daemon/${PN}-daemon.service"
+
+ # xdg autostart example file
+ insinto /usr/share/${PN}
+ doins install_files/desktop/openrazer-daemon.desktop
+
+ # Manpages
+ doman daemon/resources/man/${PN}-daemon.8
+ doman daemon/resources/man/razer.conf.5
+ fi
+}
+
+pkg_postinst() {
+ linux-mod-r1_pkg_postinst
+ udev_reload
+
+ if use daemon ; then
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+ fi
+
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ udev_reload
+
+ if use daemon ; then
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+ fi
+}
next reply other threads:[~2025-02-20 18:33 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 18:33 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-20 18:33 [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrazer/ Maciej Barć
2024-11-13 18:16 Maciej Barć
2024-10-06 19:53 Maciej Barć
2024-06-22 19:05 Maciej Barć
2024-06-01 3:46 Ionen Wolkens
2024-04-14 15:33 Maciej Barć
2024-04-14 15:33 Maciej Barć
2023-12-16 21:45 Maciej Barć
2023-12-08 8:31 Maciej Barć
2023-11-02 22:11 Maciej Barć
2023-08-29 20:03 Maciej Barć
2023-08-29 20:03 Maciej Barć
2023-08-12 7:52 Arthur Zamarin
2023-07-08 21:22 Maciej Barć
2023-07-07 11:58 Maciej Barć
2023-06-17 20:17 Maciej Barć
2023-06-17 20:17 Maciej Barć
2023-06-17 20:17 Maciej Barć
2023-06-17 15:13 Sam James
2023-06-07 15:50 Sam James
2023-05-13 22:06 Maciej Barć
2023-05-01 17:47 Maciej Barć
2023-01-21 9:26 Arthur Zamarin
2023-01-16 1:57 Maciej Barć
2022-12-08 2:50 Maciej Barć
2022-12-04 12:25 Maciej Barć
2022-11-20 15:47 Maciej Barć
2022-10-03 2:07 Maciej Barć
2022-09-21 14:06 Maciej Barć
2022-09-21 12:19 Maciej Barć
2022-09-20 23:23 Maciej Barć
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1740076402.c50e3bf89ee2b4ea6ad72d5d1255b8a024eca8a2.xgqt@gentoo \
--to=xgqt@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox