Gentoo Archives: gentoo-commits

From: "Tony Vroon (chainsaw)" <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/g15daemon: ChangeLog g15daemon-1.9.5.3.ebuild
Date: Thu, 21 Feb 2008 16:56:29
Message-Id: E1JSEig-0000IG-NG@stork.gentoo.org
1 chainsaw 08/02/21 16:56:26
2
3 Modified: ChangeLog
4 Added: g15daemon-1.9.5.3.ebuild
5 Log:
6 Version bump as requested by Efimov Vadim <evadim@××××××.ru>, closes bug #208771.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.20 app-misc/g15daemon/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/ChangeLog?rev=1.20&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/ChangeLog?rev=1.20&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/ChangeLog?r1=1.19&r2=1.20
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v
19 retrieving revision 1.19
20 retrieving revision 1.20
21 diff -u -r1.19 -r1.20
22 --- ChangeLog 28 Dec 2007 13:50:42 -0000 1.19
23 +++ ChangeLog 21 Feb 2008 16:56:26 -0000 1.20
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-misc/g15daemon
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.19 2007/12/28 13:50:42 jokey Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.20 2008/02/21 16:56:26 chainsaw Exp $
30 +
31 +*g15daemon-1.9.5.3 (21 Feb 2008)
32 +
33 + 21 Feb 2008; Tony Vroon <chainsaw@g.o> +g15daemon-1.9.5.3.ebuild:
34 + Version bump as requested by Efimov Vadim <evadim@××××××.ru>, closes bug
35 + #208771.
36
37 *g15daemon-1.9.3 (28 Dec 2007)
38
39
40
41
42 1.1 app-misc/g15daemon/g15daemon-1.9.5.3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: g15daemon-1.9.5.3.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3.ebuild,v 1.1 2008/02/21 16:56:26 chainsaw Exp $
52
53 inherit eutils linux-info perl-module python multilib
54
55 DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
56 HOMEPAGE="http://g15daemon.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
62 IUSE="perl python"
63
64 DEPEND="dev-libs/libusb
65 >=dev-libs/libg15-1.2.4
66 >=dev-libs/libg15render-1.2
67 perl? ( >=dev-perl/Inline-0.4 )
68 python? ( dev-lang/python )"
69
70 RDEPEND="${DEPEND}
71 perl? ( dev-perl/GDGraph )"
72
73 uinput_check() {
74 ebegin "Checking for uinput support"
75 linux_chkconfig_present INPUT_UINPUT
76 eend $?
77
78 if [[ $? -ne 0 ]] ; then
79 eerror "To use g15daemon, you need to compile your kernel with uinput support."
80 eerror "Please enable uinput support in your kernel config, found at:"
81 eerror
82 eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
83 eerror
84 eerror "Once enabled, you should have the /dev/input/uinput device."
85 eerror "g15daemon will not work without the uinput device."
86 die "INPUT_UINPUT support not detected!"
87 fi
88 }
89
90 pkg_setup() {
91 linux-info_pkg_setup
92 uinput_check
93 }
94
95 src_unpack() {
96 unpack ${A}
97 if use perl; then
98 unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
99 fi
100 if use python; then
101 unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
102 fi
103 }
104
105 src_compile() {
106 econf || die "configure failed"
107
108 emake || die "make failed"
109
110 if use perl; then
111 cd "${WORKDIR}/G15Daemon-0.2"
112 perl-module_src_compile
113 fi
114 }
115
116 src_install() {
117 emake DESTDIR="${D}" \
118 docdir=/usr/share/doc/${PF} install || die "make install failed"
119
120 # remove odd docs installed my make
121 rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}
122
123 insinto /usr/share/${PN}/contrib
124 doins contrib/xmodmaprc
125 doins contrib/xmodmap.sh
126 if use perl; then
127 doins contrib/testbindings.pl
128 fi
129
130 newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
131 newinitd "${FILESDIR}/${PN}-1.2.7-r2.initd" ${PN}
132
133 if use perl; then
134 ebegin "Installing Perl Bindings (G15Daemon.pm)"
135 cd "${WORKDIR}/G15Daemon-0.2"
136 docinto perl
137 perl-module_src_install
138 fi
139
140 if use python; then
141 ebegin "Installing Python Bindings (g15daemon.py)"
142 cd "${WORKDIR}/pyg15daemon"
143 python_version
144
145 insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
146 doins g15daemon.py
147
148 docinto python
149 dodoc AUTHORS
150 fi
151
152 prepalldocs
153 }
154
155 pkg_postinst() {
156 if use python; then
157 python_mod_optimize "${ROOT}/usr/$(get_libdir)/python*/site-packages/g15daemon"
158 echo ""
159 fi
160
161 elog "To use g15daemon, you need to add g15daemon to the default runlevel."
162 elog "This can be done with:"
163 elog "# /sbin/rc-update add g15daemon default"
164 elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
165 elog ""
166 elog "To have all new keys working in X11, you'll need create a "
167 elog "specific xmodmap in your home directory or edit the existent one."
168 elog ""
169 elog "Create the xmodmap:"
170 elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
171 elog ""
172 elog "Adding keycodes to an existing xmodmap:"
173 elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
174 }
175
176 pkg_postrm() {
177 if use python; then
178 python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
179 fi
180 }
181
182
183
184 --
185 gentoo-commits@l.g.o mailing list