blob: 6364584e2684563e9187f9b85afed60eb929b86f (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/lomoco/lomoco-1.0-r7.ebuild,v 1.2 2012/08/14 09:18:18 ssuominen Exp $
EAPI=4
inherit autotools eutils multilib toolchain-funcs
DESCRIPTION="Lomoco can configure vendor-specific options on Logitech USB mice."
HOMEPAGE="http://www.lomoco.org/"
SRC_URI="http://www.lomoco.org/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 x86"
IUSE=""
RDEPEND="!<sys-fs/udev-114
virtual/libusb:0"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DOCS="AUTHORS ChangeLog NEWS README"
src_prepare() {
cp -f "${FILESDIR}"/lomoco-pm-utils-r1 "${T}" || die
local udevdir=/lib/udev
has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
sed -i -e "s|@UDEVDIR@|${udevdir}|" "${T}"/lomoco-pm-utils-r1 || die
epatch \
"${FILESDIR}"/${P}-gentoo-hardware-support.patch \
"${FILESDIR}"/${P}-updated-udev.patch
eautoreconf
}
src_compile() {
emake
emake udev-rules
}
src_install() {
default
local udevdir=/lib/udev
has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
insinto "${udevdir}"/rules.d
newins udev/lomoco.rules 40-lomoco.rules
exeinto "${udevdir}"
newexe udev/udev.lomoco lomoco
insinto /etc
doins "${FILESDIR}"/lomoco.conf
exeinto /etc/pm/sleep.d
newexe "${T}"/lomoco-pm-utils-r1 lomoco
}
|