Gentoo Archives: gentoo-commits

From: "Christian Birchinger (joker)" <joker@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/razercfg: metadata.xml ChangeLog razercfg-0.26.ebuild
Date: Fri, 20 Jun 2014 13:43:12
Message-Id: 20140620134308.E260A2004E@flycatcher.gentoo.org
1 joker 14/06/20 13:43:08
2
3 Modified: metadata.xml ChangeLog
4 Added: razercfg-0.26.ebuild
5 Log:
6 Version bump. Frontends switched to Python 3.x only.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x0151863A67652900!)
9
10 Revision Changes Path
11 1.5 sys-apps/razercfg/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/razercfg/metadata.xml?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/razercfg/metadata.xml?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/razercfg/metadata.xml?r1=1.4&r2=1.5
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/razercfg/metadata.xml,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- metadata.xml 20 Feb 2012 04:29:59 -0000 1.4
24 +++ metadata.xml 20 Jun 2014 13:43:08 -0000 1.5
25 @@ -6,15 +6,17 @@
26 <name>Christian Birchinger</name>
27 </maintainer>
28 <longdescription>
29 -Utility to for advanced configuration of the following Razer mice: Krait, Lachesis,
30 -DeathAdder (Classic, 3500 DPI, Black Edition), Copperhead, Naga, Boomslang CE. The
31 -tool architecture is based on "razerd", which is a background daemon doing all of
32 -the lowlevel privileged hardware accesses. The user interface tools are "razercfg",
33 -a commandline tool; and "qrazercfg", a QT4 based graphical device configuration tool.
34 +Utility to for advanced configuration of the following Razer mice: Copperhead
35 +Lachesis (Classic), DeathAdder (Classic, 3500 DPI, Black Edition, 2013), Taipan
36 +Naga (Classic, 2012, 2014, Hex), Krait, Boomslang CE. The tool architecture is
37 +based on "razerd", which is a background daemon doing all of the lowlevel
38 +privilege hardware accesses. The user interface tools are "razercfg", a
39 +commandline tool; and "qrazercfg", a QT4 based graphical device configuration
40 +tool.
41 </longdescription>
42 <use>
43 <flag name='pm-utils'>Installs the pm-utils hooks for suspend/resume and
44 requires <pkg>sys-power/pm-utils</pkg></flag>
45 - <flag name='qt4'>Installs a qt UI. Requires <pkg>dev-python/pygtk</pkg></flag>
46 + <flag name='qt4'>Installs a qt UI. Requires <pkg>dev-python/pyside</pkg></flag>
47 </use>
48 </pkgmetadata>
49
50
51
52 1.25 sys-apps/razercfg/ChangeLog
53
54 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/razercfg/ChangeLog?rev=1.25&view=markup
55 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/razercfg/ChangeLog?rev=1.25&content-type=text/plain
56 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/razercfg/ChangeLog?r1=1.24&r2=1.25
57
58 Index: ChangeLog
59 ===================================================================
60 RCS file: /var/cvsroot/gentoo-x86/sys-apps/razercfg/ChangeLog,v
61 retrieving revision 1.24
62 retrieving revision 1.25
63 diff -u -r1.24 -r1.25
64 --- ChangeLog 20 Apr 2014 15:19:55 -0000 1.24
65 +++ ChangeLog 20 Jun 2014 13:43:08 -0000 1.25
66 @@ -1,6 +1,12 @@
67 # ChangeLog for sys-apps/razercfg
68 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
69 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/razercfg/ChangeLog,v 1.24 2014/04/20 15:19:55 joker Exp $
70 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/razercfg/ChangeLog,v 1.25 2014/06/20 13:43:08 joker Exp $
71 +
72 +*razercfg-0.26 (20 Jun 2014)
73 +
74 + 20 Jun 2014; Christian Birchinger <joker@g.o> +razercfg-0.26.ebuild,
75 + +files/razerd.init.d-r2, metadata.xml:
76 + Version bump. Frontends switched to Python 3.x only
77
78 *razercfg-0.25 (20 Apr 2014)
79
80
81
82
83 1.1 sys-apps/razercfg/razercfg-0.26.ebuild
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/razercfg/razercfg-0.26.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/razercfg/razercfg-0.26.ebuild?rev=1.1&content-type=text/plain
87
88 Index: razercfg-0.26.ebuild
89 ===================================================================
90 # Copyright 1999-2014 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/sys-apps/razercfg/razercfg-0.26.ebuild,v 1.1 2014/06/20 13:43:08 joker Exp $
93
94 EAPI=5
95
96 PYTHON_COMPAT=( python{3_2,3_3} )
97
98 inherit cmake-utils multilib eutils udev python-single-r1
99
100 DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)"
101
102 HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html"
103 SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2"
104 LICENSE="GPL-2"
105 SLOT="0"
106 KEYWORDS="~amd64 ~x86"
107 IUSE="+pm-utils qt4"
108
109 RDEPEND="qt4? ( >=dev-python/pyside-1.2.1[${PYTHON_USEDEP}] )
110 pm-utils? ( sys-power/pm-utils )"
111
112 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
113
114 src_prepare() {
115 sed -i \
116 -e '/udevadm control/{N;d}' \
117 -e '/systemctl/{N;d}' \
118 -e "s:/etc/udev/rules.d/:$(get_udevdir)/rules.d/:" \
119 -e 's:01-razer-udev.rules:40-razercfg.rules:' \
120 -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \
121 -e 's:50-razer:80razer:' \
122 CMakeLists.txt \
123 || die "sed failed"
124
125 sed -i \
126 -e '/ldconfig/{N;d}' \
127 -e "s:DESTINATION lib:DESTINATION $(get_libdir):" \
128 librazer/CMakeLists.txt \
129 || die "sed failed"
130
131 # setup.py creates a totaly wrong interperter path for python_fix_shebang
132 sed -i \
133 -e 's:build -b:build -e /usr/bin/python3 -b:' \
134 ui/CMakeLists.txt \
135 || die "sed failed"
136 }
137
138 src_install() {
139 cmake-utils_src_install
140 newinitd "${FILESDIR}"/razerd.init.d-r2 razerd
141 dodoc README razer.conf
142
143 if ! use qt4; then
144 rm "${D}"/usr/bin/qrazercfg
145 else
146 make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings"
147 fi
148
149 use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer
150
151 python_fix_shebang "${ED}"usr/bin
152 }
153
154 pkg_postinst() {
155 udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
156
157 if [[ -e "${ROOT}"usr/bin/pyrazer.pyc ]]; then
158 echo
159 eerror "A stale ${ROOT}usr/bin/pyrazer.pyc exists and will prevent"
160 eerror "the Python frontends from working until removed manually."
161 echo
162 fi
163 }