Version bumped.
authorMatthias Schwarzott <zzam@gentoo.org>
Sun, 7 Jan 2007 19:39:40 +0000 (19:39 +0000)
committerMatthias Schwarzott <zzam@gentoo.org>
Sun, 7 Jan 2007 19:39:40 +0000 (19:39 +0000)
Package-Manager: portage-2.1.2_rc4-r6

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

index 64795253c1d6f129e33a41df8fc796f46514baac..0b38fac218dfe513046817192bd9effd413291cc 100644 (file)
@@ -1,6 +1,11 @@
 # 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.127 2007/01/06 16:15:57 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.128 2007/01/07 19:39:40 zzam Exp $
+
+*lirc-0.8.1 (07 Jan 2007)
+
+  07 Jan 2007; Matthias Schwarzott <zzam@gentoo.org> +lirc-0.8.1.ebuild:
+  Version bumped.
 
   06 Jan 2007; Bryan Ã˜stergaard <kloeri@gentoo.org> lirc-0.8.0-r8.ebuild,
   lirc-0.8.1_pre5.ebuild:
index a638b05d67d263c7c9f1d1d6146187f41b7063e7..4460a211fc7b807319f9b1b7254467c63f9231e8 100644 (file)
@@ -90,6 +90,7 @@ DIST lirc-0.7.0-xbox.patch.bz2 10512 RMD160 15ef2e36e781342903bdf6a2bee12e9175ed
 DIST lirc-0.7.0.tar.bz2 464270 RMD160 9ad6467766125642ea862c35900898ba824cea03 SHA1 8eecd1cb42e5e995d5df42ab598a3d2a3b7ab1e0 SHA256 236c1593d9da7c0af544dd456e426bd321f1261c08fa5768cb7290267a7b31bc
 DIST lirc-0.7.2.tar.bz2 496627 RMD160 be686c26c1c407e161771a0267c23f81e4d7cbe4 SHA1 e494bc37f77f135549dcaa87ca4fe86ee43c84cf SHA256 d47f87019631fad8e7c774ea60341bcd62aa371e4828edb7a35866fc948fa56f
 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.1pre5.tar.bz2 604662 RMD160 8ddfed06374178e15b8fcd16d79887cce70fb35b SHA1 0dd6f62ecafa69c06088fbe48f9238891827a031 SHA256 0ab1e5a6ba72fe0564ea52cf743aff720333f1eb030b165acc346fe00f2c9050
 EBUILD lirc-0.7.0-r1.ebuild 4621 RMD160 efe696ef1ddfb66cae81b93515299b734705504c SHA1 5d3ce9aa2fe2637db0bd40dfc4d69ec660e8db52 SHA256 6b52ae4f200b9399cb593d714d1dfba8bafdb746f3d87f17007b9871b924f996
 MD5 77165d78390e396396f329fe6f8fc5f3 lirc-0.7.0-r1.ebuild 4621
@@ -111,14 +112,18 @@ EBUILD lirc-0.8.0-r8.ebuild 8428 RMD160 7e9181ab61ba42ddd174e955b68d885c3997f540
 MD5 3204bbeb01cb8ae4d8dd4e4ddefa4ac1 lirc-0.8.0-r8.ebuild 8428
 RMD160 7e9181ab61ba42ddd174e955b68d885c3997f540 lirc-0.8.0-r8.ebuild 8428
 SHA256 6cf6b4ee0e297bcdda3c680a7c615f8b6e21ba0f07e4f5ec2683318586c2a50b lirc-0.8.0-r8.ebuild 8428
+EBUILD lirc-0.8.1.ebuild 7766 RMD160 028f46ed8bc576b304435e2c458888547387c048 SHA1 28637b184723a0e496a3be96925faa04380016a7 SHA256 54fdaeb3a317e78c6c8a4dcf1e042c5a6d38940e41bad2c3b56148464d094bc5
+MD5 6a1b7d49d8472dd8c59f5277827f8cff lirc-0.8.1.ebuild 7766
+RMD160 028f46ed8bc576b304435e2c458888547387c048 lirc-0.8.1.ebuild 7766
+SHA256 54fdaeb3a317e78c6c8a4dcf1e042c5a6d38940e41bad2c3b56148464d094bc5 lirc-0.8.1.ebuild 7766
 EBUILD lirc-0.8.1_pre5.ebuild 7794 RMD160 a37577e71a45e02bd7d6087b94a86abc3a608c6f SHA1 12a8763ade55946e00303913db5cf93aa80c8d00 SHA256 12372f7e96c9bfc98bf911d5ee86097b91f92d0e941c3777b4403256e83233f6
 MD5 2683dcee37ce713e683d1c4272b490fc lirc-0.8.1_pre5.ebuild 7794
 RMD160 a37577e71a45e02bd7d6087b94a86abc3a608c6f lirc-0.8.1_pre5.ebuild 7794
 SHA256 12372f7e96c9bfc98bf911d5ee86097b91f92d0e941c3777b4403256e83233f6 lirc-0.8.1_pre5.ebuild 7794
