Gentoo Archives: gentoo-commits

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