1 |
zzam 08/10/12 19:55:53 |
2 |
|
3 |
Modified: lirc-0.8.0-r8.ebuild ChangeLog |
4 |
Added: lirc-0.8.4.ebuild |
5 |
Log: |
6 |
Version bumped. This adds Kernel 2.6.27 compatibility. Added driver options irlink, commandir, ite8709 and samsung, Bug #221727. Removed portaudio patch. Shorten description of lirc-0.8.0-r8. |
7 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.25-tuxonice-r6 i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.16 app-misc/lirc/lirc-0.8.0-r8.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild?rev=1.16&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild?rev=1.16&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild?r1=1.15&r2=1.16 |
15 |
|
16 |
Index: lirc-0.8.0-r8.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild,v |
19 |
retrieving revision 1.15 |
20 |
retrieving revision 1.16 |
21 |
diff -u -r1.15 -r1.16 |
22 |
--- lirc-0.8.0-r8.ebuild 13 Oct 2007 09:20:15 -0000 1.15 |
23 |
+++ lirc-0.8.0-r8.ebuild 12 Oct 2008 19:55:53 -0000 1.16 |
24 |
@@ -1,11 +1,10 @@ |
25 |
-# Copyright 1999-2007 Gentoo Foundation |
26 |
+# Copyright 1999-2008 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild,v 1.15 2007/10/13 09:20:15 zzam Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild,v 1.16 2008/10/12 19:55:53 zzam Exp $ |
30 |
|
31 |
inherit eutils linux-mod flag-o-matic autotools |
32 |
|
33 |
-DESCRIPTION="LIRC is a package that allows you to decode and send infra-red \ |
34 |
- signals of many (but not all) commonly used remote controls." |
35 |
+DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" |
36 |
HOMEPAGE="http://www.lirc.org" |
37 |
|
38 |
SLOT="0" |
39 |
|
40 |
|
41 |
|
42 |
1.189 app-misc/lirc/ChangeLog |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/ChangeLog?rev=1.189&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/ChangeLog?rev=1.189&content-type=text/plain |
46 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/ChangeLog?r1=1.188&r2=1.189 |
47 |
|
48 |
Index: ChangeLog |
49 |
=================================================================== |
50 |
RCS file: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v |
51 |
retrieving revision 1.188 |
52 |
retrieving revision 1.189 |
53 |
diff -u -r1.188 -r1.189 |
54 |
--- ChangeLog 12 Oct 2008 19:18:59 -0000 1.188 |
55 |
+++ ChangeLog 12 Oct 2008 19:55:53 -0000 1.189 |
56 |
@@ -1,6 +1,15 @@ |
57 |
# ChangeLog for app-misc/lirc |
58 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
59 |
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.188 2008/10/12 19:18:59 zzam Exp $ |
60 |
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.189 2008/10/12 19:55:53 zzam Exp $ |
61 |
+ |
62 |
+*lirc-0.8.4 (12 Oct 2008) |
63 |
+ |
64 |
+ 12 Oct 2008; Matthias Schwarzott <zzam@g.o> |
65 |
+ +files/lirc-0.8.4-imon-pad2keys.patch, lirc-0.8.0-r8.ebuild, |
66 |
+ +lirc-0.8.4.ebuild: |
67 |
+ Version bumped. This adds Kernel 2.6.27 compatibility. Added driver |
68 |
+ options irlink, commandir, ite8709 and samsung, Bug #221727. Removed |
69 |
+ portaudio patch. Shorten description of lirc-0.8.0-r8. |
70 |
|
71 |
12 Oct 2008; Matthias Schwarzott <zzam@g.o> files/lircd.conf.2: |
72 |
Fix config example for devinput, Bug #235107 |
73 |
|
74 |
|
75 |
|
76 |
1.1 app-misc/lirc/lirc-0.8.4.ebuild |
77 |
|
78 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/lirc-0.8.4.ebuild?rev=1.1&view=markup |
79 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/lirc-0.8.4.ebuild?rev=1.1&content-type=text/plain |
80 |
|
81 |
Index: lirc-0.8.4.ebuild |
82 |
=================================================================== |
83 |
# Copyright 1999-2008 Gentoo Foundation |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.4.ebuild,v 1.1 2008/10/12 19:55:53 zzam Exp $ |
86 |
|
87 |
inherit eutils linux-mod flag-o-matic autotools |
88 |
|
89 |
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" |
90 |
HOMEPAGE="http://www.lirc.org/" |
91 |
|
92 |
MY_P=${PN}-${PV/_/} |
93 |
|
94 |
if [[ "${PV/_pre/}" = "${PV}" ]]; then |
95 |
SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" |
96 |
else |
97 |
SRC_URI="http://lirc.sourceforge.net/software/snapshots/${MY_P}.tar.bz2" |
98 |
fi |
99 |
|
100 |
LICENSE="GPL-2" |
101 |
SLOT="0" |
102 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
103 |
IUSE="debug doc X hardware-carrier transmitter" |
104 |
|
105 |
S="${WORKDIR}/${MY_P}" |
106 |
|
107 |
RDEPEND=" |
108 |
X? ( |
109 |
x11-libs/libX11 |
110 |
x11-libs/libSM |
111 |
x11-libs/libICE |
112 |
) |
113 |
lirc_devices_alsa_usb? ( media-libs/alsa-lib ) |
114 |
lirc_devices_audio? ( media-libs/portaudio ) |
115 |
lirc_devices_irman? ( media-libs/libirman )" |
116 |
|
117 |
# This are drivers with names matching the |
118 |
# parameter --with-driver=NAME |
119 |
IUSE_LIRC_DEVICES_DIRECT=" |
120 |
all userspace accent act200l act220l |
121 |
adaptec alsa_usb animax asusdh atilibusb |
122 |
atiusb audio audio_alsa avermedia avermedia_vdomate |
123 |
avermedia98 bestbuy bestbuy2 breakoutbox |
124 |
bte bw6130 caraca chronos cmdir |
125 |
cph06x creative creative_infracd |
126 |
devinput digimatrix dsp dvico ea65 |
127 |
exaudio flyvideo gvbctv5pci hauppauge |
128 |
hauppauge_dvb hercules_smarttv_stereo |
129 |
igorplugusb imon imon_knob imon_lcd imon_pad imon_rsc |
130 |
irdeo irdeo_remote irman irreal it87 |
131 |
knc_one kworld leadtek_0007 leadtek_0010 |
132 |
leadtek_pvr2000 livedrive_midi |
133 |
livedrive_seq logitech macmini mceusb |
134 |
mceusb2 mediafocusI mouseremote |
135 |
mouseremote_ps2 mp3anywhere nslu2 |
136 |
packard_bell parallel pcmak pcmak_usb |
137 |
pctv pixelview_bt878 pixelview_pak |
138 |
pixelview_pro provideo realmagic |
139 |
remotemaster sa1100 sasem sb0540 serial |
140 |
silitek sir slinke streamzap tekram |
141 |
tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2 |
142 |
uirt2_raw usb_uirt_raw usbx |
143 |
irlink commandir ite8709 samsung" |
144 |
|
145 |
# drivers that need special handling and |
146 |
# must have another name specified for |
147 |
# parameter --with-driver=NAME |
148 |
IUSE_LIRC_DEVICES_SPECIAL=" |
149 |
imon_pad2keys serial_igor_cesko |
150 |
remote_wonder_plus xboxusb usbirboy inputlirc" |
151 |
|
152 |
IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}" |
153 |
|
154 |
#device-driver which use libusb |
155 |
LIBUSB_USED_BY_DEV=" |
156 |
all atilibusb sasem igorplugusb imon imon_lcd imon_pad imon_pad2keys |
157 |
imon_rsc streamzap mceusb mceusb2 xboxusb irlink commandir" |
158 |
|
159 |
for dev in ${LIBUSB_USED_BY_DEV}; do |
160 |
RDEPEND="${RDEPEND} lirc_devices_${dev}? ( dev-libs/libusb )" |
161 |
done |
162 |
|
163 |
# adding only compile-time depends |
164 |
DEPEND="${RDEPEND} |
165 |
virtual/linux-sources" |
166 |
|
167 |
# adding only run-time depends |
168 |
RDEPEND="${RDEPEND} |
169 |
lirc_devices_usbirboy? ( app-misc/usbirboy ) |
170 |
lirc_devices_inputlirc? ( app-misc/inputlircd )" |
171 |
|
172 |
# add all devices to IUSE |
173 |
for dev in ${IUSE_LIRC_DEVICES}; do |
174 |
IUSE="${IUSE} lirc_devices_${dev}" |
175 |
done |
176 |
|
177 |
add_device() { |
178 |
: ${lirc_device_count:=0} |
179 |
((lirc_device_count++)) |
180 |
|
181 |
if [[ ${lirc_device_count} -eq 2 ]]; then |
182 |
ewarn |
183 |
ewarn "When selecting multiple devices for lirc to be supported," |
184 |
ewarn "it can not be garanteed that the drivers play nice together." |
185 |
ewarn |
186 |
ewarn "If this is not intended, then abort emerge now with Ctrl-C," |
187 |
ewarn "Set LIRC_DEVICES and restart emerge." |
188 |
ewarn |
189 |
epause |
190 |
fi |
191 |
|
192 |
local dev="${1}" |
193 |
local desc="device ${dev}" |
194 |
if [[ -n "${2}" ]]; then |
195 |
desc="${2}" |
196 |
fi |
197 |
|
198 |
elog "Compiling support for ${desc}" |
199 |
MY_OPTS="${MY_OPTS} --with-driver=${dev}" |
200 |
} |
201 |
|
202 |
pkg_setup() { |
203 |
|
204 |
CONFIG_CHECK="MODULES MODULE_UNLOAD" |
205 |
|
206 |
linux-mod_pkg_setup |
207 |
|
208 |
# set default configure options |
209 |
MY_OPTS="" |
210 |
LIRC_DRIVER_DEVICE="/dev/lirc0" |
211 |
|
212 |
if use lirc_devices_all; then |
213 |
# compile in drivers for a lot of devices |
214 |
add_device all "a lot of devices" |
215 |
else |
216 |
# compile in only requested drivers |
217 |
local dev |
218 |
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do |
219 |
if use lirc_devices_${dev}; then |
220 |
add_device ${dev} |
221 |
fi |
222 |
done |
223 |
|
224 |
if use lirc_devices_remote_wonder_plus; then |
225 |
add_device atiusb "device Remote Wonder Plus (atiusb-based)" |
226 |
fi |
227 |
|
228 |
if use lirc_devices_serial_igor_cesko; then |
229 |
add_device serial "serial with Igor Cesko design" |
230 |
MY_OPTS="${MY_OPTS} --with-igor" |
231 |
fi |
232 |
|
233 |
if use lirc_devices_imon_pad2keys; then |
234 |
add_device imon_pad "device imon_pad (with converting pad input to keyspresses)" |
235 |
ewarn "You need to set the option pad2keys_active=1" |
236 |
ewarn "when loading the module lirc_imon" |
237 |
fi |
238 |
|
239 |
if use lirc_devices_xboxusb; then |
240 |
add_device atiusb "device xboxusb" |
241 |
fi |
242 |
|
243 |
if use lirc_devices_usbirboy; then |
244 |
add_device userspace "device usbirboy" |
245 |
LIRC_DRIVER_DEVICE="/dev/usbirboy" |
246 |
fi |
247 |
|
248 |
if [[ "${MY_OPTS}" == "" ]]; then |
249 |
if [[ "${PROFILE_ARCH}" == "xbox" ]]; then |
250 |
# on xbox: use special driver |
251 |
add_device atiusb "device xboxusb" |
252 |
else |
253 |
# no driver requested |
254 |
elog |
255 |
elog "Compiling only the lirc-applications, but no drivers." |
256 |
elog "Enable drivers with LIRC_DEVICES if you need them." |
257 |
MY_OPTS="--with-driver=userspace" |
258 |
fi |
259 |
fi |
260 |
fi |
261 |
|
262 |
use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" |
263 |
use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" |
264 |
|
265 |
if [[ -n "${LIRC_OPTS}" ]] ; then |
266 |
ewarn |
267 |
ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." |
268 |
ewarn |
269 |
ewarn "Please use LIRC_DEVICES from now on." |
270 |
ewarn "e.g. LIRC_DEVICES=\"serial sir\"" |
271 |
ewarn |
272 |
ewarn "Flags are now set per use-flags." |
273 |
ewarn "e.g. transmitter, hardware-carrier" |
274 |
|
275 |
local opt |
276 |
local unsupported_opts="" |
277 |
|
278 |
# test for allowed options for LIRC_OPTS |
279 |
for opt in ${LIRC_OPTS}; do |
280 |
case ${opt} in |
281 |
--with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) |
282 |
MY_OPTS="${MY_OPTS} ${opt}" |
283 |
;; |
284 |
*) |
285 |
unsupported_opts="${unsupported_opts} ${opt}" |
286 |
;; |
287 |
esac |
288 |
done |
289 |
if [[ -n ${unsupported_opts} ]]; then |
290 |
ewarn "These options are no longer allowed to be set" |
291 |
ewarn "with LIRC_OPTS: ${unsupported_opts}" |
292 |
die "LIRC_OPTS is no longer recommended." |
293 |
fi |
294 |
fi |
295 |
|
296 |
# Setup parameter for linux-mod.eclass |
297 |
MODULE_NAMES="lirc(misc:${S})" |
298 |
BUILD_TARGETS="all" |
299 |
|
300 |
ECONF_PARAMS=" --localstatedir=/var |
301 |
--with-syslog=LOG_DAEMON |
302 |
--enable-sandboxed |
303 |
--with-kerneldir=${KV_DIR} |
304 |
--with-moduledir=/lib/modules/${KV_FULL}/misc |
305 |
$(use_enable debug) |
306 |
$(use_with X x) |
307 |
${MY_OPTS}" |
308 |
|
309 |
einfo |
310 |
einfo "lirc-configure-opts: ${MY_OPTS}" |
311 |
elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" |
312 |
|
313 |
filter-flags -Wl,-O1 |
314 |
|
315 |
# force non-parallel make, Bug 196134 |
316 |
MAKEOPTS="${MAKEOPTS} -j1" |
317 |
} |
318 |
|
319 |
src_unpack() { |
320 |
unpack ${A} |
321 |
cd "${S}" |
322 |
|
323 |
# Rip out dos CRLF |
324 |
edos2unix contrib/lirc.rules |
325 |
|
326 |
# Apply patches needed for some special device-types |
327 |
epatch "${FILESDIR}"/${P}-imon-pad2keys.patch |
328 |
use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch |
329 |
|
330 |
# remove parallel driver on SMP systems |
331 |
if linux_chkconfig_present SMP ; then |
332 |
sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am |
333 |
fi |
334 |
|
335 |
# Bug #187418 |
336 |
if kernel_is ge 2 6 22 ; then |
337 |
ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+" |
338 |
sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am |
339 |
fi |
340 |
|
341 |
# respect CFLAGS |
342 |
sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac |
343 |
|
344 |
# setting default device-node |
345 |
local f |
346 |
for f in configure.ac acconfig.h; do |
347 |
[[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f" |
348 |
done |
349 |
echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h |
350 |
|
351 |
eautoreconf |
352 |
} |
353 |
|
354 |
src_install() { |
355 |
emake DESTDIR="${D}" install || die "emake install failed" |
356 |
|
357 |
newinitd "${FILESDIR}"/lircd-0.8.3 lircd |
358 |
newinitd "${FILESDIR}"/lircmd lircmd |
359 |
newconfd "${FILESDIR}"/lircd.conf.2 lircd |
360 |
|
361 |
insinto /etc/modprobe.d/ |
362 |
newins "${FILESDIR}"/modprobed.lirc lirc |
363 |
|
364 |
newinitd "${FILESDIR}"/irexec-initd irexec |
365 |
newconfd "${FILESDIR}"/irexec-confd irexec |
366 |
|
367 |
if use doc ; then |
368 |
dohtml doc/html/*.html |
369 |
insinto /usr/share/doc/${PF}/images |
370 |
doins doc/images/* |
371 |
fi |
372 |
|
373 |
insinto /usr/share/lirc/remotes |
374 |
doins -r remotes/* |
375 |
} |
376 |
|
377 |
pkg_preinst() { |
378 |
linux-mod_pkg_preinst |
379 |
|
380 |
# stop portage from deleting this file |
381 |
if [[ -f ${ROOT}/etc/lircd.conf && ! -f ${D}/etc/lircd.conf ]]; then |
382 |
cp "${ROOT}"/etc/lircd.conf "${D}"/etc/lircd.conf |
383 |
fi |
384 |
} |
385 |
|
386 |
pkg_postinst() { |
387 |
linux-mod_pkg_postinst |
388 |
echo |
389 |
elog "The lirc Linux Infrared Remote Control Package has been" |
390 |
elog "merged, please read the documentation at http://www.lirc.org" |
391 |
echo |
392 |
|
393 |
if kernel_is ge 2 6 22 ; then |
394 |
# Bug #187418 |
395 |
ewarn |
396 |
ewarn "The lirc_gpio driver will not work with Kernels 2.6.22+" |
397 |
ewarn "You need to switch over to /dev/input/event? if you need gpio" |
398 |
ewarn "This device can than then be used via lirc's dev/input driver." |
399 |
ewarn |
400 |
fi |
401 |
|
402 |
elog |
403 |
elog "lirc now uses normal config-protection for lircd.conf." |
404 |
elog "If you need any other lircd.conf you may have a look at" |
405 |
elog "the directory /usr/share/lirc/remotes" |
406 |
} |