blob: c5c3f6bba71c6c9add2dd3f78732fce2fb01753f (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/joy2key/joy2key-1.6.1.ebuild,v 1.6 2007/07/22 09:55:12 omp Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils autotools flag-o-matic
DESCRIPTION="An application that translates joystick events to keyboard events"
HOMEPAGE="http://interreality.org/~tetron/technology/joy2key/"
SRC_URI="${HOMEPAGE}/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="X"
DEPEND="X? ( x11-libs/libX11 )"
RDEPEND="$DEPEND
x11-apps/xwininfo"
src_unpack() {
unpack ${A}
cd "${S}"
# fix-configure.in.diff fix issue with blank -L blocking -lX11
# Thanks to Joshua Baergen in bug #82685
epatch "${FILESDIR}/${PV}-fix-configure.diff"
eautoreconf
}
src_compile() {
local myconf
use X || myconf="--disable-X"
filter-flags -O?
econf ${myconf} || die "econf failed"
emake || die
}
src_install() {
dobin joy2key
doman joy2key.1
dodoc README joy2keyrc.sample AUTHORS NEWS TODO
}
|