diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-10-13 18:14:34 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-10-13 18:14:34 +0000 |
commit | 7eb1fa4ac786debf9c42ed9d7a8939021c5e700e (patch) | |
tree | 80794db8baaef70e936847045da670ce269c5555 /app-misc/lirc | |
parent | Version bump (diff) | |
download | historical-7eb1fa4ac786debf9c42ed9d7a8939021c5e700e.tar.gz historical-7eb1fa4ac786debf9c42ed9d7a8939021c5e700e.tar.bz2 historical-7eb1fa4ac786debf9c42ed9d7a8939021c5e700e.zip |
Added new pre-release ebuild. This improves gpio support with newer kernels.
Package-Manager: portage-2.1.3.12
Diffstat (limited to 'app-misc/lirc')
-rw-r--r-- | app-misc/lirc/ChangeLog | 8 | ||||
-rw-r--r-- | app-misc/lirc/Manifest | 22 | ||||
-rw-r--r-- | app-misc/lirc/files/digest-lirc-0.8.3_pre1 | 3 | ||||
-rw-r--r-- | app-misc/lirc/lirc-0.8.3_pre1.ebuild | 283 |
4 files changed, 308 insertions, 8 deletions
diff --git a/app-misc/lirc/ChangeLog b/app-misc/lirc/ChangeLog index 2d51b65c059f..0d1bde0d0317 100644 --- a/app-misc/lirc/ChangeLog +++ b/app-misc/lirc/ChangeLog @@ -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.154 2007/10/13 09:30:06 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.155 2007/10/13 18:14:33 zzam Exp $ + +*lirc-0.8.3_pre1 (13 Oct 2007) + + 13 Oct 2007; Matthias Schwarzott <zzam@gentoo.org> + +lirc-0.8.3_pre1.ebuild: + Added new pre-release ebuild. This improves gpio support with newer kernels. 13 Oct 2007; Matthias Schwarzott <zzam@gentoo.org> lirc-0.8.2-r2.ebuild: Switch installing to emake. diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest index 070141405148..67b9ca10d84a 100644 --- a/app-misc/lirc/Manifest +++ b/app-misc/lirc/Manifest @@ -101,6 +101,7 @@ DIST lirc-0.8.0.tar.bz2 514359 RMD160 045c95754820e77891bd0b3baa269ad3f04cba8c S DIST lirc-0.8.1.tar.bz2 604524 RMD160 effba27a6aaa4a39d206d9d9e7cccc72edcd5fb5 SHA1 c26297b90bd0609c52d6f31062c3ecc13cb945f0 SHA256 86ea19a768e8b8a9ac19daf403ac8b017f7a20d2764e6e78267099094e4f9a1b DIST lirc-0.8.2.tar.bz2 634331 RMD160 e806608f8644a1d1f66689a40b2ed27b4cf43bd9 SHA1 84025603692836106714a2895e6201f6eb60ab37 SHA256 717e62ee763bad9c1ffc25dd096a8845d252eaa050f16f67c6fe3506194e7f62 DIST lirc-0.8.2pre2.tar.bz2 620341 RMD160 fceef5aeec5a1fc8c3a0225ed165be3798ebeae9 SHA1 9bb041ddcc85effbba01e3a97d2d43c9516e5130 SHA256 c4fddca1f61234fbfd2517acadfbe85d99470d90132bf800bb324a9025b57f6a +DIST lirc-0.8.3pre1.tar.bz2 656112 RMD160 b83f7c3222d0a8f6aa9924c7bd60013f29b7917c SHA1 ef5f3bd60ed10d4d1ab57931f8871cf9f8735630 SHA256 435e5f5301fb0d4488a5b9c8340b686a21dc542c2fbf97910c8d0f1350667192 EBUILD lirc-0.8.0-r8.ebuild 8359 RMD160 edd6722efa42aca85aeeb69c3f06f9c63f6881f2 SHA1 b832bc32f721c506fe04b1a2c037ecd480e5d6de SHA256 daf67f5c1b420a4080180d9009a2121f74acdb9cbc0e42b5806c1f5d8964a87e MD5 94a65db28e001dd527440064d6c50199 lirc-0.8.0-r8.ebuild 8359 RMD160 edd6722efa42aca85aeeb69c3f06f9c63f6881f2 lirc-0.8.0-r8.ebuild 8359 @@ -125,10 +126,14 @@ EBUILD lirc-0.8.2_pre2.ebuild 7764 RMD160 de1734a35e24949fd66600311c51136f2a2a47 MD5 8a0be78248519d97d5010a847b1b1c57 lirc-0.8.2_pre2.ebuild 7764 RMD160 de1734a35e24949fd66600311c51136f2a2a4750 lirc-0.8.2_pre2.ebuild 7764 SHA256 a7b7218e318f537a812ae38127a19f158b9f3fa7d57b83e51d9a785fbcbb2783 lirc-0.8.2_pre2.ebuild 7764 -MISC ChangeLog 23777 RMD160 aa57ff7387bd12c322aa398f8731bb31cf56f04d SHA1 28a8a12c410758a8481cd5cdb8e69afb0985218c SHA256 0b5677a3231ce487325f159efa66636214e17686f170e39a4f39f54ad6e761ae -MD5 479731aea42552fdf1a6d675aec6b4f5 ChangeLog 23777 -RMD160 aa57ff7387bd12c322aa398f8731bb31cf56f04d ChangeLog 23777 -SHA256 0b5677a3231ce487325f159efa66636214e17686f170e39a4f39f54ad6e761ae ChangeLog 23777 +EBUILD lirc-0.8.3_pre1.ebuild 7674 RMD160 2824e3341f5bc3d425d5db27244e654d1832b949 SHA1 13026e7984d3dddff4a7111e7ecfa44c817d3d0d SHA256 e3ad2c2a82a56e10d2289bc86615cfd6eae9c7401b19fdc623b951f2b1aebc96 +MD5 9b6d8f9adbd4968c5620b18ced524865 lirc-0.8.3_pre1.ebuild 7674 +RMD160 2824e3341f5bc3d425d5db27244e654d1832b949 lirc-0.8.3_pre1.ebuild 7674 +SHA256 e3ad2c2a82a56e10d2289bc86615cfd6eae9c7401b19fdc623b951f2b1aebc96 lirc-0.8.3_pre1.ebuild 7674 +MISC ChangeLog 23969 RMD160 208cb4cedbba77c9520fc117ff90c3b71672af02 SHA1 8d47bb6edd7a6057b8a8d27c7509a7a64b877772 SHA256 2fc017530ef93c9ba5902a55c394a3b9bb8aa62de99fa2ed1a3d7e3a44d57a10 +MD5 8be2178ead549d70372105ca326aab4a ChangeLog 23969 +RMD160 208cb4cedbba77c9520fc117ff90c3b71672af02 ChangeLog 23969 +SHA256 2fc017530ef93c9ba5902a55c394a3b9bb8aa62de99fa2ed1a3d7e3a44d57a10 ChangeLog 23969 MISC metadata.xml 162 RMD160 8bd24f9f2805b005cef731c0cda868c72e6980af SHA1 7464d1657179a3f30c5ea2ad401590e4489ac945 SHA256 aaad144c69dd58781e1dc97b5fbad08a5b4db504bd3cbbb4ab27018a307d5d81 MD5 dcc0143f6508e9fd068845f98b7bb403 metadata.xml 162 RMD160 8bd24f9f2805b005cef731c0cda868c72e6980af metadata.xml 162 @@ -151,10 +156,13 @@ SHA256 65c4eb9a309cecdbe32e8c7b884eb2759c4b43f79803a26fbe5f4428e78fb3ae files/di 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 +MD5 f10b4ad3629db03b5994e1ec47466dff files/digest-lirc-0.8.3_pre1 247 +RMD160 f24b17125eda2634a8b1d06a55b52e6f8fd4f2a5 files/digest-lirc-0.8.3_pre1 247 +SHA256 24e0ee567b857e06d93d64cbf7e9cbaee53a734e5c76862d9ff64dba06739dc3 files/digest-lirc-0.8.3_pre1 247 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) -iD8DBQFHEJAkt2vP6XvVdOcRAnIOAKDleUqSsSdcUFD7+BW7avrG5VjH0wCgkTYn -tcj9Tky7J5QzMvFDm1CN6FE= -=KSXp +iD8DBQFHEQsXt2vP6XvVdOcRApdMAKCFdStTdQesa18Z8ik1EjOwnJzoDgCgvprj +yLjh528rOcQRmunfgZOfLY0= +=3pUQ -----END PGP SIGNATURE----- diff --git a/app-misc/lirc/files/digest-lirc-0.8.3_pre1 b/app-misc/lirc/files/digest-lirc-0.8.3_pre1 new file mode 100644 index 000000000000..a6f5f4eb7699 --- /dev/null +++ b/app-misc/lirc/files/digest-lirc-0.8.3_pre1 @@ -0,0 +1,3 @@ +MD5 1fe9ab0a8e4fe2113040f6c576e51759 lirc-0.8.3pre1.tar.bz2 656112 +RMD160 b83f7c3222d0a8f6aa9924c7bd60013f29b7917c lirc-0.8.3pre1.tar.bz2 656112 +SHA256 435e5f5301fb0d4488a5b9c8340b686a21dc542c2fbf97910c8d0f1350667192 lirc-0.8.3pre1.tar.bz2 656112 diff --git a/app-misc/lirc/lirc-0.8.3_pre1.ebuild b/app-misc/lirc/lirc-0.8.3_pre1.ebuild new file mode 100644 index 000000000000..b550d424c071 --- /dev/null +++ b/app-misc/lirc/lirc-0.8.3_pre1.ebuild @@ -0,0 +1,283 @@ +# 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.3_pre1.ebuild,v 1.1 2007/10/13 18:14:33 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="~amd64 ~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 + 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 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" + +# 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:=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() { + 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)" + 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() { + emake DESTDIR="${D}" install || die "emake 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 + + 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 +} |