From 49307b439ea0ae14beb0772de83e70297ae8356c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 9 Jul 2023 04:23:59 +0100 Subject: gentoo auto-resync : 09:07:2023 - 04:23:59 --- sys-apps/openrazer/Manifest | 2 +- sys-apps/openrazer/openrazer-3.6.1-r1.ebuild | 164 ------------------------- sys-apps/openrazer/openrazer-3.6.1-r2.ebuild | 171 +++++++++++++++++++++++++++ 3 files changed, 172 insertions(+), 165 deletions(-) delete mode 100644 sys-apps/openrazer/openrazer-3.6.1-r1.ebuild create mode 100644 sys-apps/openrazer/openrazer-3.6.1-r2.ebuild (limited to 'sys-apps/openrazer') diff --git a/sys-apps/openrazer/Manifest b/sys-apps/openrazer/Manifest index d30f534c5c0d..b8cd3858d7e7 100644 --- a/sys-apps/openrazer/Manifest +++ b/sys-apps/openrazer/Manifest @@ -1,4 +1,4 @@ DIST openrazer-3.6.1.tar.gz 244061 BLAKE2B f5fa8bf4ec383cf92d3c9c66db6b2f6cc9e4cf1969558d187ff62e687316b861d3c0f0ba37f5addc0911a49794acc648ae2d6be6f519ea1d33afa3cc9ab7bd1b SHA512 1e1db191e4daa028fe177e9c50ddf2dfffdf7c8ba68d108a2e74232b9accb344dbc5c3352aba223434cf16d79c113e7ba19dc9f2e6672758153c25ba9391cbff -EBUILD openrazer-3.6.1-r1.ebuild 3740 BLAKE2B 68a98c138c722d51076937099cee13da3ce2164965284b9777b2a9d22b6c1a2ae92ec6b20394f9e270f1f00c2e7bcc6107aff1e7f2510b02c258ecf26b3c19be SHA512 ba91703e4fbec63df122dd37bcca46dc19ed711dcf1c15557f7ffa11d74a8a04c559068705c1715472c35bebd97de22465ab935f2a8b54d187b20e4ce46aed42 +EBUILD openrazer-3.6.1-r2.ebuild 3730 BLAKE2B 5f62b568cecd6d49ebd67f4b715c118b04309684d3201ae47c4325acf40588c18886c26b5d4ddf53168cb5f9b66777a5836adced44c0f470b940d17272cc7b9d SHA512 216ed9490360f83c15a48c96834acba217a2755d70734ff666543dfc807db2a4e86690c5efb873257a900a15ce585eac2a96320cdfea07f6d0864bfbe893ea32 EBUILD openrazer-3.6.1.ebuild 3703 BLAKE2B fda67f9e5979847b7607bc93bfacfd54018917ce856445054e54cd1476b41959d45d28e21ea6dff5d7631446011cb3897509880c3fcd404eaacf243a1b510f3d SHA512 111f3f3a8d604be9a5ae2cbee75758e5035efb9fe54139a9070e6be85919ec61430ea605c2a3259e3aae1f188993e3541322b3f9980a2d7d4e6cc596256debc0 MISC metadata.xml 557 BLAKE2B c7d8fe83eb9f1d3d5361d816e6bad6abd2eea172e743a3482b1e67bb77019251b26b2ecb7d9d8e7efd4ada69990ea07735446771a836a64bd110cac6b72a626a SHA512 87490d202ae606a8f4d1fe63e5631c7eae1ae13f0705dc6553f79b351d6181183cc81c69b5740647298a48e35db407821835c8309db725b609f4bcfd8d0bdd56 diff --git a/sys-apps/openrazer/openrazer-3.6.1-r1.ebuild b/sys-apps/openrazer/openrazer-3.6.1-r1.ebuild deleted file mode 100644 index d3f1a25658b7..000000000000 --- a/sys-apps/openrazer/openrazer-3.6.1-r1.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# 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-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/${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() { - 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() { - local -a modargs=( - SUBDIRS="${S}"/driver - KERNELDIR="${KERNEL_DIR}" - ) - local -a modlist=( - {razeraccessory,razerkbd,razerkraken,razermouse}="hid:${S}:driver" - ) - linux-mod-r1_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-r1_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-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 -} diff --git a/sys-apps/openrazer/openrazer-3.6.1-r2.ebuild b/sys-apps/openrazer/openrazer-3.6.1-r2.ebuild new file mode 100644 index 000000000000..a2efe041bbf6 --- /dev/null +++ b/sys-apps/openrazer/openrazer-3.6.1-r2.ebuild @@ -0,0 +1,171 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +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/${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 "${S}"/daemon/run_openrazer_daemon.py ${PN}-daemon +} + +src_prepare() { + xdg_environment_reset + + if use daemon ; then + distutils-r1_src_prepare + fi + + # Remove bad tests. + rm "${S}"/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 "${S}"/daemon/tests || die + + distutils-r1_src_test +} + +src_install() { + linux-mod-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 + # Python libraries/scripts, "client" also requires USE="daemon" + distutils-r1_src_install + + # 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-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 +} -- cgit v1.2.3