-MISC ChangeLog 19918 RMD160 6b8efcd1f7679811787122547d73bc4e99ad50ce SHA1 7bb3c467d2055bb2330c674cea52fbb139cc9bb3 SHA256 c0f54aa7b74ea86bcce86124651aba0290578711d96a8603f7b2c16fb97e3cd4
-MD5 de9c2815e5bfe5a6f394df09cbf08db6 ChangeLog 19918
-RMD160 6b8efcd1f7679811787122547d73bc4e99ad50ce ChangeLog 19918
-SHA256 c0f54aa7b74ea86bcce86124651aba0290578711d96a8603f7b2c16fb97e3cd4 ChangeLog 19918
+MISC ChangeLog 20035 RMD160 8fa03723f239cf71d3d7c242ae9be4d9855d6b0b SHA1 85a9a745e91c37f887fbbede8ae16bf791c5477d SHA256 3eebb776db7225f3efd6bcfe7699ab4c8a8031d4254cd15bb4b9ea091f056ba9
+MD5 c162007e9a20fd6d1755fd9d87a7fa3a ChangeLog 20035
+RMD160 8fa03723f239cf71d3d7c242ae9be4d9855d6b0b ChangeLog 20035
+SHA256 3eebb776db7225f3efd6bcfe7699ab4c8a8031d4254cd15bb4b9ea091f056ba9 ChangeLog 20035
 MISC metadata.xml 252 RMD160 e1c170c221f61fa9787a04feac90fab777639d88 SHA1 9fdd5da8466c39d7ff3b40412c4dfa77dd2446b7 SHA256 4e8b5c34b3e50b781a18c9be9e6199442f1b0299e00d66ba35024f8b743b9c32
 MD5 abf8a9c4b96bc3bb50f04a48349dae34 metadata.xml 252
 RMD160 e1c170c221f61fa9787a04feac90fab777639d88 metadata.xml 252
@@ -138,13 +143,16 @@ SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/di
 MD5 17322bfb3604e1c6663bbc5a6fb80e96 files/digest-lirc-0.8.0-r8 235
 RMD160 efdbebbf9c02e761392c245f3ee1df0938778785 files/digest-lirc-0.8.0-r8 235
 SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/digest-lirc-0.8.0-r8 235
+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 1b53084e97254a64934b2b550a30b727 files/digest-lirc-0.8.1_pre5 247
 RMD160 a46b6dbf251dd92d9d79d25129dcb73cddfbf1a6 files/digest-lirc-0.8.1_pre5 247
 SHA256 20ea8ffab57840aa3c314d3834d48c5547b71d95ceacf4043c926711be6cd938 files/digest-lirc-0.8.1_pre5 247
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.1 (GNU/Linux)
 
-iD8DBQFFn8r1ugEuf3OQ0akRArCHAJ9mO7lFMDGUg6PrQYSqLwOqItGjHwCcCSaH
-bNK/fR9OgHzvs2qI8cDGda0=
-=dwpN
+iD8DBQFFoUyjt2vP6XvVdOcRApGwAKDONa9bp9BBWXia1vDpgR1JO8oVsgCg00zv
+Adf+reAEWWu4/35f0lmabQc=
+=8xtq
 -----END PGP SIGNATURE-----
diff --git a/app-misc/lirc/files/digest-lirc-0.8.1 b/app-misc/lirc/files/digest-lirc-0.8.1
new file mode 100644 (file)
index 0000000..66f85ad
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 3a42083fc6c54797351e52c77537c586 lirc-0.8.1.tar.bz2 604524
+RMD160 effba27a6aaa4a39d206d9d9e7cccc72edcd5fb5 lirc-0.8.1.tar.bz2 604524
+SHA256 86ea19a768e8b8a9ac19daf403ac8b017f7a20d2764e6e78267099094e4f9a1b lirc-0.8.1.tar.bz2 604524
diff --git a/app-misc/lirc/lirc-0.8.1.ebuild b/app-misc/lirc/lirc-0.8.1.ebuild
new file mode 100644 (file)
index 0000000..8eeb562
--- /dev/null
@@ -0,0 +1,300 @@
+# 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.1.ebuild,v 1.1 2007/01/07 19:39:40 zzam Exp $
+
+WANT_AUTOMAKE="latest"
+WANT_AUTOCONF="latest"
+
+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="debug doc X hardware-carrier transmitter"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~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
+       remote_wonder_plus xboxusb usbirboy inputlirc"
+
+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"
+
+
+# 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)
+                                       ${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}
+
+       # Fix a sandbox violation while checking which cc to use for Kernel 2.6.19
+       # and newer
+       epatch ${FILESDIR}/${PN}-0.8.0-sandbox-fix.diff
+
+       # Rip out dos CRLF
+       edos2unix contrib/lirc.rules
+
+       # Apply patches needed for some special device-types
+       epatch ${FILESDIR}/lirc-0.8.1-atiusb-xbox.diff
+       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::" drivers/Makefile.in
+       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 || die "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
+
+       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 ${IMAGE}/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
+}
+