public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrazer/
Date: Sat, 13 May 2023 22:06:56 +0000 (UTC)	[thread overview]
Message-ID: <1684015613.1b4426aafa91b9d4ac96ff3b7661812ebf464726.xgqt@gentoo> (raw)

commit:     1b4426aafa91b9d4ac96ff3b7661812ebf464726
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat May 13 21:41:13 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat May 13 22:06:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b4426aa

sys-apps/openrazer: bump to 3.6.1

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 sys-apps/openrazer/Manifest               |   1 +
 sys-apps/openrazer/openrazer-3.6.1.ebuild | 160 ++++++++++++++++++++++++++++++
 2 files changed, 161 insertions(+)

diff --git a/sys-apps/openrazer/Manifest b/sys-apps/openrazer/Manifest
index ec8d1e387fb4..aa986006bcaa 100644
--- a/sys-apps/openrazer/Manifest
+++ b/sys-apps/openrazer/Manifest
@@ -1,2 +1,3 @@
 DIST openrazer-3.5.1.tar.gz 240254 BLAKE2B 7f6b887c22c81c8cd3d7908f94748879aa4c89f6446e073aeaed0d33f8d58bd7b618768a9915a451d6659c0cdf428b52e055641420553a00f2cf41b0a9737487 SHA512 dc32f040f4b9ecbefbd2b4afc34edcc97fbda16f6dd9a64ed61d637233ea5d0e6f046685837635a177d3cab8506224c973ea26972a6ea7cc20d7bcce60065e39
 DIST openrazer-3.6.0.tar.gz 243924 BLAKE2B 7b782990cf5afedb88adafe310bcba6512ff8009cee6bbf8e005f4780c711ccc724cacc3056f471002268c61e6d3bfce0ba6b5c72e502ad83b954c45f70b521a SHA512 fb08a8a38ce582099e6c1a98df73aacf9dd437beb4be9cc0e7e3e14f4da6e53de90058a8cc22daeda0bbcfe111b2bc5a38c0503e0020239d44dae2f199219695
+DIST openrazer-3.6.1.tar.gz 244061 BLAKE2B f5fa8bf4ec383cf92d3c9c66db6b2f6cc9e4cf1969558d187ff62e687316b861d3c0f0ba37f5addc0911a49794acc648ae2d6be6f519ea1d33afa3cc9ab7bd1b SHA512 1e1db191e4daa028fe177e9c50ddf2dfffdf7c8ba68d108a2e74232b9accb344dbc5c3352aba223434cf16d79c113e7ba19dc9f2e6672758153c25ba9391cbff

diff --git a/sys-apps/openrazer/openrazer-3.6.1.ebuild b/sys-apps/openrazer/openrazer-3.6.1.ebuild
new file mode 100644
index 000000000000..754d171d5932
--- /dev/null
+++ b/sys-apps/openrazer/openrazer-3.6.1.ebuild
@@ -0,0 +1,160 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit readme.gentoo-r1 systemd udev xdg-utils distutils-r1 linux-mod
+
+DESCRIPTION="Drivers and user-space daemon to control Razer devices on GNU/Linux"
+HOMEPAGE="https://openrazer.github.io/
+	https://github.com/openrazer/openrazer/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+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."
+
+BUILD_TARGETS="clean driver"
+BUILD_PARAMS="-C ${S} SUBDIRS=${S}/driver KERNELDIR=${KERNEL_DIR}"
+MODULE_NAMES="
+	razeraccessory(hid:${S}/driver)
+	razerkbd(hid:${S}/driver)
+	razerkraken(hid:${S}/driver)
+	razermouse(hid:${S}/driver)
+"
+
+distutils_enable_tests unittest
+
+python_compile() {
+	if use daemon ; then
+		( cd "${S}"/daemon || die ; distutils-r1_python_compile )
+	fi
+	if use client ; then
+		( cd "${S}"/pylib || die ; distutils-r1_python_compile )
+	fi
+}
+
+python_install() {
+	if use daemon ; then
+		( cd "${S}"/daemon || die ; distutils-r1_python_install )
+		python_scriptinto /usr/bin
+		python_newscript "${S}"/daemon/run_openrazer_daemon.py ${PN}-daemon
+	fi
+	if use client ; then
+		( cd "${S}"/pylib || die ; distutils-r1_python_install )
+	fi
+}
+
+src_prepare() {
+	xdg_environment_reset
+	distutils-r1_src_prepare
+
+	# Remove bad tests.
+	rm "${S}"/daemon/tests/test_effect_sync.py || die
+}
+
+src_compile() {
+	linux-mod_src_compile
+	distutils-r1_src_compile
+
+	if use daemon ; then
+		emake -C "${S}"/daemon PREFIX=/usr service
+	fi
+
+	readme.gentoo_create_doc
+}
+
+src_test() {
+	( cd "${S}"/daemon/tests || die ; distutils-r1_src_test )
+}
+
+src_install() {
+	linux-mod_src_install
+	distutils-r1_src_install
+
+	udev_dorules "${S}"/install_files/udev/99-razer.rules
+	exeinto "$(get_udevdir)"
+	doexe "${S}"/install_files/udev/razer_mount
+
+	# Install configuration example so that the daemon does not complain.
+	insinto /usr/share/${PN}
+	newins "${S}"/daemon/resources/razer.conf razer.conf.example
+
+	if use daemon ; then
+		# dbus service
+		insinto /usr/share/dbus-1/services
+		doins "${S}"/daemon/org.razer.service
+
+		# systemd unit
+		systemd_douserunit "${S}"/daemon/${PN}-daemon.service
+
+		# xdg autostart example file
+		insinto /usr/share/${PN}
+		doins "${S}"/install_files/desktop/openrazer-daemon.desktop
+
+		# Manpages
+		doman "${S}"/daemon/resources/man/${PN}-daemon.8
+		doman "${S}"/daemon/resources/man/razer.conf.5
+	fi
+}
+
+pkg_postinst() {
+	linux-mod_pkg_postinst
+	udev_reload
+
+	if use daemon ; then
+		xdg_icon_cache_update
+		xdg_desktop_database_update
+	fi
+
+	readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+	linux-mod_pkg_postrm
+	udev_reload
+
+	if use daemon ; then
+		xdg_icon_cache_update
+		xdg_desktop_database_update
+	fi
+}


             reply	other threads:[~2023-05-13 22:07 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-13 22:06 Maciej Barć [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-03 10:52 [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrazer/ Arthur Zamarin
2025-04-13 15:14 Maciej Barć
2025-04-13 15:14 Maciej Barć
2025-03-28  6:53 Arthur Zamarin
2025-03-15 19:55 Maciej Barć
2025-02-20 18:33 Maciej Barć
2025-02-20 18:33 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-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=1684015613.1b4426aafa91b9d4ac96ff3b7661812ebf464726.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