summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-06-26 09:58:13 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-06-26 09:58:13 +0000
commit199cd7c059d2bc609b0c10881b83775e58293a0d (patch)
tree499805dcc4766b6bfadc19680b63382280c88077
parentAdd patch to fix vbi decoding with kernels 2.6.16 and greater. Thanks to Sir ... (diff)
downloadhistorical-199cd7c059d2bc609b0c10881b83775e58293a0d.tar.gz
historical-199cd7c059d2bc609b0c10881b83775e58293a0d.tar.bz2
historical-199cd7c059d2bc609b0c10881b83775e58293a0d.zip
Added support for using external-driver-ebuild usbirboy. Degraded keywords to only ~x86.
Package-Manager: portage-2.1.1_pre1-r2
-rw-r--r--app-misc/lirc/ChangeLog8
-rw-r--r--app-misc/lirc/Manifest21
-rw-r--r--app-misc/lirc/files/digest-lirc-0.8.0-r23
-rw-r--r--app-misc/lirc/lirc-0.8.0-r2.ebuild269
4 files changed, 293 insertions, 8 deletions
diff --git a/app-misc/lirc/ChangeLog b/app-misc/lirc/ChangeLog
index 9888849ac0af..87a0d9470317 100644
--- a/app-misc/lirc/ChangeLog
+++ b/app-misc/lirc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/lirc
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.91 2006/06/21 16:15:40 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.92 2006/06/26 09:58:13 zzam Exp $
+
+*lirc-0.8.0-r2 (26 Jun 2006)
+
+ 26 Jun 2006; Matthias Schwarzott <zzam@gentoo.org> +lirc-0.8.0-r2.ebuild:
+ Added support for using external-driver-ebuild usbirboy. Degraded keywords
+ to only ~x86.
21 Jun 2006; Matthias Schwarzott <zzam@gentoo.org>
+files/lirc-0.8.0-kernel-2.6.17.diff, lirc-0.8.0.ebuild,
diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest
index ef130fac74b6..57f471f25497 100644
--- a/app-misc/lirc/Manifest
+++ b/app-misc/lirc/Manifest
@@ -50,14 +50,18 @@ EBUILD lirc-0.8.0-r1.ebuild 6743 RMD160 72aab41678810d192dd4cf629f3efec63c0e6a44
MD5 4db38d253454d6ce049d0c2db751eaf0 lirc-0.8.0-r1.ebuild 6743
RMD160 72aab41678810d192dd4cf629f3efec63c0e6a44 lirc-0.8.0-r1.ebuild 6743
SHA256 e56dca78e635acb65b90b4732f5df208b23002ba4bde394e7c3f894c294617be lirc-0.8.0-r1.ebuild 6743
+EBUILD lirc-0.8.0-r2.ebuild 6941 RMD160 4af7193afab6572c49ee9a660e12de89cdbaac01 SHA1 fb7e7d047af22b55978ec7359bde1b2dfe3ef56a SHA256 986f00c27e91ce5ebb3421497027308fc57335a199bf86e8a7ad89833d9c83c4
+MD5 ac9d6dc8ec4751c784f1f428f90bc939 lirc-0.8.0-r2.ebuild 6941
+RMD160 4af7193afab6572c49ee9a660e12de89cdbaac01 lirc-0.8.0-r2.ebuild 6941
+SHA256 986f00c27e91ce5ebb3421497027308fc57335a199bf86e8a7ad89833d9c83c4 lirc-0.8.0-r2.ebuild 6941
EBUILD lirc-0.8.0.ebuild 4635 RMD160 09ac19f3e6bf39258c47a17add50703cc9d33ace SHA1 441fb323f3006ebba674e809463d5fd10f564ee5 SHA256 f334393e6c5df0955a3e78e2972ba233c22a387c751a24625381e424ef45907c
MD5 496ea6a6bebb3997af467d508086e3a9 lirc-0.8.0.ebuild 4635
RMD160 09ac19f3e6bf39258c47a17add50703cc9d33ace lirc-0.8.0.ebuild 4635
SHA256 f334393e6c5df0955a3e78e2972ba233c22a387c751a24625381e424ef45907c lirc-0.8.0.ebuild 4635
-MISC ChangeLog 13673 RMD160 927dad49488a0280fd792f1466c2bf40cba3a191 SHA1 a2c6065327a3efb4ca605d5638f57f81ca8b9b80 SHA256 f4a1ac8909e0710ba627d93bd3e271b80dfb762244266975b3a535df614cf68c
-MD5 bbaaa6df0032e8fa41dafb0b6630fe26 ChangeLog 13673
-RMD160 927dad49488a0280fd792f1466c2bf40cba3a191 ChangeLog 13673
-SHA256 f4a1ac8909e0710ba627d93bd3e271b80dfb762244266975b3a535df614cf68c ChangeLog 13673
+MISC ChangeLog 13873 RMD160 0cb57fd4e3e16942e4fc55205ac7ecdd8e04b4eb SHA1 fd4a66b8f3ccff5d4f3ebe4f87c2febb708bfd84 SHA256 cc6cad6a3631fd40e717e6be1ae974dbe66ea2a2306585a9ea2ebde434bf5e56
+MD5 cafdcd3e2ce1a21c8c7cdc70a54d5c8f ChangeLog 13873
+RMD160 0cb57fd4e3e16942e4fc55205ac7ecdd8e04b4eb ChangeLog 13873
+SHA256 cc6cad6a3631fd40e717e6be1ae974dbe66ea2a2306585a9ea2ebde434bf5e56 ChangeLog 13873
MISC metadata.xml 252 RMD160 e1c170c221f61fa9787a04feac90fab777639d88 SHA1 9fdd5da8466c39d7ff3b40412c4dfa77dd2446b7 SHA256 4e8b5c34b3e50b781a18c9be9e6199442f1b0299e00d66ba35024f8b743b9c32
MD5 abf8a9c4b96bc3bb50f04a48349dae34 metadata.xml 252
RMD160 e1c170c221f61fa9787a04feac90fab777639d88 metadata.xml 252
@@ -74,10 +78,13 @@ SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/di
MD5 17322bfb3604e1c6663bbc5a6fb80e96 files/digest-lirc-0.8.0-r1 235
RMD160 efdbebbf9c02e761392c245f3ee1df0938778785 files/digest-lirc-0.8.0-r1 235
SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/digest-lirc-0.8.0-r1 235
+MD5 17322bfb3604e1c6663bbc5a6fb80e96 files/digest-lirc-0.8.0-r2 235
+RMD160 efdbebbf9c02e761392c245f3ee1df0938778785 files/digest-lirc-0.8.0-r2 235
+SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/digest-lirc-0.8.0-r2 235
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
-iD8DBQFEmXC3ZfSl1Kp5KmoRAjiGAJ9qWmb/4NRKseQPDIXx+KWGf/Hw9ACg4NqH
-VkcR5oNgfTx4EPY/x87HpCs=
-=XGEg
+iD8DBQFEn6/CZfSl1Kp5KmoRAuArAJoCwWAjF2o4vsRBg/qbCCwJYFqZYQCdEkON
+KQeKEM+Y3RIgpkbnKt51ioY=
+=pyVT
-----END PGP SIGNATURE-----
diff --git a/app-misc/lirc/files/digest-lirc-0.8.0-r2 b/app-misc/lirc/files/digest-lirc-0.8.0-r2
new file mode 100644
index 000000000000..403b24365ee4
--- /dev/null
+++ b/app-misc/lirc/files/digest-lirc-0.8.0-r2
@@ -0,0 +1,3 @@
+MD5 0bf28bf82c7766a462f90927b6bf3af1 lirc-0.8.0.tar.bz2 514359
+RMD160 045c95754820e77891bd0b3baa269ad3f04cba8c lirc-0.8.0.tar.bz2 514359
+SHA256 cc8d7fb41a045278680ea530cffaf05181977f41244b9f0ed64075cd7630b5d2 lirc-0.8.0.tar.bz2 514359
diff --git a/app-misc/lirc/lirc-0.8.0-r2.ebuild b/app-misc/lirc/lirc-0.8.0-r2.ebuild
new file mode 100644
index 000000000000..c23fd4a78947
--- /dev/null
+++ b/app-misc/lirc/lirc-0.8.0-r2.ebuild
@@ -0,0 +1,269 @@
+# Copyright 1999-2006 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-r2.ebuild,v 1.1 2006/06/26 09:58:13 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."
+HOMEPAGE="http://www.lirc.org"
+
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="alsa debug doc X usb hardware-carrier transmitter"
+KEYWORDS="~x86"
+SRC_URI="mirror://sourceforge/lirc/${P/_pre/pre}.tar.bz2"
+
+S=${WORKDIR}/${P/_pre/pre}
+
+
+IUSE_LIRC_DEVICES_DIRECT="
+ all userspace act200l act220l
+ adaptec alsa_usb animax atilibusb
+ atiusb audio audio_alsa avermedia avermedia_vdomate
+ avermedia98 bestbuy bestbuy2 breakoutbox
+ bte bw6130 caraca chronos cmdir com1 com2 com3 com4
+ cph06x creative creative_infracd
+ devinput digimatrix dsp dvico ea65
+ exaudio flyvideo gvbctv5pci hauppauge
+ hauppauge_dvb hercules_smarttv_stereo
+ igorplugusb imon imon_pad imon_rsc
+ irdeo irdeo_remote irman irreal it87
+ knc_one kworld leadtek_0007 leadtek_0010
+ leadtek_pvr2000 livedrive_midi
+ livedrive_seq logitech lpt1 lpt2 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 serial
+ silitek sir slinke streamzap tekram
+ tekram_bt829 tira tvbox udp uirt2
+ uirt2_raw"
+
+IUSE_LIRC_DEVICES_SPECIAL="imon_pad2keys serial_igor_cesko xboxusb usbirboy"
+IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
+
+
+
+RDEPEND="virtual/libc
+ sys-apps/coreutils
+ X? ( || ( ( x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE )
+ virtual/x11 ) )
+ lirc_devices_alsa_usb? ( media-libs/alsa-lib )
+ lirc_devices_audio? ( media-libs/portaudio )
+ lirc_devices_irman? ( media-libs/libirman )"
+
+
+#device-driver which use libusb
+LIBUSB_USED_BY_DEV="
+ all atiusb sasem igorplugusb imon imon_pad imon_pad2keys
+ imon_rsc streamzap mceusb mceusb2 xboxusb"
+
+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
+ sys-devel/autoconf
+ sys-devel/libtool"
+
+
+# adding only run-time depends
+RDEPEND="${RDEPEND}
+ lirc_devices_usbirboy? ( app-misc/usbirboy )"
+
+
+
+# add all devices to IUSE
+for dev in ${IUSE_LIRC_DEVICES}; do
+ IUSE="${IUSE} lirc_devices_${dev}"
+done
+
+
+add_device() {
+ : $(( 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 "lirc does at the moment support only one driver be compiled at a time."
+ ewarn "Please reduce LIRC_DEVICES to one item."
+ die "Multiple drivers selected for lirc."
+ fi
+
+
+ local dev="${1}"
+ local desc="device ${dev}"
+ if [[ -n "${2}" ]]; then
+ desc="${2}"
+ fi
+
+ einfo "Compiling support for ${desc}"
+ MY_OPTS="${MY_OPTS} --with-driver=${dev}"
+}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ # set default configure options
+ MY_OPTS=""
+ lirc_driver_count=0
+
+ local dev
+
+ 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
+ for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
+ if use lirc_devices_${dev}; then
+ add_device ${dev}
+ fi
+ done
+
+ 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)"
+ fi
+
+ if use lirc_devices_xboxusb; then
+ add_device atiusb "device xboxusb"
+ fi
+
+ if use lirc_devices_usbirboy; then
+ add_device userspace "device 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
+ einfo
+ einfo "Compiling only the lirc-applications, but no drivers."
+ einfo "Enable drivers with LIRC_DEVICES if you need them."
+ MY_OPTS="--with-driver=none"
+ 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
+
+ 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)
+ ${MY_OPTS}
+ CPPFLAGS=-DLIRC_HAVE_DEVFS"
+
+ einfo
+ einfo "lirc-configure-opts: ${MY_OPTS}"
+
+ export WANT_AUTOCONF=2.5
+ filter-flags -Wl,-O1
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-kernel-2.6.16.diff
+ epatch ${FILESDIR}/${P}-kernel-2.6.17.diff
+
+ use lirc_devices_xboxusb && epatch ${FILESDIR}/lirc-0.8.0pre4-xbox-remote.diff
+ use lirc_devices_imon_pad2keys && epatch ${FILESDIR}/${P}-imon-pad2keys.patch
+
+ # remove parallel driver on SMP systems
+ if linux_chkconfig_present SMP ; then
+ sed -i -e "s:lirc_parallel::" drivers/Makefile.in
+ fi
+
+ sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.in
+
+ eautoreconf || "autoreconf failed"
+}
+
+
+src_install() {
+ make DESTDIR=${D} install || die "make install failed"
+
+ newinitd ${FILESDIR}/lircd lircd
+ newinitd ${FILESDIR}/lircmd lircmd
+ newconfd ${FILESDIR}/lircd.conf lircd
+
+ has_version sys-fs/udev && (
+ insinto /etc/udev/rules.d/;
+ newins ${S}/contrib/lirc.rules 10-lirc.rules )
+
+ if use doc ; then
+ dohtml doc/html/*.html
+ insinto /usr/share/doc/${PF}/images
+ doins doc/images/*
+ fi
+}
+
+pkg_preinst() {
+ linux-mod_pkg_preinst
+ [[ -f "${ROOT}/etc/lircd.conf" ]] && cp ${ROOT}/etc/lircd.conf ${IMAGE}/etc
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+ echo
+ einfo "The lirc Linux Infrared Remote Control Package has been"
+ einfo "merged, please read the documentation at http://www.lirc.org"
+ echo
+}
+