Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 345833 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-misc/lirc/lirc-0.8.7.ebuild (-4 / +19 lines)
Lines 2-13 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.7.ebuild,v 1.3 2010/11/05 13:42:47 hwoarang Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.7.ebuild,v 1.3 2010/11/05 13:42:47 hwoarang Exp $
4
4
5
inherit eutils linux-mod flag-o-matic autotools
5
inherit eutils flag-o-matic autotools linux-info linux-mod
6
6
7
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
7
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
8
HOMEPAGE="http://www.lirc.org/"
8
HOMEPAGE="http://www.lirc.org/"
9
9
10
MY_P=${PN}-${PV/_/}
10
MY_P=${PN}-${PV/_/-}
11
11
12
if [[ "${PV/_pre/}" = "${PV}" ]]; then
12
if [[ "${PV/_pre/}" = "${PV}" ]]; then
13
	SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
13
	SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
Lines 17-23 Link Here
17
17
18
LICENSE="GPL-2"
18
LICENSE="GPL-2"
19
SLOT="0"
19
SLOT="0"
20
KEYWORDS="amd64 ~ppc x86"
20
KEYWORDS="~amd64 ~ppc ~x86"
21
IUSE="debug doc X hardware-carrier transmitter"
21
IUSE="debug doc X hardware-carrier transmitter"
22
22
23
S="${WORKDIR}/${MY_P}"
23
S="${WORKDIR}/${MY_P}"
Lines 137-142 Link Here
137
	MY_OPTS=""
137
	MY_OPTS=""
138
	LIRC_DRIVER_DEVICE="/dev/lirc0"
138
	LIRC_DRIVER_DEVICE="/dev/lirc0"
139
139
140
	# quick hack for amd64, as x86 ppc et. al don't yet have staging support for lirc
141
	# devices in the kernel
142
143
	if !(linux_chkconfig_present LIRC_STAGING) && use amd64 && kernel_is -ge 2 6 36; then
144
		ewarn "You have a kernel greater than or equal to 2.6.36, lirc modules"
145
		ewarn "are now bundled with your kernel, please configure your kernel"
146
		ewarn "to enable staging drivers and select the respective lirc devices"
147
		die
148
	fi
149
140
	if use lirc_devices_all; then
150
	if use lirc_devices_all; then
141
		# compile in drivers for a lot of devices
151
		# compile in drivers for a lot of devices
142
		add_device all "a lot of devices"
152
		add_device all "a lot of devices"
Lines 231-241 Link Here
231
					--with-syslog=LOG_DAEMON
241
					--with-syslog=LOG_DAEMON
232
					--enable-sandboxed
242
					--enable-sandboxed
233
					--with-kerneldir=${KV_DIR}
243
					--with-kerneldir=${KV_DIR}
234
					--with-moduledir=/lib/modules/${KV_FULL}/misc
235
					$(use_enable debug)
244
					$(use_enable debug)
236
					$(use_with X x)
245
					$(use_with X x)
237
					${MY_OPTS}"
246
					${MY_OPTS}"
238
247
248
	if kernel_is -lt 2 6 36 || !(use amd64); then
249
		ECONF_PARAMS=${ECONF_PARAMS}" --with-moduledir=/lib/modules/${KV_FULL}/misc"
250
	else
251
		ECONF_PARAMS=${ECONF_PARAMS}" --with-moduledir=."
252
	fi
253
239
	einfo
254
	einfo
240
	einfo "lirc-configure-opts: ${MY_OPTS}"
255
	einfo "lirc-configure-opts: ${MY_OPTS}"
241
	elog  "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
256
	elog  "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"

Return to bug 345833