summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-10-13 09:20:15 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-10-13 09:20:15 +0000
commit23768727e20b40236cf131d4388984b20bff10a2 (patch)
treee465160d8e3ba553e2adfb7a0d71cfbe21f50156 /app-misc
parentmedia-sound/sound-juicer: New version for Gnome 2.20 (diff)
downloadgentoo-2-23768727e20b40236cf131d4388984b20bff10a2.tar.gz
gentoo-2-23768727e20b40236cf131d4388984b20bff10a2.tar.bz2
gentoo-2-23768727e20b40236cf131d4388984b20bff10a2.zip
General cleanup, and quote fixing.
(Portage version: 2.1.3.12)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/lirc/ChangeLog7
-rw-r--r--app-misc/lirc/lirc-0.8.0-r8.ebuild60
-rw-r--r--app-misc/lirc/lirc-0.8.1.ebuild38
-rw-r--r--app-misc/lirc/lirc-0.8.2-r1.ebuild28
-rw-r--r--app-misc/lirc/lirc-0.8.2-r2.ebuild26
-rw-r--r--app-misc/lirc/lirc-0.8.2.ebuild25
-rw-r--r--app-misc/lirc/lirc-0.8.2_pre2.ebuild25
7 files changed, 100 insertions, 109 deletions
diff --git a/app-misc/lirc/ChangeLog b/app-misc/lirc/ChangeLog
index b27f2ba4bc44..f1896c61468a 100644
--- a/app-misc/lirc/ChangeLog
+++ b/app-misc/lirc/ChangeLog
@@ -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.152 2007/10/11 19:35:42 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.153 2007/10/13 09:20:15 zzam Exp $
+
+ 13 Oct 2007; Matthias Schwarzott <zzam@gentoo.org> lirc-0.8.0-r8.ebuild,
+ lirc-0.8.1.ebuild, lirc-0.8.2_pre2.ebuild, lirc-0.8.2.ebuild,
+ lirc-0.8.2-r1.ebuild, lirc-0.8.2-r2.ebuild:
+ General cleanup, and quote fixing.
*lirc-0.8.2-r2 (11 Oct 2007)
diff --git a/app-misc/lirc/lirc-0.8.0-r8.ebuild b/app-misc/lirc/lirc-0.8.0-r8.ebuild
index cda46b175ac9..aea1b8e4ac69 100644
--- a/app-misc/lirc/lirc-0.8.0-r8.ebuild
+++ b/app-misc/lirc/lirc-0.8.0-r8.ebuild
@@ -1,6 +1,6 @@
# 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.0-r8.ebuild,v 1.14 2007/07/22 09:54:11 omp Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.0-r8.ebuild,v 1.15 2007/10/13 09:20:15 zzam Exp $
inherit eutils linux-mod flag-o-matic autotools
@@ -14,7 +14,7 @@ IUSE="debug doc X hardware-carrier transmitter"
KEYWORDS="amd64 ppc ppc64 x86"
SRC_URI="mirror://sourceforge/lirc/${P/_pre/pre}.tar.bz2"
-S=${WORKDIR}/${P/_pre/pre}
+S="${WORKDIR}/${P/_pre/pre}"
IUSE_LIRC_DEVICES_DIRECT="
all userspace act200l act220l
@@ -80,7 +80,8 @@ for dev in ${IUSE_LIRC_DEVICES}; do
done
add_device() {
- : $(( lirc_device_count++ ))
+ : ${lirc_device_count:=0}
+ ((lirc_device_count++))
if [[ ${lirc_device_count} -eq 2 ]]; then
ewarn
@@ -94,10 +95,8 @@ add_device() {
fi
local dev="${1}"
- local desc="device ${dev}"
- if [[ -n "${2}" ]]; then
- desc="${2}"
- fi
+ local desc="${2}"
+ [[ -z ${desc} ]] && desc="device ${dev}"
elog "Compiling support for ${desc}"
MY_OPTS="${MY_OPTS} --with-driver=${dev}"
@@ -108,17 +107,14 @@ 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
+ local dev
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
if use lirc_devices_${dev}; then
add_device ${dev}
@@ -219,34 +215,34 @@ pkg_setup() {
src_unpack() {
unpack ${A}
- cd ${S}
+ cd "${S}"
# Apply kernel compatibility patches
- epatch ${FILESDIR}/${P}-kernel-2.6.16.diff
- epatch ${FILESDIR}/${P}-kernel-2.6.17.diff
- epatch ${FILESDIR}/${P}-kernel-2.6.18.diff
- epatch ${FILESDIR}/${P}-kernel-2.6.19.diff
+ epatch "${FILESDIR}"/${P}-kernel-2.6.16.diff
+ epatch "${FILESDIR}"/${P}-kernel-2.6.17.diff
+ epatch "${FILESDIR}"/${P}-kernel-2.6.18.diff
+ epatch "${FILESDIR}"/${P}-kernel-2.6.19.diff
# Fix an overflow when opening too many client-connections
- epatch ${FILESDIR}/${P}-too-many-connections-overflow.diff
+ epatch "${FILESDIR}"/${P}-too-many-connections-overflow.diff
# Fix a sandbox violation while checking which cc to use for Kernel 2.6.19
# and newer
- epatch ${FILESDIR}/${P}-sandbox-fix.diff
+ epatch "${FILESDIR}"/${P}-sandbox-fix.diff
# Work with udev-094 and greater
- epatch ${FILESDIR}/${PN}-udev-094.diff
+ epatch "${FILESDIR}"/${PN}-udev-094.diff
# Bugfix for i2c-driver in combination with newer ivtv and Kernel 2.6.17
- epatch ${FILESDIR}/${P}-i2c-kernel-2.6.17.diff
+ epatch "${FILESDIR}"/${P}-i2c-kernel-2.6.17.diff
# Wrong config-filename for LIRC_DEVICES=pixelview_bt878
- epatch ${FILESDIR}/${P}-conf-pixelview_bt878.diff
+ epatch "${FILESDIR}"/${P}-conf-pixelview_bt878.diff
# Apply patches needed for some special device-types
- [[ ${NEED_XBOX_PATCH:-0} == 1 ]] && epatch ${FILESDIR}/lirc-0.8.0pre4-xbox-remote.diff
- use lirc_devices_imon_pad2keys && epatch ${FILESDIR}/${P}-imon-pad2keys.patch
- use lirc_devices_remote_wonder_plus && epatch ${FILESDIR}/lirc-remotewonderplus.patch
+ [[ ${NEED_XBOX_PATCH:-0} == 1 ]] && epatch "${FILESDIR}"/lirc-0.8.0pre4-xbox-remote.diff
+ use lirc_devices_imon_pad2keys && epatch "${FILESDIR}"/${P}-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
@@ -264,20 +260,20 @@ src_unpack() {
}
src_install() {
- make DESTDIR=${D} install || die "make install failed"
+ make DESTDIR="${D}" install || die "make install failed"
- newinitd ${FILESDIR}/lircd lircd
- newinitd ${FILESDIR}/lircmd lircmd
- newconfd ${FILESDIR}/lircd.conf lircd
+ newinitd "${FILESDIR}"/lircd lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf lircd
insinto /etc/modules.d/
- newins ${FILESDIR}/modulesd.lirc lirc
+ newins "${FILESDIR}"/modulesd.lirc lirc
- newinitd ${FILESDIR}/irexec-initd irexec
- newconfd ${FILESDIR}/irexec-confd irexec
+ newinitd "${FILESDIR}"/irexec-initd irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
insinto /etc/udev/rules.d/;
- newins ${S}/contrib/lirc.rules 10-lirc.rules
+ newins "${S}"/contrib/lirc.rules 10-lirc.rules
if use doc ; then
dohtml doc/html/*.html
diff --git a/app-misc/lirc/lirc-0.8.1.ebuild b/app-misc/lirc/lirc-0.8.1.ebuild
index 3be984e47769..dc10e48eaaa1 100644
--- a/app-misc/lirc/lirc-0.8.1.ebuild
+++ b/app-misc/lirc/lirc-0.8.1.ebuild
@@ -1,6 +1,6 @@
# 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.12 2007/07/12 03:35:11 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.1.ebuild,v 1.13 2007/10/13 09:20:15 zzam Exp $
inherit eutils linux-mod flag-o-matic autotools
@@ -80,6 +80,7 @@ for dev in ${IUSE_LIRC_DEVICES}; do
done
add_device() {
+ : ${lirc_device_count:=0}
((lirc_device_count++))
if [[ ${lirc_device_count} -eq 2 ]]; then
@@ -94,10 +95,8 @@ add_device() {
fi
local dev="${1}"
- local desc="device ${dev}"
- if [[ -n "${2}" ]]; then
- desc="${2}"
- fi
+ local desc="${2}"
+ [[ -z ${desc} ]] && desc="device ${dev}"
elog "Compiling support for ${desc}"
MY_OPTS="${MY_OPTS} --with-driver=${dev}"
@@ -108,17 +107,14 @@ 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
+ local dev
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
if use lirc_devices_${dev}; then
add_device ${dev}
@@ -221,16 +217,16 @@ src_unpack() {
# 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
- epatch ${FILESDIR}/${P}-kernel-2.6.20.diff
+ epatch "${FILESDIR}"/${PN}-0.8.0-sandbox-fix.diff
+ epatch "${FILESDIR}"/${P}-kernel-2.6.20.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
+ 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
@@ -250,18 +246,18 @@ src_unpack() {
src_install() {
make DESTDIR="${D}" install || die "make install failed"
- newinitd ${FILESDIR}/lircd lircd
- newinitd ${FILESDIR}/lircmd lircmd
- newconfd ${FILESDIR}/lircd.conf lircd
+ newinitd "${FILESDIR}"/lircd lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf lircd
insinto /etc/modules.d/
- newins ${FILESDIR}/modulesd.lirc lirc
+ newins "${FILESDIR}"/modulesd.lirc lirc
- newinitd ${FILESDIR}/irexec-initd irexec
- newconfd ${FILESDIR}/irexec-confd irexec
+ newinitd "${FILESDIR}"/irexec-initd irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
insinto /etc/udev/rules.d/;
- newins ${S}/contrib/lirc.rules 10-lirc.rules
+ newins "${S}"/contrib/lirc.rules 10-lirc.rules
if use doc ; then
dohtml doc/html/*.html
diff --git a/app-misc/lirc/lirc-0.8.2-r1.ebuild b/app-misc/lirc/lirc-0.8.2-r1.ebuild
index 2f7f57d95cfd..343e9a130a78 100644
--- a/app-misc/lirc/lirc-0.8.2-r1.ebuild
+++ b/app-misc/lirc/lirc-0.8.2-r1.ebuild
@@ -1,6 +1,6 @@
# 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-r1.ebuild,v 1.5 2007/09/01 08:12:58 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.2-r1.ebuild,v 1.6 2007/10/13 09:20:15 zzam Exp $
inherit eutils linux-mod flag-o-matic autotools
@@ -18,7 +18,7 @@ SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="debug doc X hardware-carrier transmitter"
-S=${WORKDIR}/${P/_pre/pre}
+S="${WORKDIR}/${P/_pre/pre}"
RDEPEND="
X? (
@@ -90,6 +90,7 @@ for dev in ${IUSE_LIRC_DEVICES}; do
done
add_device() {
+ : ${lirc_device_count:=0}
((lirc_device_count++))
if [[ ${lirc_device_count} -eq 2 ]]; then
@@ -118,17 +119,14 @@ 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
+ local dev
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
if use lirc_devices_${dev}; then
add_device ${dev}
@@ -233,8 +231,8 @@ src_unpack() {
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
+ 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
# bug 187822
epatch "${FILESDIR}/lirc-0.8.2-kernel-2.6.22.patch"
@@ -257,18 +255,18 @@ src_unpack() {
src_install() {
make DESTDIR="${D}" install || die "make install failed"
- newinitd ${FILESDIR}/lircd lircd
- newinitd ${FILESDIR}/lircmd lircmd
- newconfd ${FILESDIR}/lircd.conf lircd
+ newinitd "${FILESDIR}"/lircd lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf lircd
insinto /etc/modules.d/
- newins ${FILESDIR}/modulesd.lirc lirc
+ newins "${FILESDIR}"/modulesd.lirc lirc
- newinitd ${FILESDIR}/irexec-initd irexec
- newconfd ${FILESDIR}/irexec-confd irexec
+ newinitd "${FILESDIR}"/irexec-initd irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
insinto /etc/udev/rules.d/;
- newins ${S}/contrib/lirc.rules 10-lirc.rules
+ newins "${S}"/contrib/lirc.rules 10-lirc.rules
if use doc ; then
dohtml doc/html/*.html
diff --git a/app-misc/lirc/lirc-0.8.2-r2.ebuild b/app-misc/lirc/lirc-0.8.2-r2.ebuild
index 3deda78ab3a6..686f9f33f820 100644
--- a/app-misc/lirc/lirc-0.8.2-r2.ebuild
+++ b/app-misc/lirc/lirc-0.8.2-r2.ebuild
@@ -1,6 +1,6 @@
# 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-r2.ebuild,v 1.2 2007/10/13 01:02:38 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.2-r2.ebuild,v 1.3 2007/10/13 09:20:15 zzam Exp $
inherit eutils linux-mod flag-o-matic autotools
@@ -18,7 +18,7 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="debug doc X hardware-carrier transmitter"
-S=${WORKDIR}/${P/_pre/pre}
+S="${WORKDIR}/${P/_pre/pre}"
RDEPEND="
X? (
@@ -90,6 +90,7 @@ for dev in ${IUSE_LIRC_DEVICES}; do
done
add_device() {
+ : ${lirc_device_count:=0}
((lirc_device_count++))
if [[ ${lirc_device_count} -eq 2 ]]; then
@@ -118,17 +119,14 @@ pkg_setup() {
# set default configure options
MY_OPTS=""
- lirc_driver_count=0
-
LIRC_DRIVER_DEVICE="/dev/lirc0"
- 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
+ local dev
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
if use lirc_devices_${dev}; then
add_device ${dev}
@@ -233,8 +231,8 @@ src_unpack() {
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
+ 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
# Bug 187822
epatch "${FILESDIR}/lirc-0.8.2-kernel-2.6.22.patch"
@@ -260,15 +258,15 @@ src_unpack() {
src_install() {
make DESTDIR="${D}" install || die "make install failed"
- newinitd ${FILESDIR}/lircd lircd
- newinitd ${FILESDIR}/lircmd lircmd
- newconfd ${FILESDIR}/lircd.conf lircd
+ newinitd "${FILESDIR}"/lircd lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf lircd
insinto /etc/modules.d/
- newins ${FILESDIR}/modulesd.lirc lirc
+ newins "${FILESDIR}"/modulesd.lirc lirc
- newinitd ${FILESDIR}/irexec-initd irexec
- newconfd ${FILESDIR}/irexec-confd irexec
+ newinitd "${FILESDIR}"/irexec-initd irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
if use doc ; then
dohtml doc/html/*.html
diff --git a/app-misc/lirc/lirc-0.8.2.ebuild b/app-misc/lirc/lirc-0.8.2.ebuild
index 3c48180ec9fc..76233a0d4501 100644
--- a/app-misc/lirc/lirc-0.8.2.ebuild
+++ b/app-misc/lirc/lirc-0.8.2.ebuild
@@ -1,6 +1,6 @@
# 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.ebuild,v 1.2 2007/07/12 03:35:11 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.2.ebuild,v 1.3 2007/10/13 09:20:15 zzam Exp $
inherit eutils linux-mod flag-o-matic autotools
@@ -90,6 +90,7 @@ for dev in ${IUSE_LIRC_DEVICES}; do
done
add_device() {
+ : ${lirc_device_count:=0}
((lirc_device_count++))
if [[ ${lirc_device_count} -eq 2 ]]; then
@@ -118,17 +119,15 @@ 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
+ local dev
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
if use lirc_devices_${dev}; then
add_device ${dev}
@@ -233,8 +232,8 @@ src_unpack() {
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
+ 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
@@ -254,18 +253,18 @@ src_unpack() {
src_install() {
make DESTDIR="${D}" install || die "make install failed"
- newinitd ${FILESDIR}/lircd lircd
- newinitd ${FILESDIR}/lircmd lircmd
- newconfd ${FILESDIR}/lircd.conf lircd
+ newinitd "${FILESDIR}"/lircd lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf lircd
insinto /etc/modules.d/
- newins ${FILESDIR}/modulesd.lirc lirc
+ newins "${FILESDIR}"/modulesd.lirc lirc
- newinitd ${FILESDIR}/irexec-initd irexec
- newconfd ${FILESDIR}/irexec-confd irexec
+ newinitd "${FILESDIR}"/irexec-initd irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
insinto /etc/udev/rules.d/;
- newins ${S}/contrib/lirc.rules 10-lirc.rules
+ newins "${S}"/contrib/lirc.rules 10-lirc.rules
if use doc ; then
dohtml doc/html/*.html
diff --git a/app-misc/lirc/lirc-0.8.2_pre2.ebuild b/app-misc/lirc/lirc-0.8.2_pre2.ebuild
index a5ecd3311a9a..8642a52d2fe0 100644
--- a/app-misc/lirc/lirc-0.8.2_pre2.ebuild
+++ b/app-misc/lirc/lirc-0.8.2_pre2.ebuild
@@ -1,6 +1,6 @@
# 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.3 2007/07/12 03:35:11 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.2_pre2.ebuild,v 1.4 2007/10/13 09:20:15 zzam Exp $
inherit eutils linux-mod flag-o-matic autotools
@@ -90,6 +90,7 @@ for dev in ${IUSE_LIRC_DEVICES}; do
done
add_device() {
+ : ${lirc_device_count:=0}
((lirc_device_count++))
if [[ ${lirc_device_count} -eq 2 ]]; then
@@ -118,17 +119,15 @@ 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
+ local dev
for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
if use lirc_devices_${dev}; then
add_device ${dev}
@@ -233,8 +232,8 @@ src_unpack() {
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
+ 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
@@ -254,18 +253,18 @@ src_unpack() {
src_install() {
make DESTDIR="${D}" install || die "make install failed"
- newinitd ${FILESDIR}/lircd lircd
- newinitd ${FILESDIR}/lircmd lircmd
- newconfd ${FILESDIR}/lircd.conf lircd
+ newinitd "${FILESDIR}"/lircd lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf lircd
insinto /etc/modules.d/
- newins ${FILESDIR}/modulesd.lirc lirc
+ newins "${FILESDIR}"/modulesd.lirc lirc
- newinitd ${FILESDIR}/irexec-initd irexec
- newconfd ${FILESDIR}/irexec-confd irexec
+ newinitd "${FILESDIR}"/irexec-initd irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
insinto /etc/udev/rules.d/;
- newins ${S}/contrib/lirc.rules 10-lirc.rules
+ newins "${S}"/contrib/lirc.rules 10-lirc.rules
if use doc ; then
dohtml doc/html/*.html