Version bumped.
authorMatthias Schwarzott <zzam@gentoo.org>
Fri, 27 Apr 2007 09:03:26 +0000 (09:03 +0000)
committerMatthias Schwarzott <zzam@gentoo.org>
Fri, 27 Apr 2007 09:03:26 +0000 (09:03 +0000)
Package-Manager: portage-2.1.2.4

app-misc/lirc/ChangeLog
app-misc/lirc/Manifest
app-misc/lirc/files/digest-lirc-0.8.2_pre2 [new file with mode: 0644]
app-misc/lirc/lirc-0.8.2_pre2.ebuild [new file with mode: 0644]

index 567d68814c0e30053c72d4397ca955946d23f77c..17b4e71e6d84478b5053f09f8d1c1488d942018a 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-misc/lirc
 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.140 2007/04/27 07:09:45 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.141 2007/04/27 09:03:26 zzam Exp $
+
+*lirc-0.8.2_pre2 (27 Apr 2007)
+
+  27 Apr 2007; Matthias Schwarzott <zzam@gentoo.org>
+  +lirc-0.8.2_pre2.ebuild:
+  Version bumped.
 
   27 Apr 2007; Matthias Schwarzott <zzam@gentoo.org> -lirc-0.8.0-r5.ebuild:
   Removed old ebuild.
index ec83c03cbab30b05bb2d94dea970c9ab9ff3202c..93c479c1b40d33005e47bd5d0c7acdaa491f0a34 100644 (file)
@@ -91,6 +91,7 @@ RMD160 844b08d504f5afb996f900d3d225cc855fbf4884 files/xbox-lircd.conf 784
 SHA256 03979bd658ed4a5705c358a1278b1565dd10463ab6eb14fa8d25b3d98e645008 files/xbox-lircd.conf 784
 DIST lirc-0.8.0.tar.bz2 514359 RMD160 045c95754820e77891bd0b3baa269ad3f04cba8c SHA1 e4016a038eb4fdc7a1a3b3ff599621e2b41d4b7c SHA256 cc8d7fb41a045278680ea530cffaf05181977f41244b9f0ed64075cd7630b5d2
 DIST lirc-0.8.1.tar.bz2 604524 RMD160 effba27a6aaa4a39d206d9d9e7cccc72edcd5fb5 SHA1 c26297b90bd0609c52d6f31062c3ecc13cb945f0 SHA256 86ea19a768e8b8a9ac19daf403ac8b017f7a20d2764e6e78267099094e4f9a1b
+DIST lirc-0.8.2pre2.tar.bz2 620341 RMD160 fceef5aeec5a1fc8c3a0225ed165be3798ebeae9 SHA1 9bb041ddcc85effbba01e3a97d2d43c9516e5130 SHA256 c4fddca1f61234fbfd2517acadfbe85d99470d90132bf800bb324a9025b57f6a
 EBUILD lirc-0.8.0-r8.ebuild 8376 RMD160 8f42f4ee2eb24a6ceddfcd4ecdb0017585e5c195 SHA1 b9d6313f49bbbf1ab904f8a416860d75946aafd3 SHA256 c19ff39c3f05328ad10d2557925e98c82583b0fd4b63d1bf4cf9219010c5bae1
 MD5 38ad2c0c00ca692d20bb06a240498949 lirc-0.8.0-r8.ebuild 8376
 RMD160 8f42f4ee2eb24a6ceddfcd4ecdb0017585e5c195 lirc-0.8.0-r8.ebuild 8376
@@ -99,10 +100,14 @@ EBUILD lirc-0.8.1.ebuild 7645 RMD160 2993ace38121ecbb7e9c1689adeea7b13bfe5d85 SH
 MD5 36e55099febda6a97ec735e98215a8d1 lirc-0.8.1.ebuild 7645
 RMD160 2993ace38121ecbb7e9c1689adeea7b13bfe5d85 lirc-0.8.1.ebuild 7645
 SHA256 c3273ca12d2fafe4bf59a2d978da0e1f0cfd9fda57289a88a7781eee75fca60a lirc-0.8.1.ebuild 7645
-MISC ChangeLog 21689 RMD160 01823a0fa4648be6de1e4b1063331ded33b33692 SHA1 c0be6473c26d4ca04530ef67976895f41ff5d07e SHA256 8de407ba8dc280ebf23145b3284a1306fde4e2e7b62b552076f68bee84471ad3
-MD5 5dc9beb9a93252c53700f00c2b86a5a7 ChangeLog 21689
-RMD160 01823a0fa4648be6de1e4b1063331ded33b33692 ChangeLog 21689
-SHA256 8de407ba8dc280ebf23145b3284a1306fde4e2e7b62b552076f68bee84471ad3 ChangeLog 21689
+EBUILD lirc-0.8.2_pre2.ebuild 7757 RMD160 cd8787da5f0ebe55072f4dd0dde76d9640cd795e SHA1 f2a21ca362f009939e052a04a239caa5da6a3b06 SHA256 0ede601327b48d5ec6a1b0bdf112a828546ecb3389c3a903e07a6461ebd5b485
+MD5 3be108756e381cf3f2d4402b4c5f7378 lirc-0.8.2_pre2.ebuild 7757
+RMD160 cd8787da5f0ebe55072f4dd0dde76d9640cd795e lirc-0.8.2_pre2.ebuild 7757
+SHA256 0ede601327b48d5ec6a1b0bdf112a828546ecb3389c3a903e07a6461ebd5b485 lirc-0.8.2_pre2.ebuild 7757
+MISC ChangeLog 21820 RMD160 68fe84395603aa1f8179ae72f5712598b944345b SHA1 c3880522c1bbe1e4287daf1e5bdddd9592bc0cbc SHA256 f07623ea8ab7df82da82c6c3a6c5e758587d58490d1ca09e1d48726250478be1
+MD5 7fe0d3a6f7223c0674e60e35d8787f4c ChangeLog 21820
+RMD160 68fe84395603aa1f8179ae72f5712598b944345b ChangeLog 21820
+SHA256 f07623ea8ab7df82da82c6c3a6c5e758587d58490d1ca09e1d48726250478be1 ChangeLog 21820
 MISC metadata.xml 252 RMD160 e1c170c221f61fa9787a04feac90fab777639d88 SHA1 9fdd5da8466c39d7ff3b40412c4dfa77dd2446b7 SHA256 4e8b5c34b3e50b781a18c9be9e6199442f1b0299e00d66ba35024f8b743b9c32
 MD5 abf8a9c4b96bc3bb50f04a48349dae34 metadata.xml 252
 RMD160 e1c170c221f61fa9787a04feac90fab777639d88 metadata.xml 252
