diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-15 12:04:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-15 12:04:03 +0100 |
commit | 7fa8a1e3f149eea4c844c47cfe26136ed7614c58 (patch) | |
tree | e514d1b9999d088064bee1e34a3a3c500d6d7a07 /sys-apps/openrazer | |
parent | d993571e2ee444d08f4e9e90d493ee37338657e3 (diff) |
gentoo auto-resync : 15:04:2024 - 12:04:02
Diffstat (limited to 'sys-apps/openrazer')
-rw-r--r-- | sys-apps/openrazer/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/openrazer/openrazer-3.7.0-r1.ebuild (renamed from sys-apps/openrazer/openrazer-3.7.0.ebuild) | 4 | ||||
-rw-r--r-- | sys-apps/openrazer/openrazer-3.8.0.ebuild | 175 |
3 files changed, 180 insertions, 3 deletions
diff --git a/sys-apps/openrazer/Manifest b/sys-apps/openrazer/Manifest index e9a1212b20c0..985f683b2c66 100644 --- a/sys-apps/openrazer/Manifest +++ b/sys-apps/openrazer/Manifest @@ -1,3 +1,5 @@ DIST openrazer-3.7.0.tar.gz 249201 BLAKE2B fd3d98b1d3c46623392a5cd42c8cafd605a7e2a6ec3d42f1f8f3c27b20fe06a149d55c45615a574957a14b66d20371cc9ddfd551c44659bd3887e53a3ad44570 SHA512 5067510fc22040f7a351556499db85a728863d97b56cdb26ea15adebe062403d2a4927c9bdcd620bddeb3388f1db184c0036dd121495b27ddb0d8d80cc17aafb -EBUILD openrazer-3.7.0.ebuild 3677 BLAKE2B f45340d9dc2d73ddde5d8cdf74aa1f8ddcba2100c6c058ae19624adf3ce8b85d7eeac0caa683c705200b510c719f0b4700a530affbb2e507a366f7fad5ea4b68 SHA512 6df69c5944bae1126a81f7d5c7494d1ab008d8edc50f7717228c73f27547c0c547b30f71ff23926a737c07cd31de7c02f35b24264ff5c35e3de0758b4831ec84 +DIST openrazer-3.8.0.tar.gz 250649 BLAKE2B 7266bff9d1614d72b051370aae4cce917adc8d601b788a93eea11db8d11d9c993527aed9b588c5f1c7b248e0e4fa560faf3c095c551bca2a1126ea6b01189154 SHA512 5ec059017591e8942f4c623deb4fa394c4c1d8a0eb14f80491c00976848964c07b4f56bb542f9e5cea84818b296fd05c768feb9eef3d1c9e8e087e5497319fe5 +EBUILD openrazer-3.7.0-r1.ebuild 3677 BLAKE2B e6508d20c12381dd6a57cdc725211d3924c44c81aec2e62d09dae20a63b9ec297ded6863ef02d90ba7fe1143750f6422ffa1a4c82c3b5034a293fbe647ba4fcb SHA512 11ce3233e20aedee0b7c8a22c710577f984ff7430fd181ea313a6d7b8e377b7aa33feaeb0aef65fddf790ae18fdf0ecc8a3759aaf2b285475c93e4975c295748 +EBUILD openrazer-3.8.0.ebuild 3678 BLAKE2B 8969dee62515e25f72edfb20bd2b55a12e51d702e300d506f88ee698e6b3c0d8cc23c5d90c375248033bc3bfed3fe791598e6d1ae3e64f47cd1693ac069a731d SHA512 036b0547df660a5c739ba7b050138b6c7ce84bea377fd9811cb2ef12d8c4c5c06791ed0b63136c33c346778832e66dd08462aa335fd2b6983960f4229a58297c MISC metadata.xml 557 BLAKE2B c7d8fe83eb9f1d3d5361d816e6bad6abd2eea172e743a3482b1e67bb77019251b26b2ecb7d9d8e7efd4ada69990ea07735446771a836a64bd110cac6b72a626a SHA512 87490d202ae606a8f4d1fe63e5631c7eae1ae13f0705dc6553f79b351d6181183cc81c69b5740647298a48e35db407821835c8309db725b609f4bcfd8d0bdd56 diff --git a/sys-apps/openrazer/openrazer-3.7.0.ebuild b/sys-apps/openrazer/openrazer-3.7.0-r1.ebuild index f6e5fa460d6b..878518347eef 100644 --- a/sys-apps/openrazer/openrazer-3.7.0.ebuild +++ b/sys-apps/openrazer/openrazer-3.7.0-r1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit readme.gentoo-r1 systemd udev xdg-utils distutils-r1 linux-mod-r1 diff --git a/sys-apps/openrazer/openrazer-3.8.0.ebuild b/sys-apps/openrazer/openrazer-3.8.0.ebuild new file mode 100644 index 000000000000..847563f1745f --- /dev/null +++ b/sys-apps/openrazer/openrazer-3.8.0.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +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 +} |