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