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