summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2008-08-27 08:44:28 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2008-08-27 08:44:28 +0000
commite5de66145076db8aace4539c8afba4ca3546c1db (patch)
tree8775fab8833e3981ab55648164ae9349c7b15612 /app-misc/razertool
parentUse elisp-compile instead of elisp-comp, bug 235442. (diff)
downloadgentoo-2-e5de66145076db8aace4539c8afba4ca3546c1db.tar.gz
gentoo-2-e5de66145076db8aace4539c8afba4ca3546c1db.tar.bz2
gentoo-2-e5de66145076db8aace4539c8afba4ca3546c1db.zip
Initial commit, closes bug #144982
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo x86_64)
Diffstat (limited to 'app-misc/razertool')
-rw-r--r--app-misc/razertool/ChangeLog11
-rw-r--r--app-misc/razertool/Manifest4
-rw-r--r--app-misc/razertool/metadata.xml10
-rw-r--r--app-misc/razertool/razertool-0.0.7.ebuild63
4 files changed, 88 insertions, 0 deletions
diff --git a/app-misc/razertool/ChangeLog b/app-misc/razertool/ChangeLog
new file mode 100644
index 000000000000..160eed040f0f
--- /dev/null
+++ b/app-misc/razertool/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-misc/razertool
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/razertool/ChangeLog,v 1.1 2008/08/27 08:44:28 voyageur Exp $
+
+*razertool-0.0.7 (27 Aug 2008)
+
+ 27 Aug 2008; Bernard Cafarelli <voyageur@gentoo.org> +metadata.xml,
+ +razertool-0.0.7.ebuild:
+ Initial commit, thanks Paul Bredbury <brebs@sent.com> for the ebuild.
+ Closes bug #144982
+
diff --git a/app-misc/razertool/Manifest b/app-misc/razertool/Manifest
new file mode 100644
index 000000000000..751df8dd539f
--- /dev/null
+++ b/app-misc/razertool/Manifest
@@ -0,0 +1,4 @@
+DIST razertool_0.0.7.orig.tar.gz 192274 RMD160 21c0671ee2cd44deb13bcddce6c0abe508687d3a SHA1 f040d5853a885a932a5dbf3fa20cc87fcb5cbfeb SHA256 fd7026f6082b90306de3536f9395ae9407c282f2d60a32fd5406e358f48b977d
+EBUILD razertool-0.0.7.ebuild 1505 RMD160 145ee223f2198ce3df9ddcf25f7248b008a35283 SHA1 43e75e5377c80c38744c2fcf6d467d7103fa7eea SHA256 9ac9e7dcbb13f27a446d50f923b8c6cfae409b62701eb88726eafb1f868c59dd
+MISC ChangeLog 342 RMD160 8ca6b93f4ee13baf3db5d455e4cd7c0d8af859a8 SHA1 841b1969cec2257939387c0db06734a25db1fd49 SHA256 c4b8313ca2f33c1876a068f6d7aaa22e0a16f0419429ce41df9963e15b398ff0
+MISC metadata.xml 486 RMD160 81b41cb8fcbd25fb257f2f7f62d012fa7e25e0a2 SHA1 5cfd63df4935ee63c2fda8772e7519911c2c217f SHA256 552e81606cc7104b76d68c7cccac6f9295ad3aa33696f27d059d1f37f734f78b
diff --git a/app-misc/razertool/metadata.xml b/app-misc/razertool/metadata.xml
new file mode 100644
index 000000000000..6bd4e71a45d9
--- /dev/null
+++ b/app-misc/razertool/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <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>
+</pkgmetadata>
diff --git a/app-misc/razertool/razertool-0.0.7.ebuild b/app-misc/razertool/razertool-0.0.7.ebuild
new file mode 100644
index 000000000000..7551dfbd3367
--- /dev/null
+++ b/app-misc/razertool/razertool-0.0.7.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/razertool/razertool-0.0.7.ebuild,v 1.1 2008/08/27 08:44:28 voyageur Exp $
+
+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 hal"
+
+DEPEND=">=dev-libs/libusb-0.1.12
+ hal? ( >=sys-apps/hal-0.5.7 )
+ gtk? (
+ >=gnome-base/librsvg-2.0
+ >=x11-libs/cairo-1.0.0
+ >=x11-libs/gtk+-2.8.0 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i razertool.rules.example \
+ -e 's:ACTION=="add", ::' \
+ || die "sed razertool.rules.example action failed"
+
+ if ! use hal ; then
+ # plugdev group might not exist (created by hal)
+ sed -i razertool.rules.example \
+ -e 's:plugdev:root:' \
+ || die "sed razertool.rules.example plugdev failed"
+ fi
+}
+
+src_compile() {
+ econf $(use_enable gtk) || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ insinto /etc/udev/rules.d
+ newins razertool.rules.example 90-razertool.rules \
+ || die "newins failed"
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
+
+pkg_postinst() {
+ if use hal ; then
+ elog "To run as non-root, add yourself to the plugdev group:"
+ elog " gpasswd -a <user> plugdev"
+ else
+ elog "To run as non-root, adapt permissions/owner/group in:"
+ elog " /etc/udev/rules.d/90-razertool.rules"
+ fi
+ elog "Then unplug and plug in the mouse."
+}