blob: 61cedbb1afe46ab2ec64605037c03042d38960a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils linux-info
DESCRIPTION="Blinks your ThinkPad's ThinkLight upon new messages"
HOMEPAGE="http://www.joachim-breitner.de/blog/archives/239-gaim-thinklight-pidgin-blinklight.html"
SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV}.orig.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="net-im/pidgin"
RDEPEND="${DEPEND}"
DOCS="AUTHORS ChangeLog README TODO VERSION"
pkg_pretend() {
local acpi_modules="THINKPAD_ACPI ASUS_LAPTOP ACPI_ASUS IBM-ACPI"
local acpi_module_present=
if linux_config_exists; then
for config in ${acpi_modules}; do
linux_chkconfig_present ${config} && acpi_module_present=true
done
fi
if ! [[ ${acpi_module_present} ]]; then
ewarn "Could not find one of the required acpi modules in your kernel config,"
ewarn "Please enable one of the following:"
ewarn "$acpi_modules"
fi
}
src_prepare() {
epatch "${FILESDIR}"/fix-paths.patch
}
|