--- lirc-0.8.7_pre1.ebuild 2010-11-01 05:05:53.000000000 -0400 +++ lirc-0.9.0_pre1.ebuild 2010-11-16 20:44:48.000000000 -0500 @@ -1,13 +1,13 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.7_pre1.ebuild,v 1.2 2010/11/01 09:00:14 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.9.0_pre1.ebuild,v 1.3 2010/11/16 21:45:00 hwoarang Exp $ -inherit eutils linux-mod flag-o-matic autotools +inherit eutils flag-o-matic autotools linux-info linux-mod DESCRIPTION="decode and send infra-red signals of many commonly used remote controls" HOMEPAGE="http://www.lirc.org/" -MY_P=${PN}-${PV/_/} +MY_P=${PN}-${PV/_/-} if [[ "${PV/_pre/}" = "${PV}" ]]; then SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2" @@ -137,6 +137,13 @@ MY_OPTS="" LIRC_DRIVER_DEVICE="/dev/lirc0" + if !(linux_chkconfig_present LIRC_STAGING) && kernel_is -ge 2 6 36; then + ewarn "You have a kernel greater than or equal to 2.6.36, lirc modules" + ewarn "are now bundled with your kernel, please configure your kernel" + ewarn "to enable staging drivers and select the respective lirc devices" + die + fi + if use lirc_devices_all; then # compile in drivers for a lot of devices add_device all "a lot of devices" @@ -231,11 +238,16 @@ --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}" + if kernel_is -lt 2 6 36; then + ECONF_PARAMS=${ECONF_PARAMS}" --with-moduledir=/lib/modules/${KV_FULL}/misc" + else + ECONF_PARAMS=${ECONF_PARAMS}" --with-moduledir=." + fi + einfo einfo "lirc-configure-opts: ${MY_OPTS}" elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"