diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/razertool | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/razertool')
-rw-r--r-- | app-misc/razertool/Manifest | 3 | ||||
-rw-r--r-- | app-misc/razertool/metadata.xml | 16 | ||||
-rw-r--r-- | app-misc/razertool/razertool-0.0.7-r4.ebuild | 67 |
3 files changed, 86 insertions, 0 deletions
diff --git a/app-misc/razertool/Manifest b/app-misc/razertool/Manifest new file mode 100644 index 000000000000..f0a55d4ee910 --- /dev/null +++ b/app-misc/razertool/Manifest @@ -0,0 +1,3 @@ +DIST razertool_0.0.7.orig.tar.gz 192274 BLAKE2B 415896f9f6ebaf653be9ede84985b13149f27d4471a8aa53089d138f4f7d58a10ade2aa5f46ec88951572bc7ca1c222db5f88b3df6b37e3ef2ad544a2a7ff28e SHA512 0221ec90b55f4459f5a772eb651e9807423d9e3c82ebd680ee835167bcebf2552e1d7767d294c5392b1fbc58558084e7022cb67f529c033eaff33b4fb3eb1017 +EBUILD razertool-0.0.7-r4.ebuild 1764 BLAKE2B 27c58b0eb22bbd4f3a07b8922a1e1c5b8bedabe5a02958cf92e936bf96339a2e360b013fbe74db245b41f4f97667bfcb0e218805f76ac6fbede1c9cba36f1e8d SHA512 1c772f0b27c03f49462def5082bcc4f11a23760efcf41dd74f53085f7b8fe98aa290950312b4794c595df58107147c61dcfa89559b91749ecbd92173dc8d53f4 +MISC metadata.xml 669 BLAKE2B 033318e57004d253f5cd774cbe6163ef84e800a04c75c9115dff3877857e36d5062a0ea898fdabb2bdc5edbb3c3c3682989f76168051ea1cc1091b54c9c38749 SHA512 e14e8d1b8af18a78314722909095c39d5db6edc0c87a0eb15cff01afeebf7739e6d8eb5b96089ca4a4138b207d8de7a95e6dea76954bf4026682f65659403b12 diff --git a/app-misc/razertool/metadata.xml b/app-misc/razertool/metadata.xml new file mode 100644 index 000000000000..314b4a229162 --- /dev/null +++ b/app-misc/razertool/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <maintainer type="person"> + <email>voyageur@gentoo.org</email> + <name>Bernard Cafarelli</name> + </maintainer> + <longdescription>RazerTool is an unofficial tool for controlling Razer Copperhead(TM) mice in *nix. It has both command-line and gtk+-2.x versions. Allows to switch and alter profiles, upgrade firmware, ...</longdescription> + <upstream> + <remote-id type="sourceforge">razertool</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-misc/razertool/razertool-0.0.7-r4.ebuild b/app-misc/razertool/razertool-0.0.7-r4.ebuild new file mode 100644 index 000000000000..916571dbd9e0 --- /dev/null +++ b/app-misc/razertool/razertool-0.0.7-r4.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="Unofficial tool for controlling the Razer Copperhead mouse" +HOMEPAGE="http://razertool.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gtk" + +RDEPEND="virtual/libusb:0 + gtk? ( + dev-libs/atk + dev-libs/glib:2 + >=gnome-base/librsvg-2.0 + >=x11-libs/cairo-1.0.0 + x11-libs/gdk-pixbuf + >=x11-libs/gtk+-2.8.0:2 + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( AUTHORS ChangeLog NEWS README ) + +src_prepare() { + default + + sed -i razertool.rules.example \ + -e 's:ACTION=="add", ::;s:BUS=:SUBSYSTEMS=:;s:SYSFS{:ATTRS{:g' \ + || die "sed razertool.rules.example action failed" + + # plugdev group may not exist (created by hal), default to usb + sed -i razertool.rules.example \ + -e 's:plugdev:usb:' \ + || die "sed razertool.rules.example plugdev failed" +} + +src_configure() { + econf $(use_enable gtk) +} + +src_install() { + default + + insinto /lib/udev/rules.d + newins razertool.rules.example 90-razertool.rules + + # Icon and desktop entry + dosym ../razertool/pixmaps/razertool-icon.png /usr/share/pixmaps/razertool-icon.png + make_desktop_entry "razertool-gtk" "RazerTool" ${PN}-icon "GTK;Settings;HardwareSettings" +} + +pkg_postinst() { + elog "Razer Copperhead mice need firmware version 6.20 or higher" + elog "to work properly. Running ${PN} on mice with older firmwares" + elog "might lead to random USB-disconnects." + elog "To run as non-root, add yourself to the usb group:" + elog " gpasswd -a <user> usb" + elog "or adapt permissions/owner/group in:" + elog " /etc/udev/rules.d/90-razertool.rules" + elog "Then unplug and plug in the mouse." +} |