diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-apps/razercfg | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-apps/razercfg')
-rw-r--r-- | sys-apps/razercfg/Manifest | 8 | ||||
-rw-r--r-- | sys-apps/razercfg/files/razerd.init.d | 26 | ||||
-rw-r--r-- | sys-apps/razercfg/files/razerd.init.d-r1 | 26 | ||||
-rw-r--r-- | sys-apps/razercfg/files/razerd.init.d-r2 | 26 | ||||
-rw-r--r-- | sys-apps/razercfg/metadata.xml | 22 | ||||
-rw-r--r-- | sys-apps/razercfg/razercfg-0.23.ebuild | 56 | ||||
-rw-r--r-- | sys-apps/razercfg/razercfg-0.24.ebuild | 62 | ||||
-rw-r--r-- | sys-apps/razercfg/razercfg-0.25.ebuild | 56 | ||||
-rw-r--r-- | sys-apps/razercfg/razercfg-0.26.ebuild | 71 | ||||
-rw-r--r-- | sys-apps/razercfg/razercfg-0.29.ebuild | 72 | ||||
-rw-r--r-- | sys-apps/razercfg/razercfg-0.30.ebuild | 74 | ||||
-rw-r--r-- | sys-apps/razercfg/razercfg-0.31.ebuild | 74 | ||||
-rw-r--r-- | sys-apps/razercfg/razercfg-0.32.ebuild | 74 |
13 files changed, 647 insertions, 0 deletions
diff --git a/sys-apps/razercfg/Manifest b/sys-apps/razercfg/Manifest new file mode 100644 index 000000000000..e95bed526192 --- /dev/null +++ b/sys-apps/razercfg/Manifest @@ -0,0 +1,8 @@ +DIST razercfg-0.23.tar.bz2 69425 SHA256 44bdc48588c504a937d811e84a0ecb054e35d3e2e4980d7d76b3ea8c2f0d1b43 SHA512 79c795870efa960b42abc70710b4bebe793acb9e732943207ca4b34d35ba926af4877993db888829dbacedbe327324fba0ab2ef82ced1d653b4aee23e154fd8b WHIRLPOOL 11c57842daeb241d19b3546db0c4b3a98e59b565176f89227dd159f31b3037ce08130014dc35ae4db5dc81744a94a405252787b6a42c67129857f81f6eb0411c +DIST razercfg-0.24.tar.bz2 69302 SHA256 dd47e370a440c485e888a1f66bec467fffb2833db8ea433d102c5c12f914cccf SHA512 a86614d1ac1ab5cf329bea36c9b7d974d4de9d7014bccbd55cf45a7b2c72b312ce6d74680127af97413344c77148b9b51614949bcb8e483b18dbbf4f5d5a7cf9 WHIRLPOOL 2e4c277083aea3cfb9ca64a88874e57329d8f924f4b664575d3678e1123e424d4d462920d042e8b2c20c7fc305060979b8e7e4eb89fc0e026ba45c1e9699ab4a +DIST razercfg-0.25.tar.bz2 69489 SHA256 a826d9793ad5be5048a227f4c23c168e554cbb939e67584dd5e5a4f63a4829f9 SHA512 70b5252563567faa10a7b3b5cd2a93e89d0a77511f6335a1888dd3cc999b88c1328b0a03bd4b2c990abae5aff0b63de252cb4fd0e5a9afde1c7ca375a33f7203 WHIRLPOOL 3e8b577efbaf3c28baec528a226f4b3ab631de795207c277b81fced841dec3aaaed3882b3efabbbca7997f8b2b6eedb749950ab159c7b2f0f00a5cd71d4a1feb +DIST razercfg-0.26.tar.bz2 70843 SHA256 79c8f9d39033ef65bd1b33086c08a05026ba07ee04c5445b41a4981c070cadf8 SHA512 6e6c60f31ceaf6189c6dfd0b90d9dab4a262dcc184429f7bbf2a8e1f54e3c1a012615d676312acc964a0f7942a47f8479985a3677f656afa12903c54d6aee056 WHIRLPOOL 3ba9fdfaea4533f312d2d281b4425ca66691e184dbd5769fa141b468febf6f5dba1016f77b076ab74a5ff934ad866204483b0570bb9f8d76dddd588ea43d9608 +DIST razercfg-0.29.tar.bz2 71786 SHA256 b737b4335808cb36b95019678554adea278f9295c5b53e958424c82fce529fbf SHA512 04d64023955dc08cf9b33c02542b596eb18372be3b259591ff59de85510846bca919c370180c3e997632e78785cdf42aa4d2cbeab0bceb09ab694d0b4e84362f WHIRLPOOL 2afe6e15e8b91771548ae94a51b511a901a68b1a31d9a4e840cfc5d4120226dc785a7c7d64e154a1a2c0070fa118736ad72ad49d5497e8f386fce633e6da2a46 +DIST razercfg-0.30.tar.bz2 71779 SHA256 bfc4dc858be5627833aa1ae1cdbbf1a85b77afaed5d61113de4bd6e8797ca527 SHA512 090e8efcccc65d6c94fe23033046148669cd089c23287dbe4c7d9eaf655f1ee7c8a2e6a5bc118af0088bced1674a45f12af46331796768790367a38ed24a1590 WHIRLPOOL e41e063fdd8da1bf78fe97af6f4d4fffefb068c81a2dd5219e9f488e498b166dacbd1fa358826e90e0a996005d01223ae0475a28b434cab0d760c0c0d277f8b1 +DIST razercfg-0.31.tar.bz2 77741 SHA256 f43b7de119e4e9333c17aacfd800e30598e7958c11ad82fddcaf9bda5c1dc3f6 SHA512 8173631f3b2dcc0e2da94aa9b1e6e86c4c296a7e8faf5e534dbbbd47a57e80f0af258143644fc498c9beb0c088b7ecf61e7af0e27e2b6760af009f58a639a0bb WHIRLPOOL 6f7d0bbefbb4284d4e35ef753ebfa93b8c08eb277930cc86af7776ea1147d97ee23c53a75bb55958b2050290548aa975ab4e9f457b03ff95d602474ad7bfdd22 +DIST razercfg-0.32.tar.bz2 77778 SHA256 753c9b8cc60e3b5481d65d168d0d0f2737e83e2dacbbeb2684517a096064e2e1 SHA512 696baf66eec5d241918a073bd381018cb60bbccaa95e5889059e2b5f6ccc03270e1d414d947358d672cfa4a5a01a9e36e5f92d706807d6a7c2c3f8e2797d38f7 WHIRLPOOL 7761f88671cfde24ca9a705df658118bf5b69244c1fae8bf358601159203dcbd2f7774552c3fb794268e0031c4a4092c5848d6f324fb029b03551c49ba161f0a diff --git a/sys-apps/razercfg/files/razerd.init.d b/sys-apps/razercfg/files/razerd.init.d new file mode 100644 index 000000000000..86847b24468a --- /dev/null +++ b/sys-apps/razercfg/files/razerd.init.d @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use logger +} + +PIDFILE=/var/run/razerd/razerd.pid + +start() { + ebegin "Starting razerd" + start-stop-daemon --start \ + --pidfile ${PIDFILE} \ + --exec /usr/sbin/razerd \ + -- --background --pidfile ${PIDFILE} + eend $? +} + +stop() { + ebegin "Stopping razerd" + start-stop-daemon --stop --pidfile ${PIDFILE} + eend $? +} + diff --git a/sys-apps/razercfg/files/razerd.init.d-r1 b/sys-apps/razercfg/files/razerd.init.d-r1 new file mode 100644 index 000000000000..8c3c8f4d3816 --- /dev/null +++ b/sys-apps/razercfg/files/razerd.init.d-r1 @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use logger +} + +PIDFILE=/run/razerd/razerd.pid + +start() { + ebegin "Starting razerd" + start-stop-daemon --start \ + --pidfile ${PIDFILE} \ + --exec /usr/sbin/razerd \ + -- --background --pidfile ${PIDFILE} + eend $? +} + +stop() { + ebegin "Stopping razerd" + start-stop-daemon --stop --pidfile ${PIDFILE} + eend $? +} + diff --git a/sys-apps/razercfg/files/razerd.init.d-r2 b/sys-apps/razercfg/files/razerd.init.d-r2 new file mode 100644 index 000000000000..4fab076cd206 --- /dev/null +++ b/sys-apps/razercfg/files/razerd.init.d-r2 @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use logger +} + +PIDFILE=/run/razerd/razerd.pid + +start() { + ebegin "Starting razerd" + start-stop-daemon --start \ + --pidfile ${PIDFILE} \ + --exec /usr/bin/razerd \ + -- --background --pidfile ${PIDFILE} + eend $? +} + +stop() { + ebegin "Stopping razerd" + start-stop-daemon --stop --pidfile ${PIDFILE} + eend $? +} + diff --git a/sys-apps/razercfg/metadata.xml b/sys-apps/razercfg/metadata.xml new file mode 100644 index 000000000000..98006eca5a09 --- /dev/null +++ b/sys-apps/razercfg/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>joker@gentoo.org</email> +<name>Christian Birchinger</name> +</maintainer> +<longdescription> +Utility to for advanced configuration of the following Razer mice: Copperhead +Lachesis (Classic), DeathAdder (Classic, 3500 DPI, Black Edition, 2013), Taipan +Naga (Classic, 2012, 2014, Hex), Krait, Boomslang CE. The tool architecture is +based on "razerd", which is a background daemon doing all of the lowlevel +privilege hardware accesses. The user interface tools are "razercfg", a +commandline tool; and "qrazercfg", a QT4 based graphical device configuration +tool. +</longdescription> +<use> + <flag name='pm-utils'>Installs the pm-utils hooks for suspend/resume and + requires <pkg>sys-power/pm-utils</pkg></flag> + <flag name='qt4'>Installs a qt UI. Requires <pkg>dev-python/pyside</pkg></flag> +</use> +</pkgmetadata> diff --git a/sys-apps/razercfg/razercfg-0.23.ebuild b/sys-apps/razercfg/razercfg-0.23.ebuild new file mode 100644 index 000000000000..06f6fb907e1a --- /dev/null +++ b/sys-apps/razercfg/razercfg-0.23.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils multilib eutils udev python-single-r1 + +DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)" + +HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html" +SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 x86" +IUSE="+pm-utils qt4" + +RDEPEND="${DEPEND} + pm-utils? ( sys-power/pm-utils ) + qt4? ( dev-python/PyQt4 )" + +DEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e '/ldconfig/{N;d}' \ + -e '/udevadm control/{N;d}' \ + -e "s:/etc/udev/rules.d/:$(get_udevdir)/rules.d/:" \ + -e 's:01-razer-udev.rules:40-razercfg.rules:' \ + -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \ + -e 's:50-razer:80razer:' \ + librazer/CMakeLists.txt \ + || die "sed failed" +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/razerd.init.d-r1 razerd + dodoc README razer.conf + + if ! use qt4; then + rm "${D}"/usr/bin/qrazercfg + else + make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings" + fi + + use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer + + python_fix_shebang "${ED}"usr/bin +} + +pkg_postinst() { + udevadm control --reload-rules && udevadm trigger --subsystem-match=usb +} diff --git a/sys-apps/razercfg/razercfg-0.24.ebuild b/sys-apps/razercfg/razercfg-0.24.ebuild new file mode 100644 index 000000000000..f039583bba15 --- /dev/null +++ b/sys-apps/razercfg/razercfg-0.24.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils multilib eutils udev python-single-r1 + +DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)" + +HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html" +SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+pm-utils qt4" + +RDEPEND="${DEPEND} + pm-utils? ( sys-power/pm-utils ) + qt4? ( dev-python/PyQt4 )" + +DEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e '/ldconfig/{N;d}' \ + -e '/udevadm control/{N;d}' \ + -e "s:/etc/udev/rules.d/:$(get_udevdir)/rules.d/:" \ + -e 's:01-razer-udev.rules:40-razercfg.rules:' \ + -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \ + -e 's:50-razer:80razer:' \ + librazer/CMakeLists.txt \ + || die "sed failed" + + # Fixed in upstream git 106edc5dbe4dff2825f6126528afc2268d92158e + sed -i \ + -e 's:$$INSTDIR$$/bin/:$$INSTDIR$$/sbin/:' \ + razerd.service.template \ + || die "sed failed" +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/razerd.init.d-r1 razerd + dodoc README razer.conf + + if ! use qt4; then + rm "${D}"/usr/bin/qrazercfg + else + make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings" + fi + + use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer + + python_fix_shebang "${ED}"usr/bin +} + +pkg_postinst() { + udevadm control --reload-rules && udevadm trigger --subsystem-match=usb +} diff --git a/sys-apps/razercfg/razercfg-0.25.ebuild b/sys-apps/razercfg/razercfg-0.25.ebuild new file mode 100644 index 000000000000..1ea43b15813a --- /dev/null +++ b/sys-apps/razercfg/razercfg-0.25.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils multilib eutils udev python-single-r1 + +DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)" + +HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html" +SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+pm-utils qt4" + +RDEPEND="${DEPEND} + pm-utils? ( sys-power/pm-utils ) + qt4? ( dev-python/PyQt4 )" + +DEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e '/ldconfig/{N;d}' \ + -e '/udevadm control/{N;d}' \ + -e "s:/etc/udev/rules.d/:$(get_udevdir)/rules.d/:" \ + -e 's:01-razer-udev.rules:40-razercfg.rules:' \ + -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \ + -e 's:50-razer:80razer:' \ + librazer/CMakeLists.txt \ + || die "sed failed" +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/razerd.init.d-r1 razerd + dodoc README razer.conf + + if ! use qt4; then + rm "${D}"/usr/bin/qrazercfg + else + make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings" + fi + + use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer + + python_fix_shebang "${ED}"usr/bin +} + +pkg_postinst() { + udevadm control --reload-rules && udevadm trigger --subsystem-match=usb +} diff --git a/sys-apps/razercfg/razercfg-0.26.ebuild b/sys-apps/razercfg/razercfg-0.26.ebuild new file mode 100644 index 000000000000..34e55b73d8e7 --- /dev/null +++ b/sys-apps/razercfg/razercfg-0.26.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python3_3 ) + +inherit cmake-utils multilib eutils udev python-single-r1 + +DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)" + +HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html" +SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+pm-utils qt4" + +RDEPEND="qt4? ( >=dev-python/pyside-1.2.1[${PYTHON_USEDEP}] ) + pm-utils? ( sys-power/pm-utils )" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +src_prepare() { + sed -i \ + -e '/udevadm control/{N;d}' \ + -e '/systemctl/{N;d}' \ + -e "s:/etc/udev/rules.d/:$(get_udevdir)/rules.d/:" \ + -e 's:01-razer-udev.rules:40-razercfg.rules:' \ + -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \ + -e 's:50-razer:80razer:' \ + CMakeLists.txt \ + || die "sed failed" + + sed -i \ + -e '/ldconfig/{N;d}' \ + -e "s:DESTINATION lib:DESTINATION $(get_libdir):" \ + librazer/CMakeLists.txt \ + || die "sed failed" +} + +src_configure() { + mycmakeargs="${mycmakeargs} -DPYTHON='${PYTHON}'" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/razerd.init.d-r2 razerd + dodoc README razer.conf + + if ! use qt4; then + rm "${D}"/usr/bin/qrazercfg + else + make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings" + fi + + use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer +} + +pkg_postinst() { + udevadm control --reload-rules && udevadm trigger --subsystem-match=usb + + if [[ -e "${ROOT}"usr/bin/pyrazer.pyc ]]; then + echo + eerror "A stale ${ROOT}usr/bin/pyrazer.pyc exists and will prevent" + eerror "the Python frontends from working until removed manually." + echo + fi +} diff --git a/sys-apps/razercfg/razercfg-0.29.ebuild b/sys-apps/razercfg/razercfg-0.29.ebuild new file mode 100644 index 000000000000..1b5466b59036 --- /dev/null +++ b/sys-apps/razercfg/razercfg-0.29.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python3_3 ) + +inherit cmake-utils multilib eutils udev python-single-r1 + +DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)" + +HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html" +SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+pm-utils qt4 systemd +udev" + +RDEPEND="qt4? ( >=dev-python/pyside-1.2.1[${PYTHON_USEDEP}] ) + systemd? ( sys-apps/systemd ) + udev? ( virtual/udev ) + pm-utils? ( sys-power/pm-utils )" + +DEPEND="virtual/pkgconfig + dev-python/setuptools[${PYTHON_USEDEP}]" + +src_prepare() { + sed -i \ + -e '/udevadm control/{N;d}' \ + -e '/systemctl/{N;d}' \ + -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \ + -e 's:50-razer:80razer:' \ + CMakeLists.txt \ + || die "sed failed" + + sed -i \ + -e '/ldconfig/{N;d}' \ + -e "s:DESTINATION lib:DESTINATION $(get_libdir):" \ + librazer/CMakeLists.txt \ + || die "sed failed" +} + +src_configure() { + mycmakeargs="${mycmakeargs} -DPYTHON='${PYTHON}'" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/razerd.init.d-r2 razerd + dodoc README razer.conf + + if ! use qt4; then + rm "${D}"/usr/bin/qrazercfg + else + make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings" + fi + + use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer +} + +pkg_postinst() { + use udev && udevadm control --reload-rules && udevadm trigger --subsystem-match=usb + + if [[ -e "${ROOT}"usr/bin/pyrazer.pyc ]]; then + echo + eerror "A stale ${ROOT}usr/bin/pyrazer.pyc exists and will prevent" + eerror "the Python frontends from working until removed manually." + echo + fi +} diff --git a/sys-apps/razercfg/razercfg-0.30.ebuild b/sys-apps/razercfg/razercfg-0.30.ebuild new file mode 100644 index 000000000000..876c8ba0757d --- /dev/null +++ b/sys-apps/razercfg/razercfg-0.30.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{3_3,3_4} ) + +inherit cmake-utils multilib eutils udev python-single-r1 + +DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)" + +HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html" +SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+pm-utils qt4 systemd +udev" + +RDEPEND="qt4? ( >=dev-python/pyside-1.2.1[${PYTHON_USEDEP}] ) + systemd? ( sys-apps/systemd ) + udev? ( virtual/udev ) + pm-utils? ( sys-power/pm-utils ) + virtual/libusb:1" + +DEPEND="virtual/pkgconfig + dev-python/setuptools[${PYTHON_USEDEP}] + virtual/libusb:1" + +src_prepare() { + sed -i \ + -e '/udevadm control/{N;d}' \ + -e '/systemctl/{N;d}' \ + -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \ + -e 's:50-razer:80razer:' \ + CMakeLists.txt \ + || die "sed failed" + + sed -i \ + -e '/ldconfig/{N;d}' \ + -e "s:DESTINATION lib:DESTINATION $(get_libdir):" \ + librazer/CMakeLists.txt \ + || die "sed failed" +} + +src_configure() { + mycmakeargs="${mycmakeargs} -DPYTHON='${PYTHON}'" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/razerd.init.d-r2 razerd + dodoc README razer.conf + + if ! use qt4; then + rm "${D}"/usr/bin/qrazercfg + else + make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings" + fi + + use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer +} + +pkg_postinst() { + use udev && udevadm control --reload-rules && udevadm trigger --subsystem-match=usb + + if [[ -e "${ROOT}"usr/bin/pyrazer.pyc ]]; then + echo + eerror "A stale ${ROOT}usr/bin/pyrazer.pyc exists and will prevent" + eerror "the Python frontends from working until removed manually." + echo + fi +} diff --git a/sys-apps/razercfg/razercfg-0.31.ebuild b/sys-apps/razercfg/razercfg-0.31.ebuild new file mode 100644 index 000000000000..876c8ba0757d --- /dev/null +++ b/sys-apps/razercfg/razercfg-0.31.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{3_3,3_4} ) + +inherit cmake-utils multilib eutils udev python-single-r1 + +DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)" + +HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html" +SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+pm-utils qt4 systemd +udev" + +RDEPEND="qt4? ( >=dev-python/pyside-1.2.1[${PYTHON_USEDEP}] ) + systemd? ( sys-apps/systemd ) + udev? ( virtual/udev ) + pm-utils? ( sys-power/pm-utils ) + virtual/libusb:1" + +DEPEND="virtual/pkgconfig + dev-python/setuptools[${PYTHON_USEDEP}] + virtual/libusb:1" + +src_prepare() { + sed -i \ + -e '/udevadm control/{N;d}' \ + -e '/systemctl/{N;d}' \ + -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \ + -e 's:50-razer:80razer:' \ + CMakeLists.txt \ + || die "sed failed" + + sed -i \ + -e '/ldconfig/{N;d}' \ + -e "s:DESTINATION lib:DESTINATION $(get_libdir):" \ + librazer/CMakeLists.txt \ + || die "sed failed" +} + +src_configure() { + mycmakeargs="${mycmakeargs} -DPYTHON='${PYTHON}'" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/razerd.init.d-r2 razerd + dodoc README razer.conf + + if ! use qt4; then + rm "${D}"/usr/bin/qrazercfg + else + make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings" + fi + + use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer +} + +pkg_postinst() { + use udev && udevadm control --reload-rules && udevadm trigger --subsystem-match=usb + + if [[ -e "${ROOT}"usr/bin/pyrazer.pyc ]]; then + echo + eerror "A stale ${ROOT}usr/bin/pyrazer.pyc exists and will prevent" + eerror "the Python frontends from working until removed manually." + echo + fi +} diff --git a/sys-apps/razercfg/razercfg-0.32.ebuild b/sys-apps/razercfg/razercfg-0.32.ebuild new file mode 100644 index 000000000000..876c8ba0757d --- /dev/null +++ b/sys-apps/razercfg/razercfg-0.32.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{3_3,3_4} ) + +inherit cmake-utils multilib eutils udev python-single-r1 + +DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)" + +HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html" +SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+pm-utils qt4 systemd +udev" + +RDEPEND="qt4? ( >=dev-python/pyside-1.2.1[${PYTHON_USEDEP}] ) + systemd? ( sys-apps/systemd ) + udev? ( virtual/udev ) + pm-utils? ( sys-power/pm-utils ) + virtual/libusb:1" + +DEPEND="virtual/pkgconfig + dev-python/setuptools[${PYTHON_USEDEP}] + virtual/libusb:1" + +src_prepare() { + sed -i \ + -e '/udevadm control/{N;d}' \ + -e '/systemctl/{N;d}' \ + -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \ + -e 's:50-razer:80razer:' \ + CMakeLists.txt \ + || die "sed failed" + + sed -i \ + -e '/ldconfig/{N;d}' \ + -e "s:DESTINATION lib:DESTINATION $(get_libdir):" \ + librazer/CMakeLists.txt \ + || die "sed failed" +} + +src_configure() { + mycmakeargs="${mycmakeargs} -DPYTHON='${PYTHON}'" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}"/razerd.init.d-r2 razerd + dodoc README razer.conf + + if ! use qt4; then + rm "${D}"/usr/bin/qrazercfg + else + make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings" + fi + + use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer +} + +pkg_postinst() { + use udev && udevadm control --reload-rules && udevadm trigger --subsystem-match=usb + + if [[ -e "${ROOT}"usr/bin/pyrazer.pyc ]]; then + echo + eerror "A stale ${ROOT}usr/bin/pyrazer.pyc exists and will prevent" + eerror "the Python frontends from working until removed manually." + echo + fi +} |