@@ -113,10 +118,13 @@ SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/di
 MD5 570f33b570b59a825856007da3f3fd18 files/digest-lirc-0.8.1 235
 RMD160 1f11ae05892517002e2b10bcf42f00a1388651f5 files/digest-lirc-0.8.1 235
 SHA256 a417bf0f77bcebeb15d873c786344c9d7622dce02aa31f8f8fa1912ad673d301 files/digest-lirc-0.8.1 235
+MD5 cec1b53dce7002d7bc8ef3c9d42b1f3c files/digest-lirc-0.8.2_pre2 247
+RMD160 0ed56503665fd4cdeb764c4afb8f1405325ec86c files/digest-lirc-0.8.2_pre2 247
+SHA256 85178d370b86564aebac9b79c8215c97625e85dc187208f93b64f3c9cea0552c files/digest-lirc-0.8.2_pre2 247
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.3 (GNU/Linux)
 
-iD8DBQFGMaHCt2vP6XvVdOcRAgQeAKDmK0o/CGoyeKIv25TY09lvoLiQKACgruSj
-B0OCullR1MUosi9/4sAUwv0=
-=2jEo
+iD8DBQFGMbxpt2vP6XvVdOcRAj1TAJ44b+vdklyCUAopm9tzKaOvHlI33gCaAmM9
+2X23I1kuo/VO5F/o7KM6tlE=
+=Wc8v
 -----END PGP SIGNATURE-----
diff --git a/app-misc/lirc/files/digest-lirc-0.8.2_pre2 b/app-misc/lirc/files/digest-lirc-0.8.2_pre2
new file mode 100644 (file)
index 0000000..da571c0
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 574d09ccea8162cacac7fd1be4331860 lirc-0.8.2pre2.tar.bz2 620341
+RMD160 fceef5aeec5a1fc8c3a0225ed165be3798ebeae9 lirc-0.8.2pre2.tar.bz2 620341
+SHA256 c4fddca1f61234fbfd2517acadfbe85d99470d90132bf800bb324a9025b57f6a lirc-0.8.2pre2.tar.bz2 620341
diff --git a/app-misc/lirc/lirc-0.8.2_pre2.ebuild b/app-misc/lirc/lirc-0.8.2_pre2.ebuild
new file mode 100644 (file)
index 0000000..40e94bb
--- /dev/null
@@ -0,0 +1,292 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.2_pre2.ebuild,v 1.1 2007/04/27 09:03:26 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/"
+
+if [[ "${PV/_pre/}" = "${PV}" ]]; then
+       SRC_URI="mirror://sourceforge/lirc/${P/_/}.tar.bz2"
+else
+       SRC_URI="http://lirc.sourceforge.net/software/snapshots/${P/_/}.tar.bz2"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="debug doc X hardware-carrier transmitter"
+
+S=${WORKDIR}/${P/_pre/pre}
+
+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 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 sb0540 serial
+       silitek sir slinke streamzap tekram
+       tekram_bt829 tira tuxbox tvbox udp uirt2
+       uirt2_raw usb_uirt_raw usbx"
+
+# 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 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"
+
+# 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++))
+
+       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() {
+       linux-mod_pkg_setup
+
+       # set default configure options
+       MY_OPTS=""
+       lirc_driver_count=0
+
+       LIRC_DRIVER_DEVICE="/dev/lirc/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_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)"
+               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
+}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       # Rip out dos CRLF
+       edos2unix contrib/lirc.rules
+
+       # Apply patches needed for some special device-types
+       use lirc_devices_imon_pad2keys && epatch ${FILESDIR}/${PN}-0.8.1-imon-pad2keys.patch
+       use lirc_devices_remote_wonder_plus && epatch ${FILESDIR}/lirc-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
+
+       # respect CFLAGS
+       sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.in
+
+       # setting default device-node
+       sed -i -e '/#define LIRC_DRIVER_DEVICE/d' acconfig.h
+       echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
+
+       eautoreconf
+}
+
+
+src_install() {
+       make DESTDIR="${D}" install || die "make install failed"
+
+       newinitd ${FILESDIR}/lircd lircd
+       newinitd ${FILESDIR}/lircmd lircmd
+       newconfd ${FILESDIR}/lircd.conf lircd
+
+       insinto /etc/modules.d/
+       newins ${FILESDIR}/modulesd.lirc lirc
+
+       newinitd ${FILESDIR}/irexec-initd irexec
+       newconfd ${FILESDIR}/irexec-confd irexec
+
+       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 "${D}"/etc/
+}
+
+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
+}