summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Birchinger <joker@gentoo.org>2014-06-20 13:43:14 +0000
committerChristian Birchinger <joker@gentoo.org>2014-06-20 13:43:14 +0000
commita57af87fe0266ac8d748e6d01f17edae0ce41956 (patch)
tree7726553d01b3a7e85ecbb11762630ca5b6152e0b /sys-apps/razercfg
parentfix build wrt #513902 (diff)
downloadhistorical-a57af87fe0266ac8d748e6d01f17edae0ce41956.tar.gz
historical-a57af87fe0266ac8d748e6d01f17edae0ce41956.tar.bz2
historical-a57af87fe0266ac8d748e6d01f17edae0ce41956.zip
Version bump. Frontends switched to Python 3.x only.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0x0151863A67652900!
Diffstat (limited to 'sys-apps/razercfg')
-rw-r--r--sys-apps/razercfg/ChangeLog8
-rw-r--r--sys-apps/razercfg/Manifest35
-rw-r--r--sys-apps/razercfg/files/razerd.init.d-r226
-rw-r--r--sys-apps/razercfg/metadata.xml14
-rw-r--r--sys-apps/razercfg/razercfg-0.26.ebuild74
5 files changed, 134 insertions, 23 deletions
diff --git a/sys-apps/razercfg/ChangeLog b/sys-apps/razercfg/ChangeLog
index 72ef265a105c..fe4a903cb71f 100644
--- a/sys-apps/razercfg/ChangeLog
+++ b/sys-apps/razercfg/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/razercfg
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/razercfg/ChangeLog,v 1.24 2014/04/20 15:19:55 joker Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/razercfg/ChangeLog,v 1.25 2014/06/20 13:43:08 joker Exp $
+
+*razercfg-0.26 (20 Jun 2014)
+
+ 20 Jun 2014; Christian Birchinger <joker@gentoo.org> +razercfg-0.26.ebuild,
+ +files/razerd.init.d-r2, metadata.xml:
+ Version bump. Frontends switched to Python 3.x only
*razercfg-0.25 (20 Apr 2014)
diff --git a/sys-apps/razercfg/Manifest b/sys-apps/razercfg/Manifest
index 11a58451b819..52790e89cb14 100644
--- a/sys-apps/razercfg/Manifest
+++ b/sys-apps/razercfg/Manifest
@@ -3,6 +3,7 @@ Hash: SHA256
AUX razerd.init.d 562 SHA256 6abd13e57031ae4c826a9680832b6d648e768dea1c1a02b7f560041789f21d33 SHA512 9f569bba82fa7fcbef03c630fe039a53797f64a3107a51843f5b4cef0ed750a83b380a91351248caa301a9978aea98ca4819c8d2253af3c8a3ab592df93439de WHIRLPOOL 4c9253911281bd63250b0b60b570022d05163351c87df231d1e0f1438622b78aa5aa03d56856a6c830b05bfbc96e76db86a0ac988d7e3a125c49cef740ca8b7d
AUX razerd.init.d-r1 561 SHA256 6f795bd62c06d40b68c71155a732ad863c4e5fb178d20dd0c7b42e76e7292b71 SHA512 3c1083d3de4acaacad1dd2358f34271661440faf014a081642d97809111d4ed143eb032c977d6a5f8d488aea8dda81eecea20f70346f0a96726be894de3f5bce WHIRLPOOL 37e7335427f32fe6e94e54133505e3b672e317358a889180147adc4415561bcda18658bec18894c259b44dab38a6311ac3c6284240ee9aa40ab338528928d94d
+AUX razerd.init.d-r2 560 SHA256 b4717457537f14586efaeb2b4d5251cb5f0f069548b95ac0baddad54d1e385ff SHA512 10113cb64efebba54aac1315e6ed7484ac9320c71fe314dd4f4416334543c44b7a015b9921ddbff5813f19be1729d4c92d621d5078598e7dbc6fc22a841ad3db WHIRLPOOL 1f3aa879d1e62dc26847ca5fd34b064894ac6dfe3e99035a075a5c5f056d66c83cd6eba7421829d98a0b9984ae8f77165aa31036ea88bbc2577b631edf8e1405
DIST razercfg-0.19_p20121013.tar.gz 290951 SHA256 c0f7c8dac52ff6a2106c2cadac3ca9e44e3da508aeb182b907233c6b78f36581 SHA512 e49955ff0a635348a285a3ad6f8150bf468ed315f9c3eac332c9879daddd3911b915968a950b379106a27ecfd953ba6770152827b2b7b3185b17d3e3499bed40 WHIRLPOOL e6b525377be0581383e97ea9e202532cecb817985e5444876717b88fcb04f10744aa8e17415362a0daf7889160acebd5199f3b864094b1c8300fed0db91de356
DIST razercfg-0.20.tar.bz2 68289 SHA256 de2f2f038b085cb22a97968f2f12a4c776741af80e486fb494b756708556509b SHA512 cbd4b20bdbde207cf19cfae2d9179861ab2fa6660f0a11ac21982cf3548ef374292ef38b5fa1ecba9a79beb23c9d9b522080feb2c70bf5278120b071263ab991 WHIRLPOOL 04d867aac4281381a8f980f34b5f21e9c057055f4a7982f94928e162a41c318584a8418f6c2ecf9efcebe93d45b1dd1986520858414e0d5d2766c082e090b08a
DIST razercfg-0.21.tar.bz2 68274 SHA256 bfbd6089273fbec3f7495032b623f5c46bbf2e3f953130cb0f610e5c8eede884 SHA512 2514908547e5f7ffbf79231a66f6ac731ebc328944c9589cc7218a83e16f7aed5e741dceb06949222ec35254fb596490aa8bd2bad4682a362de09144e00df638 WHIRLPOOL ffcb3a5fe2b18a96998222714a0ab3ddb26f93e157a164922b2fdb9db06d273a071ee28e49d5d7cf2ab4447ffb9522b61b35c9ea31085cf54dfd1c48a9558975
@@ -10,6 +11,7 @@ DIST razercfg-0.22.tar.bz2 68137 SHA256 c587fec284fc3f564f94b4ffcd7f24a5103b9fe2
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
EBUILD razercfg-0.19_p20121013.ebuild 1559 SHA256 0e0048cd92227dbcb136d0157e1f308f24acf769f5a272cc03a7b19ccf72c96c SHA512 d3e8be35ef7e93aab401d38e2e42d307185d9f401237acfbb11eb0616254da2a92272fb15596fe8d716e9825da1d048cfeae83cf6bccfde3bff86321314f5884 WHIRLPOOL 8e7bb9205445eb7bfc348a7b7dbc008585f0b315019ef8ccf46e8e442b4b4009a54615a24546af26959bbdf45e29912b79a5c34cc176334e0aab16ef77344f80
EBUILD razercfg-0.20.ebuild 1396 SHA256 60426806ac58b8c46365877e6d21409e8cf938eaaf0038ec893679ec88f104f2 SHA512 9e21d54e7efccea4f206e7f9200c6c25471ee4a0a0f6cd336e2030975109aa93992d2a2fe6e71b8cc2f947d4d8dd69092dac866d369314fb7dcfc4c1654cd8df WHIRLPOOL a7233b8f2fa2442636ea99f0a23224d64933281e22c466848cafe5fb983b9304011cc8e53649acdc82e85a2e61f33a8c65086e2a9175af6114ceeb9e43ac2466
EBUILD razercfg-0.21.ebuild 1396 SHA256 6396fa020b1ad6026ecf0ea2ebe36cb2dbf4d9f60f3a6f66a09962b2264ab79f SHA512 b51a3442f0a299405dbf4fa77846911d9836c491ea9ec0f836c6d4d1ead9f10fa8640630d5d658333ffa081eec112274a9dc6fc6e7039088958b07059865ced9 WHIRLPOOL 528274624499d5a30ff8958a87ddfc7d20bea92e95c780118a19e5fffab178adc8783a915f9af974e74df72a7627361bedfbf94dd0e4f7a84eb81531132ff528
@@ -17,24 +19,25 @@ EBUILD razercfg-0.22-r1.ebuild 1473 SHA256 d895cf3a622b50284d5bfe143521b7d5862a5
EBUILD razercfg-0.23.ebuild 1470 SHA256 33be8f6ea18a273eda42aede01eb0cd7c8e148b74a2a18f41a49ea1c897f3a9d SHA512 0f8f1f4816ab59a1728607f9406a2a4297236c43df99723b13dece79d60229971bf51c9dee5008c620596a59a6f36e571be23efd6b538a9d1cd0fd048ce4e49c WHIRLPOOL de0819786acb5c0d3e7716b32f9eef6b77725bb53ec5b5bed8bf54e7aaf9588ba54712bbc46b40b7a60c92ea7b6e2547f34f27773e7a16240105c0aa9927bfca
EBUILD razercfg-0.24.ebuild 1644 SHA256 00616130392a030c1271c61d26e55c21bfed2ea6a8c2ecdaa2436aa72959cd32 SHA512 d58eaaba05c84d38d06f978b596028cb1b9b1874bb965e95c242865c812b6fd4f5a10ca39f17658cfa9707b5dea7365ced9f176de39a0d0d3b700422eec05b7d WHIRLPOOL 37b6314182e5ebb26798b6906d73068f0144fe67ad23d188db519ead87f5338dde107ed430f5ed3b666725d783a5f0cf7823b787d9086c5bb1f1e37f6f23df17
EBUILD razercfg-0.25.ebuild 1470 SHA256 608fc2f5d1ff136b3b4e10169915412d93b9a1aff1d841c15480592dc2a018c2 SHA512 5722f75b9ce9d4a9eeb287a2b99540044950fe8a0e247827349f1799eca993250d29f1a7f1f21b9e39facb3f0186946a1c97c73821418692e50483b04be092fc WHIRLPOOL a90a0ccfb1ccf12306216cc2edef66906568930a8efd05b5feabd30f4da3069e8c6609603722b7c4a6b7e27e470ca78aa79ecf649c1a6eaf36d5dbc59d1453aa
-MISC ChangeLog 3868 SHA256 eedc2c08b16125d69aad0be3240a073a07a01fce2b843ce0cb96fdec9d1301a8 SHA512 bceef7a03163f1d06f8504593df2ca19f4815503d40ef79cb7b7e70cb86328fb2ef9aab92a9020a3e8d5113729c672b0f89870080a1bf235a102cb834840f63c WHIRLPOOL 263e344526a6eaa2d47ed6c9ef444008e7c3abcc0464bac979cbada0146dc2e7dc51bb57b741a9053e9c54b2009e56fdd9028ec8a59ed4c3d1cc67616956bfcc
-MISC metadata.xml 904 SHA256 5b25d7c848021f7153a4556c316e694db1cbda8f31d628fa6cfbff738520d621 SHA512 f5d43e4b625958c0be9f31c847d7e4631bf1100cb26d0fa19ee5d4a8d43b1b0f0b8c72462562c3ea4bbb867a852aa8d81debc0b02fef3c7ace8f213439dcb585 WHIRLPOOL e50810579d9d78d25e8c8c78921c93f4dc566dbca3d527c3ede9b0829dea2c2f47a20a8a69622d1b049942fdee1b64840a0f6aed5b334e30cd56059c460464d2
+EBUILD razercfg-0.26.ebuild 2034 SHA256 2f25609f310350b0574d5fa39b0f11a59bcdf739d4a3a813e3ef26a1d53710c4 SHA512 c7dbac08edc1f3f3997d10962a98e5db7d1ab43baf6112d5352156731fd8be7a5ab26e1916bdba77a499738a54907e073110281bbd21a9b9a47dc9609a266c33 WHIRLPOOL b9ce5dbfb8d026901624c75a10c4cf329aea5a40f40e126ebf0c0609fe91c27ee411c4d2a05aa8b9fab25ec1395334991bdf482b369ce26f1543ce70d14ae9c5
+MISC ChangeLog 4072 SHA256 8b4c5ef577d0b66a008c908dc1f2dbf015a0d0156335a530ba82c2bf2118edc7 SHA512 80945cde1a4efe07cc0249cc32228cbe754e3736411e42234899e3ea73ea3d80a9d2880ef198f13212eb660dd73aede286f4a53c5b91852d4b8b6051b2a7e1cb WHIRLPOOL 7c977b2b2a61a31d16cba9c1e794190c8e90c7bffc573cda48cbd136ac74e481d397591ec52ad5cede0fbd656fe496365e515a41a84dbe3b94cece3587785f1e
+MISC metadata.xml 952 SHA256 7f9afc150d5a533041a43bbe13a3f161dc12eb945ec925ac0a18cd7b00bfd04b SHA512 5a679fb9061a572e4a4c4f33840694d7a7e43601450d297fb30a25aa3e4c3fa1a491476467c10b440f7d7bfde0e67bf6f48c3f74f6f120ddbe7887172ac15a1a WHIRLPOOL d3c2c7f417a216d3bceee8fe1702362e2375d8abbc6b087784525ce147f81523578d32963b58bd01ca4af6d51663b1ca8ab29eb62115ca490c8a8072a6b55515
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQJ8BAEBCABmBQJTU+WfXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+iQJ8BAEBCABmBQJTpDpwXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0ODVGNzIyN0VCNkRCNUU5MzkzNzY5ODAw
-MTUxODYzQTY3NjUyOTAwAAoJEAFRhjpnZSkAIkwP/jNPrrkrITkuW23+VMgvGy5n
-Uqz/bBth68NP/RatE2dbdv4ubE1tAzuAKcVczYMeolUmWI0LN68pHl8LG1huHvJJ
-5wRwWCndviULyhhE+2/AuZukO3yKm5TaJPZPaqqD4RigZjghLk/Y3e70joJU6Vl/
-AIYl2g9QaSQNLpiKigt9hoX7fA4e5z9VOzG/qWIl3/4uy1hbmeaf5HiZYn4wHrS2
-uayIzcNnbV3AD/2YilnnZamO+mNPB5UrPU0BwAVuOGFtja9FeR8BToz3xpzsjbjG
-swXLA+dM7WS67b95uFnykxFd8fSzmj24bZrS4RXbHOS7mxJzWFK+pGSyO2gQqW41
-06SGVxtksRTM5+5jWuYF5SN83NPFVtt9E7Gf0hGWIOIYLd/VKDNQXl0CqNhu6Ete
-TIENgwNrEfDqv9Fsx86RpFDpD9pAgQPTwG5YHUfTfBUHga4+k3PIa4vEWVv0M+YW
-M6Zgm8FhE5NDoU7i4Z1/0PtfRBzN5GH4Qz2VHCmsDb13v85nlhbPlqsF4Fhe3G/1
-5cokW6XbQZS6Lpe0V7zfn7o1pOvYiV1OemjOWKPd7sCKcAmOYBlcongYCkL7RhhX
-MrF/9WYSIXx2E/MVdvRaekMwsNndYag8oBc5TPuZZ/ZlgEZauVbTGEJOj2NZ2ElR
-d3uY3rFR33NCeOY9TRvq
-=VFFi
+MTUxODYzQTY3NjUyOTAwAAoJEAFRhjpnZSkA31gP+QGZaG/VHZA/9vO2QV6UXpkz
+rtkN3gbQi5CUuuJN7h3t8jCKZFlAX+Fmdly0hgD5UrZa5Q2FKn8gyai1m5++zAJh
+g9Hbaf/NGDkoVItLBVngd9Iu7Rn+cWiUmt1o/EgoaMg6507VmZZNNmOOMQ5KaBhI
+BctRBOR0IXb4f98OsLDXpB0RGJNjwqEUPnUxFx5oKp1i+QGYZYCCY232xT6flQLX
+VnTrIc14aLuJzq6YNauotea+uZxyBzwpYKZxzHmYvFQXVuz4AmSAuHDMep2pDeh+
+i+BYkOzfWICRbdrOoaKYoa+P3ze3w5vp4yGDVb0YGMPZzqfIWGirqcTcveKk6atu
+7uivRao05QoGvUpEDe9XfrprFAJYureT6XIl2vies9PKPIIFDKIauWVI+En+LljD
+0NLiE+Z0ydQewykLB7pUFyDicXDedyIJsg36G57fCHDyo4Hl9a8l8soMoWZ+MBOK
+cb14niGsJKzWrG3p9qdtlXsC9HCFYE9hbdQ7RDkJaZzxJjhtWIqQ6dUronuECGsX
+zENZCec5q0IOksbVDR7pRv27+4M8HKBbdRKvYFuF2EMEGfjiLSAm8tlgvaZON7hK
+i34lJ5jGvBmmamegwt+g8332nx9F8yndKFq2w6aFownjg3YzRwwcxRvKigd3QCmM
+xA4czK1AGZWSxHDSttKq
+=I1eg
-----END PGP SIGNATURE-----
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..dcb92187a2dc
--- /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
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/razercfg/files/razerd.init.d-r2,v 1.1 2014/06/20 13:43:08 joker Exp $
+
+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
index 5966d11231ff..98006eca5a09 100644
--- a/sys-apps/razercfg/metadata.xml
+++ b/sys-apps/razercfg/metadata.xml
@@ -6,15 +6,17 @@
<name>Christian Birchinger</name>
</maintainer>
<longdescription>
-Utility to for advanced configuration of the following Razer mice: Krait, Lachesis,
-DeathAdder (Classic, 3500 DPI, Black Edition), Copperhead, Naga, Boomslang CE. The
-tool architecture is based on "razerd", which is a background daemon doing all of
-the lowlevel privileged hardware accesses. The user interface tools are "razercfg",
-a commandline tool; and "qrazercfg", a QT4 based graphical device configuration tool.
+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/pygtk</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.26.ebuild b/sys-apps/razercfg/razercfg-0.26.ebuild
new file mode 100644
index 000000000000..132977b68b10
--- /dev/null
+++ b/sys-apps/razercfg/razercfg-0.26.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/razercfg/razercfg-0.26.ebuild,v 1.1 2014/06/20 13:43:08 joker Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{3_2,3_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"
+
+ # setup.py creates a totaly wrong interperter path for python_fix_shebang
+ sed -i \
+ -e 's:build -b:build -e /usr/bin/python3 -b:' \
+ ui/CMakeLists.txt \
+ || die "sed failed"
+}
+
+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
+
+ python_fix_shebang "${ED}"usr/bin
+}
+
+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
+}