summaryrefslogtreecommitdiff
blob: a3bc0d3e48f4e83a3375bf987e73062138ac2d28 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-itouch/xmms-itouch-0.1.2.ebuild,v 1.7 2004/07/14 20:43:14 agriffis Exp $

IUSE="nls"

DESCRIPTION="XMMS plugin for multimedia keys on Logitech keyboards and others alike"
HOMEPAGE="http://www.saunalahti.fi/~syrjala/xmms-itouch/"
SRC_URI="http://www.saunalahti.fi/~syrjala/xmms-itouch/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND="media-sound/xmms"

src_install () {
	make DESTDIR=${D} install || die
}


src_compile() {
	local myconf

	use nls || myconf="${myconf} --disable-nls"

	econf ${myconf} || die "econf failed"
	emake || die
}

pkg_postinst() {
	einfo "To configure the multimedia keys, run \"xev\" and"
	einfo "press desired keys to get the corresponding keycode."
	einfo "Insert this into the xmms plugin config screen."
	einfo "Multimedia key codes can also be found at"
	einfo "\"http://www.saunalahti.fi/~syrjala/xmms-itouch/\""
	einfo "for some keyboard models - but for complete freedom of choice "
	einfo "xev is your friend :-)"
}