Gentoo Archives: gentoo-commits

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