Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/g15daemon: g15daemon-1.9.5.3-r4.ebuild ChangeLog
Date: Wed, 03 Aug 2011 07:50:02
Message-Id: 20110803074950.7F5E62004C@flycatcher.gentoo.org
1 robbat2 11/08/03 07:49:50
2
3 Modified: ChangeLog
4 Added: g15daemon-1.9.5.3-r4.ebuild
5 Log:
6 Bug #354921, #343133: Fix overflow for amd64. Bug #301340: Fix suspend behavior. Bug #366863: Improve udev interaction.
7
8 (Portage version: 2.2.0_alpha45/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.37 app-misc/g15daemon/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/g15daemon/ChangeLog?rev=1.37&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/g15daemon/ChangeLog?rev=1.37&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/g15daemon/ChangeLog?r1=1.36&r2=1.37
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v
20 retrieving revision 1.36
21 retrieving revision 1.37
22 diff -p -w -b -B -u -u -r1.36 -r1.37
23 --- ChangeLog 16 Apr 2011 22:56:19 -0000 1.36
24 +++ ChangeLog 3 Aug 2011 07:49:50 -0000 1.37
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-misc/g15daemon
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.36 2011/04/16 22:56:19 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.37 2011/08/03 07:49:50 robbat2 Exp $
30 +
31 +*g15daemon-1.9.5.3-r4 (03 Aug 2011)
32 +
33 + 03 Aug 2011; Robin H. Johnson <robbat2@g.o> +files/20g15daemon,
34 + +g15daemon-1.9.5.3-r4.ebuild, files/g15daemon-hotplug,
35 + +files/g15daemon-1.9.5.3-overflow-fix.patch:
36 + Bug #354921, #343133: Fix overflow for amd64. Bug #301340: Fix suspend
37 + behavior. Bug #366863: Improve udev interaction.
38
39 16 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
40 g15daemon-1.9.5.3-r3.ebuild:
41
42
43
44 1.1 app-misc/g15daemon/g15daemon-1.9.5.3-r4.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3-r4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3-r4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: g15daemon-1.9.5.3-r4.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3-r4.ebuild,v 1.1 2011/08/03 07:49:50 robbat2 Exp $
54
55 EAPI=3
56 GENTOO_DEPEND_ON_PERL="no"
57 PYTHON_DEPEND="python? *"
58 SUPPORT_PYTHON_ABIS="1"
59
60 inherit eutils linux-info perl-module python base
61
62 DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
63 HOMEPAGE="http://g15daemon.sourceforge.net/"
64 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
69 IUSE="perl python"
70
71 DEPEND="virtual/libusb:0
72 >=dev-libs/libg15-1.2.4
73 >=dev-libs/libg15render-1.2
74 perl? (
75 dev-lang/perl
76 dev-perl/GDGraph
77 >=dev-perl/Inline-0.4
78 )"
79 RDEPEND="${DEPEND}"
80
81 PATCHES=(
82 "${FILESDIR}/${P}-forgotten-open-mode.patch"
83 "${FILESDIR}/${P}-overflow-fix.patch"
84 )
85 uinput_check() {
86 ebegin "Checking for uinput support"
87 local rc=1
88 linux_config_exists && linux_chkconfig_present INPUT_UINPUT
89 rc=$?
90
91 if [[ $rc -ne 0 ]] ; then
92 eerror "To use g15daemon, you need to compile your kernel with uinput support."
93 eerror "Please enable uinput support in your kernel config, found at:"
94 eerror
95 eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
96 eerror
97 eerror "Once enabled, you should have the /dev/input/uinput device."
98 eerror "g15daemon will not work without the uinput device."
99 fi
100 }
101
102 pkg_setup() {
103 linux-info_pkg_setup
104 uinput_check
105 if use python; then
106 python_pkg_setup
107 fi
108 }
109
110 src_unpack() {
111 unpack ${A}
112 if use perl; then
113 unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
114 fi
115 if use python; then
116 unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
117 fi
118 }
119
120 src_prepare() {
121 if use perl; then
122 perl-module_src_prepare
123 sed -i \
124 -e '1i#!/usr/bin/perl' \
125 "${S}"/contrib/testbindings.pl
126 else
127 # perl-module_src_prepare always calls base_src_prepare
128 base_src_prepare
129 fi
130 }
131
132 src_configure() {
133 base_src_configure
134
135 if use perl; then
136 cd "${WORKDIR}/G15Daemon-0.2"
137 perl-module_src_configure
138 fi
139 }
140
141 src_compile() {
142 base_src_compile
143
144 if use perl; then
145 cd "${WORKDIR}/G15Daemon-0.2"
146 perl-module_src_compile
147 fi
148 }
149
150 src_install() {
151 emake DESTDIR="${D}" \
152 docdir=/usr/share/doc/${PF} install || die "make install failed"
153
154 # remove odd docs installed my make
155 rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}
156
157 insinto /usr/share/${PN}/contrib
158 doins contrib/xmodmaprc
159 doins contrib/xmodmap.sh
160 if use perl; then
161 doins contrib/testbindings.pl
162 fi
163
164 newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
165 newinitd "${FILESDIR}/${PN}-1.2.7-r2.initd" ${PN}
166 dobin "${FILESDIR}/g15daemon-hotplug"
167 insinto /lib/udev/rules.d
168 doins "${FILESDIR}/99-g15daemon.rules"
169
170 insinto /etc
171 doins "${FILESDIR}"/g15daemon.conf
172
173 # Gentoo bug #301340, debian bug #611649
174 exeinto /usr/lib/pm-utils/sleep.d
175 doexe "${FILESDIR}"/20g15daemon
176
177 if use perl; then
178 ebegin "Installing Perl Bindings (G15Daemon.pm)"
179 cd "${WORKDIR}/G15Daemon-0.2"
180 docinto perl
181 perl-module_src_install
182 fi
183
184 if use python; then
185 ebegin "Installing Python Bindings (g15daemon.py)"
186 cd "${WORKDIR}/pyg15daemon"
187
188 installation() {
189 insinto $(python_get_sitedir)
190 doins g15daemon.py
191 }
192 python_execute_function installation
193
194 docinto python
195 dodoc AUTHORS
196 fi
197 }
198
199 pkg_postinst() {
200 if use python; then
201 python_mod_optimize g15daemon.py
202 echo ""
203 fi
204
205 elog "To use g15daemon, you need to add g15daemon to the default runlevel."
206 elog "This can be done with:"
207 elog "# /sbin/rc-update add g15daemon default"
208 elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
209 elog ""
210 elog "To have all new keys working in X11, you'll need create a "
211 elog "specific xmodmap in your home directory or edit the existent one."
212 elog ""
213 elog "Create the xmodmap:"
214 elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
215 elog ""
216 elog "Adding keycodes to an existing xmodmap:"
217 elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
218 }
219
220 pkg_postrm() {
221 if use python; then
222 python_mod_cleanup g15daemon.py
223 fi
224 }