Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/lirc/
Date: Tue, 26 Apr 2016 17:54:01
Message-Id: 1461693226.5198ef950a5b39e2ec4ca5d939285f411e7b2150.wizardedit@gentoo
1 commit: 5198ef950a5b39e2ec4ca5d939285f411e7b2150
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 26 17:52:45 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 26 17:53:46 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5198ef95
7
8 app-misc/lirc: remove lirc-0.9.0-r5
9
10 Package-Manager: portage-2.2.26
11
12 app-misc/lirc/lirc-0.9.0-r5.ebuild | 429 -------------------------------------
13 1 file changed, 429 deletions(-)
14
15 diff --git a/app-misc/lirc/lirc-0.9.0-r5.ebuild b/app-misc/lirc/lirc-0.9.0-r5.ebuild
16 deleted file mode 100644
17 index 4cbefa6..0000000
18 --- a/app-misc/lirc/lirc-0.9.0-r5.ebuild
19 +++ /dev/null
20 @@ -1,429 +0,0 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=4
26 -
27 -inherit eutils linux-mod linux-info systemd toolchain-funcs flag-o-matic autotools
28 -
29 -DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
30 -HOMEPAGE="http://www.lirc.org/"
31 -
32 -MY_P=${PN}-${PV/_/}
33 -
34 -if [[ "${PV/_pre/}" = "${PV}" ]]; then
35 - SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
36 -else
37 - SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
38 -fi
39 -
40 -LICENSE="GPL-2"
41 -SLOT="0"
42 -KEYWORDS="amd64 ppc ppc64 x86"
43 -IUSE="debug doc hardware-carrier transmitter static-libs X"
44 -
45 -S="${WORKDIR}/${MY_P}"
46 -
47 -RDEPEND="
48 - X? (
49 - x11-libs/libX11
50 - x11-libs/libSM
51 - x11-libs/libICE
52 - )
53 - lirc_devices_alsa_usb? ( media-libs/alsa-lib )
54 - lirc_devices_audio? ( >media-libs/portaudio-18 )
55 - lirc_devices_irman? ( media-libs/libirman )"
56 -
57 -# 2012-07-17, Ian Stakenvicius
58 -# A helper script that scrapes out values for nearly all of the variables below
59 -# from lirc's configure.ac is available at
60 -# https://dev.gentoo.org/~axs/helper-for-lirc-iuse.sh
61 -
62 -# This are drivers with names matching the
63 -# parameter --with-driver=NAME
64 -IUSE_LIRC_DEVICES_DIRECT="
65 - all userspace accent act200l act220l
66 - adaptec alsa_usb animax asusdh atilibusb
67 - atiusb audio audio_alsa avermedia avermedia_vdomate
68 - avermedia98 awlibusb bestbuy bestbuy2 breakoutbox
69 - bte bw6130 caraca chronos commandir
70 - cph06x creative creative_infracd
71 - devinput digimatrix dsp dvico ea65 ene0100
72 - exaudio flyvideo ftdi gvbctv5pci hauppauge
73 - hauppauge_dvb hercules_smarttv_stereo i2cuser
74 - igorplugusb iguanaIR imon imon_24g imon_knob
75 - imon_lcd imon_pad imon_rsc irdeo irdeo_remote
76 - irlink irman irreal it87 ite8709
77 - knc_one kworld leadtek_0007 leadtek_0010
78 - leadtek_pvr2000 livedrive_midi
79 - livedrive_seq logitech macmini
80 - mediafocusI mouseremote
81 - mouseremote_ps2 mp3anywhere mplay nslu2
82 - packard_bell parallel pcmak pcmak_usb
83 - pctv pixelview_bt878 pixelview_pak
84 - pixelview_pro provideo realmagic
85 - remotemaster sa1100 samsung sasem sb0540 serial
86 - silitek sir slinke streamzap tekram
87 - tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
88 - uirt2_raw usb_uirt_raw usbx wpc8769l zotac"
89 -
90 -# drivers that need special handling and
91 -# must have another name specified for
92 -# parameter --with-driver=NAME
93 -IUSE_LIRC_DEVICES_SPECIAL="
94 - serial_igor_cesko
95 - remote_wonder_plus xboxusb inputlirc"
96 -
97 -IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
98 -
99 -# The following are lists which are used to provide ewarns on incompatibilities
100 -# with the kernel:
101 -
102 -#drivers that do not build kernel modules
103 -NO_KMOD_BUILT_FOR_DEV="
104 - accent bte creative creative_infracd devinput dsp ea65 exaudio
105 - ftdi i2cuser irlink irreal livedrive_midi livedrive_seq logitech
106 - mediafocusI mouseremote mouseremote_ps2 mp3anywhere mplay mplay2
107 - pcmak pcmak_usb pctv realmagic remotemaster silitek tira tira_raw
108 - tuxbox udp uirt2 uirt2_raw usb_uirt_raw usbx"
109 -
110 -#drivers that build lirc_dev and so will conflict with kernel lirc_dev
111 -LIRCDEV_BUILT_FOR_DEV="all
112 - act200l act220l adaptec animax atiusb breakoutbox hauppauge
113 - hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_24g
114 - imon_knob imon_lcd imon_pad imon_rsc irdeo irdeo_remote knc_one
115 - leadtek_pvr2000 nslu2 packard_bell parallel pixelview_bt878
116 - provideo sa1100 sasem serial sir tekram tekram_bt829 ttusbir
117 - tvbox wpc8769l zotac"
118 -
119 -#lirc_gpio drivers, which cannot be supported on kernel >= 2.6.22
120 -LIRC_GPIO_DEV="
121 - avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 chronos
122 - cph03x cph06x flyvideo gvbctv5pci kworld leadtek_0007 leadtek_0010
123 - pixelview_pak pixelview_pro"
124 -
125 -#device-driver which use libusb
126 -LIBUSB_USED_BY_DEV="
127 - all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad
128 - imon_rsc streamzap xboxusb irlink commandir"
129 -
130 -for dev in ${LIBUSB_USED_BY_DEV}; do
131 - DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )"
132 -done
133 -
134 -# adding only compile-time depends
135 -DEPEND="${RDEPEND} ${DEPEND}
136 - virtual/linux-sources
137 - lirc_devices_ftdi? ( dev-embedded/libftdi:0 )
138 - lirc_devices_all? ( dev-embedded/libftdi:0 )"
139 -
140 -# adding only run-time depends
141 -RDEPEND="${RDEPEND}
142 - lirc_devices_inputlirc? ( app-misc/inputlircd )
143 - lirc_devices_iguanaIR? ( app-misc/iguanaIR )"
144 -
145 -# add all devices to IUSE
146 -# and ensure lirc_devices_all is not set alongside lirc_devices_*
147 -REQUIRED_USE="lirc_devices_all? ("
148 -for dev in ${IUSE_LIRC_DEVICES}; do
149 - IUSE="${IUSE} lirc_devices_${dev}"
150 - if [[ "${dev}" != "all" ]]; then
151 - REQUIRED_USE="${REQUIRED_USE} !lirc_devices_${dev}"
152 - fi
153 -done
154 -REQUIRED_USE="${REQUIRED_USE} )"
155 -
156 -add_device() {
157 - local dev="${1}"
158 - local desc="device ${dev}"
159 - if [[ -n "${2}" ]]; then
160 - desc="${2}"
161 - fi
162 -
163 - # Bug #187418
164 - if kernel_is ge 2 6 22 && [[ " ${LIRC_GPIO_DEV} " == *" ${dev} "* ]]; then
165 - eerror "${desc} uses lirc_gpio which fails with kernel 2.6.22 or above. Not building."
166 - eerror "Use 'devinput' instead, or use 'userspace' along with in-kernel drivers"
167 - return 0
168 - fi
169 - : ${lirc_device_count:=0}
170 - ((lirc_device_count++))
171 -
172 - elog "Compiling support for ${desc}"
173 -
174 - if [[ " ${LIRCDEV_BUILT_FOR_DEV} " == *" ${dev} "* ]] ; then
175 - if linux_chkconfig_present LIRC ; then
176 - ewarn "${desc} builds lirc_dev and CONFIG_LIRC is set in the kernel -- this may conflict."
177 - fi
178 - if ! linux_chkconfig_present MODULE_UNLOAD ; then
179 - ewarn "${desc} builds modules and CONFIG_MODULE_UNLOAD is unset in kernel."
180 - ewarn "You will need MODULE_UNLOAD support in your kernel."
181 - fi
182 - fi
183 - if [[ " ${NO_KMOD_BUILT_FOR_DEV} " == *" ${dev} "* ]] && ! linux_chkconfig_present IR_LIRC_CODEC ; then
184 - ewarn "${desc} builds no kernel module and CONFIG_IR_LIRC_CODEC is unset in kernel."
185 - fi
186 -
187 - if [[ ${lirc_device_count} -eq 2 ]] ; then
188 - ewarn
189 - ewarn "LIRC_DEVICES has more than one entry."
190 - ewarn "When selecting multiple devices for lirc to be supported,"
191 - ewarn "it can not be guaranteed that the drivers play nice together."
192 - ewarn "If this is not intended, then please adjust LIRC_DEVICES"
193 - ewarn "and re-emerge."
194 - ewarn
195 - fi
196 -
197 - MY_OPTS="${MY_OPTS} --with-driver=${dev}"
198 -}
199 -
200 -pkg_pretend() {
201 - if [[ -n "${LIRC_OPTS}" ]] ; then
202 - ewarn
203 - ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
204 - ewarn
205 - ewarn "Please use LIRC_DEVICES from now on."
206 - ewarn "e.g. LIRC_DEVICES=\"serial sir\""
207 - ewarn
208 - ewarn "Flags are now set per use-flags."
209 - ewarn "e.g. transmitter, hardware-carrier"
210 -
211 - local opt
212 - local unsupported_opts=""
213 -
214 - # test for allowed options for LIRC_OPTS
215 - for opt in ${LIRC_OPTS}; do
216 - case ${opt} in
217 - --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
218 - MY_OPTS="${MY_OPTS} ${opt}"
219 - ;;
220 - *)
221 - unsupported_opts="${unsupported_opts} ${opt}"
222 - ;;
223 - esac
224 - done
225 - if [[ -n ${unsupported_opts} ]]; then
226 - eerror "These options are no longer allowed to be set"
227 - eerror "with LIRC_OPTS: ${unsupported_opts}"
228 - die "LIRC_OPTS is no longer supported, use LIRC_DEVICES."
229 - fi
230 - fi
231 -}
232 -
233 -pkg_setup() {
234 - linux-mod_pkg_setup
235 -
236 - # set default configure options
237 - MY_OPTS=""
238 - LIRC_DRIVER_DEVICE="/dev/lirc0"
239 -
240 - if use lirc_devices_all; then
241 - # compile in drivers for a lot of devices
242 - add_device all "a lot of devices"
243 - else
244 - # compile in only requested drivers
245 - local dev
246 - for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
247 - if use lirc_devices_${dev}; then
248 - add_device ${dev}
249 - fi
250 - done
251 -
252 - if use lirc_devices_remote_wonder_plus; then
253 - add_device atiusb "device Remote Wonder Plus (atiusb-based)"
254 - fi
255 -
256 - if use lirc_devices_serial_igor_cesko; then
257 - add_device serial "serial with Igor Cesko design"
258 - MY_OPTS="${MY_OPTS} --with-igor"
259 - fi
260 -
261 - if use lirc_devices_imon_pad; then
262 - ewarn "The imon_pad driver has incorporated the previous pad2keys patch"
263 - ewarn "and removed the pad2keys_active option for the lirc_imon module"
264 - ewarn "because it is always active."
265 - ewarn "If you have an older imon VFD device, you may need to add the module"
266 - ewarn "option display_type=1 to override autodetection and force VFD mode."
267 - fi
268 -
269 - if use lirc_devices_xboxusb; then
270 - add_device atiusb "device xboxusb"
271 - fi
272 -
273 - if [[ "${MY_OPTS}" == "" ]]; then
274 - if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
275 - # on xbox: use special driver
276 - add_device atiusb "device xboxusb"
277 - else
278 - # no driver requested
279 - elog
280 - elog "Compiling only the lirc-applications, but no drivers."
281 - elog "Enable drivers with LIRC_DEVICES if you need them."
282 - MY_OPTS="--with-driver=none"
283 - fi
284 - fi
285 - fi
286 -
287 - use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
288 - use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
289 -
290 - einfo
291 - einfo "lirc-configure-opts: ${MY_OPTS}"
292 - elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
293 -
294 - filter-flags -Wl,-O1
295 -}
296 -
297 -src_prepare() {
298 - # Rip out dos CRLF
299 - edos2unix contrib/lirc.rules
300 -
301 - # Apply patches needed for some special device-types
302 - use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch
303 - use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
304 -
305 - # Apply fixes for kernel-2.6.39 and above
306 - epatch "${FILESDIR}"/${P}-kernel-2.6.39-fixes.patch
307 - # Slightly massaged upstream patch to fix kfifo issues >=2.6.38
308 - # for bug 377033
309 - epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch
310 - # Apply fixes for kernel-3.3 and above (bug 439538)
311 - epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch
312 - # Apply fix for missing err() in usb.h for kernel 3.5+ (bug 444736)
313 - epatch "${FILESDIR}"/${P}-kernel-3.5-err-fix.patch
314 - # Apply fix for missing __devinit __devexit defines in kernel 3.8+ (bug 461532)
315 - epatch "${FILESDIR}"/${P}-kernel-3.8-fixes.patch
316 - # Add support for zotac remote, bug 342848
317 - epatch "${FILESDIR}"/${P}-add-zotac-support.patch
318 - # Use fixed font
319 - epatch "${FILESDIR}"/${P}-fixed-font.patch
320 -
321 - # Do not build drivers from the top-level Makefile
322 - sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am
323 -
324 - # remove parallel driver on SMP systems
325 - if linux_chkconfig_present SMP ; then
326 - sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
327 - fi
328 -
329 - # Bug #187418 - only need this part for lirc_devices_all as others die in pkg_setup
330 - if use lirc_devices_all && kernel_is ge 2 6 22 ; then
331 - ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
332 - sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
333 - fi
334 -
335 - # respect CFLAGS
336 - sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
337 -
338 - # setting default device-node
339 - local f
340 - for f in configure.ac acconfig.h; do
341 - [[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
342 - done
343 - echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
344 -
345 - sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die # automake 1.13
346 - eautoreconf
347 -}
348 -
349 -src_configure() {
350 - econf \
351 - --localstatedir=/var \
352 - --with-syslog=LOG_DAEMON \
353 - --enable-sandboxed \
354 - --with-kerneldir="${KV_DIR}" \
355 - --with-moduledir="/lib/modules/${KV_FULL}/misc" \
356 - $(use_enable debug) \
357 - $(use_enable static-libs static) \
358 - $(use_with X x) \
359 - ${MY_OPTS} \
360 - ABI="${KERNEL_ABI}" \
361 - ARCH="$(tc-arch-kernel)"
362 -}
363 -
364 -src_compile() {
365 - # force non-parallel make, Bug 196134 (confirmed valid for 0.9.0-r2)
366 - emake -j1
367 -
368 - MODULE_NAMES="lirc(misc:${S}/drivers)"
369 - BUILD_TARGETS="all"
370 - linux-mod_src_compile
371 -}
372 -
373 -src_install() {
374 - emake DESTDIR="${D}" install
375 - emake -C drivers DESTDIR="${D}" install
376 -
377 - newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
378 - newinitd "${FILESDIR}"/lircmd lircmd
379 - newconfd "${FILESDIR}"/lircd.conf.4 lircd
380 -
381 - insinto /etc/modprobe.d/
382 - newins "${FILESDIR}"/modprobed.lirc lirc.conf
383 -
384 - newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec
385 - newconfd "${FILESDIR}"/irexec-confd irexec
386 -
387 - systemd_dounit "${FILESDIR}"/irexec.service
388 - systemd_dounit "${FILESDIR}"/lirc.service
389 - systemd_dounit "${FILESDIR}"/lircm.service
390 -
391 - if use doc ; then
392 - dohtml doc/html/*.html
393 - insinto /usr/share/doc/${PF}/images
394 - doins doc/images/*
395 - fi
396 -
397 - insinto /usr/share/lirc/remotes
398 - doins -r remotes/*
399 -
400 - keepdir /etc/lirc
401 - if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
402 - newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
403 - fi
404 -
405 - use static-libs || rm "${D}/usr/$(get_libdir)/liblirc_client.la"
406 -}
407 -
408 -pkg_preinst() {
409 - linux-mod_pkg_preinst
410 -
411 - local dir="${EROOT}/etc/modprobe.d"
412 - if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
413 - elog "Renaming ${dir}/lirc to lirc.conf"
414 - mv -f "${dir}/lirc" "${dir}/lirc.conf"
415 - fi
416 -
417 - # copy the first file that can be found
418 - if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
419 - cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf
420 - elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
421 - cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf
422 - MOVE_OLD_LIRCD_CONF=1
423 - elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
424 - cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf
425 - fi
426 -
427 - # stop portage from touching the config file
428 - if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
429 - rm -f "${D}"/etc/lirc/lircd.conf
430 - fi
431 -}
432 -
433 -pkg_postinst() {
434 - linux-mod_pkg_postinst
435 -
436 - # copy config file to new location
437 - # without portage knowing about it
438 - # so it will not delete it on unmerge or ever touch it again
439 - if [[ -e "${T}"/lircd.conf ]]; then
440 - cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf
441 - if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
442 - elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
443 - rm -f "${EROOT}"/etc/lircd.conf
444 - fi
445 - fi
446 -
447 - einfo "The new default location for lircd.conf is inside of"
448 - einfo "/etc/lirc/ directory"
449 -}