summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaarp <main.haarp@gmail.com>2015-09-07 22:20:27 +0200
committerhaarp <main.haarp@gmail.com>2015-09-07 22:20:27 +0200
commit620bc363c01d597e6eb2ecb92de790be4e8e73bb (patch)
tree58f7d94a81532d6ea8a12587d43e2a5ce706abf6 /app-misc
parentDon't need the warning anymore (diff)
downloadhaarp-620bc363c01d597e6eb2ecb92de790be4e8e73bb.tar.gz
haarp-620bc363c01d597e6eb2ecb92de790be4e8e73bb.tar.bz2
haarp-620bc363c01d597e6eb2ecb92de790be4e8e73bb.zip
Add live ebuild for Solaar, however much good that'll do tho
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/solaar/Manifest2
-rw-r--r--app-misc/solaar/metadata.xml10
-rw-r--r--app-misc/solaar/solaar-9999.ebuild57
3 files changed, 69 insertions, 0 deletions
diff --git a/app-misc/solaar/Manifest b/app-misc/solaar/Manifest
new file mode 100644
index 0000000..e549bb0
--- /dev/null
+++ b/app-misc/solaar/Manifest
@@ -0,0 +1,2 @@
+EBUILD solaar-9999.ebuild 1306 SHA256 596bba4d853ca29db9df86bff47d9da10bafbe5f1fd5996b3175a0dc1642d3bd SHA512 f263a9844c2837172a6f03722b0896afb353de7fa13a06615ba19f0214c3e5e554d0c81b5f7b5046709e90dace00cd0bab0d3e640deb6a53b883f3ab7b3bf8da WHIRLPOOL 50e65aadbf1a5941a358f9884a2a247364f2a430864327549a284207aed948902cc7896d9fa8b88ecada000a0a26a67f825b6b6874400bab53802101de0d1b98
+MISC metadata.xml 297 SHA256 8b4ea0e43d2f8ba501e0371ab53dfecece123d2fa7caa7def7b887b54d45538f SHA512 c768416f930b9db4f40c4bba5e88fb745adb006023433a5330dfb26bbe0067514c51fe999a9e1f506b3138bb3b2c43129808f112855d85a57b7d3beb868e3a51 WHIRLPOOL 86e9d17c41d25ae4cce61cfbdb733f83d3e9e2cbac2a6bfd72e442cf085cf3fe653c47019220f1a0ee77f9304b7caefa028307151758e9ee52786e2804c3923f
diff --git a/app-misc/solaar/metadata.xml b/app-misc/solaar/metadata.xml
new file mode 100644
index 0000000..6d5e710
--- /dev/null
+++ b/app-misc/solaar/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">pwr/Solaar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/solaar/solaar-9999.ebuild b/app-misc/solaar/solaar-9999.ebuild
new file mode 100644
index 0000000..2b55dab
--- /dev/null
+++ b/app-misc/solaar/solaar-9999.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+inherit distutils-r1 udev user linux-info gnome2-utils git-r3
+
+DESCRIPTION="A Linux device manager for Logitech's Unifying Receiver peripherals"
+HOMEPAGE="https://pwr.github.com/Solaar/"
+EGIT_REPO_URI="https://github.com/pwr/Solaar.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc"
+
+RDEPEND=">=dev-python/pyudev-0.13[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ x11-libs/gtk+:3[introspection]"
+
+CONFIG_CHECK="~HID_LOGITECH_DJ ~HIDRAW"
+
+python_prepare_all() {
+ # don't autostart (bug #494608)
+ sed -i '/yield autostart_path/d' setup.py || die
+
+ # grant plugdev group rw access
+ sed -i 's/#MODE=/MODE=/' rules.d/42-logitech-unify-permissions.rules || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ udev_dorules rules.d/*.rules
+
+ dodoc docs/devices.md
+ if use doc; then
+ dodoc -r docs/*
+ fi
+}
+
+pkg_postinst() {
+ enewgroup plugdev
+
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then
+ elog "Users must be in the plugdev group to use this application."
+ fi
+
+ gnome2_icon_cache_update
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postrm() { gnome2_icon_cache_update; }