Gentoo Archives: gentoo-commits

From: "Robert Buchholz (rbu)" <rbu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/g15daemon: ChangeLog g15daemon-1.2.7-r1.ebuild g15daemon-1.9.0-r1.ebuild g15daemon-1.9.0.ebuild
Date: Thu, 04 Oct 2007 08:53:16
Message-Id: E1IdMJK-0003uD-NS@stork.gentoo.org
1 rbu 07/10/04 08:43:58
2
3 Modified: ChangeLog
4 Added: g15daemon-1.2.7-r1.ebuild g15daemon-1.9.0-r1.ebuild
5 Removed: g15daemon-1.9.0.ebuild
6 Log:
7 New POSIX init script by Peter Alfredsen and Roy Marples (bug #194365)
8 (Portage version: 2.1.3.9)
9
10 Revision Changes Path
11 1.16 app-misc/g15daemon/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/ChangeLog?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/ChangeLog?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/ChangeLog?r1=1.15&r2=1.16
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- ChangeLog 1 May 2007 10:31:16 -0000 1.15
24 +++ ChangeLog 4 Oct 2007 08:43:58 -0000 1.16
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-misc/g15daemon
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.15 2007/05/01 10:31:16 corsair Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.16 2007/10/04 08:43:58 rbu Exp $
30 +
31 +*g15daemon-1.9.0-r1 (04 Oct 2007)
32 +*g15daemon-1.2.7-r1 (04 Oct 2007)
33 +
34 + 04 Oct 2007; Robert Buchholz <rbu@g.o>
35 + +files/g15daemon-1.2.7-r1.initd, +g15daemon-1.2.7-r1.ebuild,
36 + -g15daemon-1.9.0.ebuild, +g15daemon-1.9.0-r1.ebuild:
37 + New POSIX init script by Peter Alfredsen and Roy Marples (bug #194365).
38
39 01 May 2007; Markus Rothe <corsair@g.o> g15daemon-1.2.7.ebuild:
40 Stable on ppc64; bug #175120
41
42
43
44 1.1 app-misc/g15daemon/g15daemon-1.2.7-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/g15daemon-1.2.7-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/g15daemon-1.2.7-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: g15daemon-1.2.7-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2007 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.2.7-r1.ebuild,v 1.1 2007/10/04 08:43:58 rbu Exp $
54
55 inherit eutils linux-info perl-module python multilib
56
57 DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
58 HOMEPAGE="http://g15daemon.sourceforge.net/"
59 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
64 IUSE="perl python"
65
66 DEPEND="dev-libs/libusb
67 dev-libs/libdaemon
68 >=dev-libs/libg15-1.2.0
69 perl? ( >=dev-perl/Inline-0.4 )
70 python? ( dev-lang/python )"
71
72 RDEPEND="${DEPEND}
73 perl? ( dev-perl/GDGraph )"
74
75 uinput_check() {
76 ebegin "Checking for uinput support"
77 linux_chkconfig_present INPUT_UINPUT
78 eend $?
79
80 if [[ $? -ne 0 ]] ; then
81 eerror "To use g15daemon, you need to compile your kernel with uinput support."
82 eerror "Please enable uinput support in your kernel config, found at:"
83 eerror
84 eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
85 eerror
86 eerror "Once enabled, you should have the /dev/input/uinput device."
87 eerror "g15daemon will not work without the uinput device."
88 die "INPUT_UINPUT support not detected!"
89 fi
90 }
91
92 pkg_setup() {
93 linux-info_pkg_setup
94 uinput_check
95 }
96
97 src_unpack() {
98 unpack ${A}
99 if use perl; then
100 unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
101 fi
102 if use python; then
103 unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
104 fi
105 }
106
107 src_compile() {
108 econf || die "configure failed"
109
110 emake || die "make failed"
111
112 if use perl; then
113 cd "${WORKDIR}/G15Daemon-0.2"
114 perl-module_src_compile
115 fi
116 }
117
118 src_install() {
119 emake DESTDIR="${D}" \
120 docdir=/usr/share/doc/${PF} install || die "make install failed"
121
122 # remove odd docs installed my make
123 rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}
124
125 insinto /usr/share/${PN}/contrib
126 doins contrib/xmodmaprc
127 doins contrib/xmodmap.sh
128 if use perl; then
129 doins contrib/testbindings.pl
130 fi
131
132 newconfd "${FILESDIR}/${P}.confd" ${PN}
133 newinitd "${FILESDIR}/${PF}.initd" ${PN}
134
135 if use perl; then
136 ebegin "Installing Perl Bindings (G15Daemon.pm)"
137 cd "${WORKDIR}/G15Daemon-0.2"
138 docinto perl
139 perl-module_src_install
140 fi
141
142 if use python; then
143 ebegin "Installing Python Bindings (g15daemon.py)"
144 cd "${WORKDIR}/pyg15daemon"
145 python_version
146
147 insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
148 doins g15daemon.py
149 docinto python
150 dodoc AUTHORS
151 fi
152
153 prepalldocs
154 }
155
156 pkg_postinst() {
157 if use python; then
158 python_mod_optimize "${ROOT}/usr/$(get_libdir)/python*/site-packages/g15daemon"
159 echo ""
160 fi
161
162 elog "To use g15daemon, you need to add g15daemon to the default runlevel."
163 elog "This can be done with:"
164 elog "# /sbin/rc-update add g15daemon default"
165 elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
166 elog ""
167 elog "To have all new keys working in X11, you'll need create a "
168 elog "specific xmodmap in your home directory or edit the existent one."
169 elog ""
170 elog "Create the xmodmap:"
171 elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
172 elog ""
173 elog "Adding keycodes to an existing xmodmap:"
174 elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
175 }
176
177 pkg_postrm() {
178 if use python; then
179 python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
180 fi
181 }
182
183
184
185 1.1 app-misc/g15daemon/g15daemon-1.9.0-r1.ebuild
186
187 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.0-r1.ebuild?rev=1.1&view=markup
188 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.0-r1.ebuild?rev=1.1&content-type=text/plain
189
190 Index: g15daemon-1.9.0-r1.ebuild
191 ===================================================================
192 # Copyright 1999-2007 Gentoo Foundation
193 # Distributed under the terms of the GNU General Public License v2
194 # $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.0-r1.ebuild,v 1.1 2007/10/04 08:43:58 rbu Exp $
195
196 inherit eutils linux-info perl-module python multilib
197
198 DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
199 HOMEPAGE="http://g15daemon.sourceforge.net/"
200 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
201
202 LICENSE="GPL-2"
203 SLOT="0"
204 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
205 IUSE="perl python"
206
207 DEPEND="dev-libs/libusb
208 >=dev-libs/libg15-1.2.0
209 >=dev-libs/libg15render-1.2
210 perl? ( >=dev-perl/Inline-0.4 )
211 python? ( dev-lang/python )"
212
213 RDEPEND="${DEPEND}
214 perl? ( dev-perl/GDGraph )"
215
216 uinput_check() {
217 ebegin "Checking for uinput support"
218 linux_chkconfig_present INPUT_UINPUT
219 eend $?
220
221 if [[ $? -ne 0 ]] ; then
222 eerror "To use g15daemon, you need to compile your kernel with uinput support."
223 eerror "Please enable uinput support in your kernel config, found at:"
224 eerror
225 eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
226 eerror
227 eerror "Once enabled, you should have the /dev/input/uinput device."
228 eerror "g15daemon will not work without the uinput device."
229 die "INPUT_UINPUT support not detected!"
230 fi
231 }
232
233 pkg_setup() {
234 linux-info_pkg_setup
235 uinput_check
236 }
237
238 src_unpack() {
239 unpack ${A}
240 if use perl; then
241 unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
242 fi
243 if use python; then
244 unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
245 fi
246 }
247
248 src_compile() {
249 econf || die "configure failed"
250
251 emake || die "make failed"
252
253 if use perl; then
254 cd "${WORKDIR}/G15Daemon-0.2"
255 perl-module_src_compile
256 fi
257 }
258
259 src_install() {
260 emake DESTDIR="${D}" \
261 docdir=/usr/share/doc/${PF} install || die "make install failed"
262
263 # remove odd docs installed my make
264 rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}
265
266 insinto /usr/share/${PN}/contrib
267 doins contrib/xmodmaprc
268 doins contrib/xmodmap.sh
269 if use perl; then
270 doins contrib/testbindings.pl
271 fi
272
273 newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
274 newinitd "${FILESDIR}/${PN}-1.2.7-r1.initd" ${PN}
275
276 if use perl; then
277 ebegin "Installing Perl Bindings (G15Daemon.pm)"
278 cd "${WORKDIR}/G15Daemon-0.2"
279 docinto perl
280 perl-module_src_install
281 fi
282
283 if use python; then
284 ebegin "Installing Python Bindings (g15daemon.py)"
285 cd "${WORKDIR}/pyg15daemon"
286 python_version
287
288 insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
289 doins g15daemon.py
290
291 docinto python
292 dodoc AUTHORS
293 fi
294
295 prepalldocs
296 }
297
298 pkg_postinst() {
299 if use python; then
300 python_mod_optimize "${ROOT}/usr/$(get_libdir)/python*/site-packages/g15daemon"
301 echo ""
302 fi
303
304 elog "To use g15daemon, you need to add g15daemon to the default runlevel."
305 elog "This can be done with:"
306 elog "# /sbin/rc-update add g15daemon default"
307 elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
308 elog ""
309 elog "To have all new keys working in X11, you'll need create a "
310 elog "specific xmodmap in your home directory or edit the existent one."
311 elog ""
312 elog "Create the xmodmap:"
313 elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
314 elog ""
315 elog "Adding keycodes to an existing xmodmap:"
316 elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
317 }
318
319 pkg_postrm() {
320 if use python; then
321 python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
322 fi
323 }
324
325
326
327 --
328 gentoo-commits@g.o mailing list