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