* [gentoo-commits] gentoo-x86 commit in app-misc/lirc: lirc-0.8.0-r8.ebuild ChangeLog lirc-0.8.4.ebuild
@ 2008-10-12 19:55 Matthias Schwarzott (zzam)
0 siblings, 0 replies; only message in thread
From: Matthias Schwarzott (zzam) @ 2008-10-12 19:55 UTC (permalink / raw
To: gentoo-commits
zzam 08/10/12 19:55:53
Modified: lirc-0.8.0-r8.ebuild ChangeLog
Added: lirc-0.8.4.ebuild
Log:
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.
(Portage version: 2.2_rc12/cvs/Linux 2.6.25-tuxonice-r6 i686)
Revision Changes Path
1.16 app-misc/lirc/lirc-0.8.0-r8.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild?rev=1.16&view=markup
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
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild?r1=1.15&r2=1.16
Index: lirc-0.8.0-r8.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- lirc-0.8.0-r8.ebuild 13 Oct 2007 09:20:15 -0000 1.15
+++ lirc-0.8.0-r8.ebuild 12 Oct 2008 19:55:53 -0000 1.16
@@ -1,11 +1,10 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $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 $
+# $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 $
inherit eutils linux-mod flag-o-matic autotools
-DESCRIPTION="LIRC is a package that allows you to decode and send infra-red \
- signals of many (but not all) commonly used remote controls."
+DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
HOMEPAGE="http://www.lirc.org"
SLOT="0"
1.189 app-misc/lirc/ChangeLog
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/ChangeLog?rev=1.189&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/ChangeLog?rev=1.189&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/ChangeLog?r1=1.188&r2=1.189
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -r1.188 -r1.189
--- ChangeLog 12 Oct 2008 19:18:59 -0000 1.188
+++ ChangeLog 12 Oct 2008 19:55:53 -0000 1.189
@@ -1,6 +1,15 @@
# ChangeLog for app-misc/lirc
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.188 2008/10/12 19:18:59 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.189 2008/10/12 19:55:53 zzam Exp $
+
+*lirc-0.8.4 (12 Oct 2008)
+
+ 12 Oct 2008; Matthias Schwarzott <zzam@gentoo.org>
+ +files/lirc-0.8.4-imon-pad2keys.patch, lirc-0.8.0-r8.ebuild,
+ +lirc-0.8.4.ebuild:
+ 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.
12 Oct 2008; Matthias Schwarzott <zzam@gentoo.org> files/lircd.conf.2:
Fix config example for devinput, Bug #235107
1.1 app-misc/lirc/lirc-0.8.4.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/lirc-0.8.4.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lirc/lirc-0.8.4.ebuild?rev=1.1&content-type=text/plain
Index: lirc-0.8.4.ebuild
===================================================================
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.4.ebuild,v 1.1 2008/10/12 19:55:53 zzam Exp $
inherit eutils linux-mod flag-o-matic autotools
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
HOMEPAGE="http://www.lirc.org/"
MY_P=${PN}-${PV/_/}
if [[ "${PV/_pre/}" = "${PV}" ]]; then
SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
else
SRC_URI="http://lirc.sourceforge.net/software/snapshots/${MY_P}.tar.bz2"
fi
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="debug doc X hardware-carrier transmitter"
S="${WORKDIR}/${MY_P}"
RDEPEND="
X? (
x11-libs/libX11
x11-libs/libSM
x11-libs/libICE
)
lirc_devices_alsa_usb? ( media-libs/alsa-lib )
lirc_devices_audio? ( media-libs/portaudio )
lirc_devices_irman? ( media-libs/libirman )"
# This are drivers with names matching the
# parameter --with-driver=NAME
IUSE_LIRC_DEVICES_DIRECT="
all userspace accent act200l act220l
adaptec alsa_usb animax asusdh atilibusb
atiusb audio audio_alsa avermedia avermedia_vdomate
avermedia98 bestbuy bestbuy2 breakoutbox
bte bw6130 caraca chronos cmdir
cph06x creative creative_infracd
devinput digimatrix dsp dvico ea65
exaudio flyvideo gvbctv5pci hauppauge
hauppauge_dvb hercules_smarttv_stereo
igorplugusb imon imon_knob imon_lcd imon_pad imon_rsc
irdeo irdeo_remote irman irreal it87
knc_one kworld leadtek_0007 leadtek_0010
leadtek_pvr2000 livedrive_midi
livedrive_seq logitech macmini mceusb
mceusb2 mediafocusI mouseremote
mouseremote_ps2 mp3anywhere nslu2
packard_bell parallel pcmak pcmak_usb
pctv pixelview_bt878 pixelview_pak
pixelview_pro provideo realmagic
remotemaster sa1100 sasem sb0540 serial
silitek sir slinke streamzap tekram
tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
uirt2_raw usb_uirt_raw usbx
irlink commandir ite8709 samsung"
# drivers that need special handling and
# must have another name specified for
# parameter --with-driver=NAME
IUSE_LIRC_DEVICES_SPECIAL="
imon_pad2keys serial_igor_cesko
remote_wonder_plus xboxusb usbirboy inputlirc"
IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
#device-driver which use libusb
LIBUSB_USED_BY_DEV="
all atilibusb sasem igorplugusb imon imon_lcd imon_pad imon_pad2keys
imon_rsc streamzap mceusb mceusb2 xboxusb irlink commandir"
for dev in ${LIBUSB_USED_BY_DEV}; do
RDEPEND="${RDEPEND} lirc_devices_${dev}? ( dev-libs/libusb )"
done
# adding only compile-time depends
DEPEND="${RDEPEND}
virtual/linux-sources"
# adding only run-time depends
RDEPEND="${RDEPEND}
lirc_devices_usbirboy? ( app-misc/usbirboy )
lirc_devices_inputlirc? ( app-misc/inputlircd )"
# add all devices to IUSE
for dev in ${IUSE_LIRC_DEVICES}; do
IUSE="${IUSE} lirc_devices_${dev}"
done
add_device() {
: ${lirc_device_count:=0}
((lirc_device_count++))
if [[ ${lirc_device_count} -eq 2 ]]; then
ewarn
ewarn "When selecting multiple devices for lirc to be supported,"
ewarn "it can not be garanteed that the drivers play nice together."
ewarn
ewarn "If this is not intended, then abort emerge now with Ctrl-C,"
ewarn "Set LIRC_DEVICES and restart emerge."
ewarn
epause
fi
local dev="${1}"
local desc="device ${dev}"
if [[ -n "${2}" ]]; then
desc="${2}"
fi
elog "Compiling support for ${desc}"
MY_OPTS="${MY_OPTS} --with-driver=${dev}"
}
pkg_setup() {
CONFIG_CHECK="MODULES MODULE_UNLOAD"
linux-mod_pkg_setup
# set default configure options
MY_OPTS=""
LIRC_DRIVER_DEVICE="/dev/lirc0"
if use lirc_devices_all; then
# compile in drivers for a lot of devices
add_device all "a lot of devices"
else
# compile in only requested drivers
local dev
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
if use lirc_devices_${dev}; then
add_device ${dev}
fi
done
if use lirc_devices_remote_wonder_plus; then
add_device atiusb "device Remote Wonder Plus (atiusb-based)"
fi
if use lirc_devices_serial_igor_cesko; then
add_device serial "serial with Igor Cesko design"
MY_OPTS="${MY_OPTS} --with-igor"
fi
if use lirc_devices_imon_pad2keys; then
add_device imon_pad "device imon_pad (with converting pad input to keyspresses)"
ewarn "You need to set the option pad2keys_active=1"
ewarn "when loading the module lirc_imon"
fi
if use lirc_devices_xboxusb; then
add_device atiusb "device xboxusb"
fi
if use lirc_devices_usbirboy; then
add_device userspace "device usbirboy"
LIRC_DRIVER_DEVICE="/dev/usbirboy"
fi
if [[ "${MY_OPTS}" == "" ]]; then
if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
# on xbox: use special driver
add_device atiusb "device xboxusb"
else
# no driver requested
elog
elog "Compiling only the lirc-applications, but no drivers."
elog "Enable drivers with LIRC_DEVICES if you need them."
MY_OPTS="--with-driver=userspace"
fi
fi
fi
use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
if [[ -n "${LIRC_OPTS}" ]] ; then
ewarn
ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
ewarn
ewarn "Please use LIRC_DEVICES from now on."
ewarn "e.g. LIRC_DEVICES=\"serial sir\""
ewarn
ewarn "Flags are now set per use-flags."
ewarn "e.g. transmitter, hardware-carrier"
local opt
local unsupported_opts=""
# test for allowed options for LIRC_OPTS
for opt in ${LIRC_OPTS}; do
case ${opt} in
--with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
MY_OPTS="${MY_OPTS} ${opt}"
;;
*)
unsupported_opts="${unsupported_opts} ${opt}"
;;
esac
done
if [[ -n ${unsupported_opts} ]]; then
ewarn "These options are no longer allowed to be set"
ewarn "with LIRC_OPTS: ${unsupported_opts}"
die "LIRC_OPTS is no longer recommended."
fi
fi
# Setup parameter for linux-mod.eclass
MODULE_NAMES="lirc(misc:${S})"
BUILD_TARGETS="all"
ECONF_PARAMS=" --localstatedir=/var
--with-syslog=LOG_DAEMON
--enable-sandboxed
--with-kerneldir=${KV_DIR}
--with-moduledir=/lib/modules/${KV_FULL}/misc
$(use_enable debug)
$(use_with X x)
${MY_OPTS}"
einfo
einfo "lirc-configure-opts: ${MY_OPTS}"
elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
filter-flags -Wl,-O1
# force non-parallel make, Bug 196134
MAKEOPTS="${MAKEOPTS} -j1"
}
src_unpack() {
unpack ${A}
cd "${S}"
# Rip out dos CRLF
edos2unix contrib/lirc.rules
# Apply patches needed for some special device-types
epatch "${FILESDIR}"/${P}-imon-pad2keys.patch
use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
# remove parallel driver on SMP systems
if linux_chkconfig_present SMP ; then
sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
fi
# Bug #187418
if kernel_is ge 2 6 22 ; then
ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
fi
# respect CFLAGS
sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
# setting default device-node
local f
for f in configure.ac acconfig.h; do
[[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
done
echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
newinitd "${FILESDIR}"/lircd-0.8.3 lircd
newinitd "${FILESDIR}"/lircmd lircmd
newconfd "${FILESDIR}"/lircd.conf.2 lircd
insinto /etc/modprobe.d/
newins "${FILESDIR}"/modprobed.lirc lirc
newinitd "${FILESDIR}"/irexec-initd irexec
newconfd "${FILESDIR}"/irexec-confd irexec
if use doc ; then
dohtml doc/html/*.html
insinto /usr/share/doc/${PF}/images
doins doc/images/*
fi
insinto /usr/share/lirc/remotes
doins -r remotes/*
}
pkg_preinst() {
linux-mod_pkg_preinst
# stop portage from deleting this file
if [[ -f ${ROOT}/etc/lircd.conf && ! -f ${D}/etc/lircd.conf ]]; then
cp "${ROOT}"/etc/lircd.conf "${D}"/etc/lircd.conf
fi
}
pkg_postinst() {
linux-mod_pkg_postinst
echo
elog "The lirc Linux Infrared Remote Control Package has been"
elog "merged, please read the documentation at http://www.lirc.org"
echo
if kernel_is ge 2 6 22 ; then
# Bug #187418
ewarn
ewarn "The lirc_gpio driver will not work with Kernels 2.6.22+"
ewarn "You need to switch over to /dev/input/event? if you need gpio"
ewarn "This device can than then be used via lirc's dev/input driver."
ewarn
fi
elog
elog "lirc now uses normal config-protection for lircd.conf."
elog "If you need any other lircd.conf you may have a look at"
elog "the directory /usr/share/lirc/remotes"
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-12 19:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-12 19:55 [gentoo-commits] gentoo-x86 commit in app-misc/lirc: lirc-0.8.0-r8.ebuild ChangeLog lirc-0.8.4.ebuild Matthias Schwarzott (zzam)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox