/[gentoo-x86]/x11-misc/x2x/x2x-1.27-r2.ebuild
Gentoo

Contents of /x11-misc/x2x/x2x-1.27-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Feb 5 17:54:37 2012 UTC (2 years, 9 months ago) by armin76
Branch: MAIN
Changes since 1.6: +3 -3 lines
Drop alpha/sparc keywords

(Portage version: 2.1.10.44/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/x2x/x2x-1.27-r2.ebuild,v 1.6 2009/05/05 18:17:49 ssuominen Exp $
4
5 inherit eutils
6
7 DESCRIPTION="An utility to connect the Mouse and KeyBoard to another X"
8 HOMEPAGE="http://www.the-labs.com/X11/#x2x"
9 LICENSE="as-is"
10 SRC_URI="http://ftp.digital.com/pub/Digital/SRC/x2x/${P}.tar.gz
11 mirror://debian/pool/main/x/x2x/x2x_1.27-8.diff.gz
12 mirror://gentoo/x2x_1.27-8-initvars.patch.gz
13 mirror://gentoo/${P}-license.patch.gz
14 mirror://gentoo/${P}-keymap.diff.gz"
15 SLOT="0"
16 KEYWORDS="amd64 ~mips ~ppc x86"
17 IUSE=""
18
19 RDEPEND="x11-libs/libX11
20 x11-libs/libXtst
21 x11-libs/libXext"
22 DEPEND="${RDEPEND}
23 x11-proto/inputproto
24 app-text/rman
25 x11-misc/imake
26 x11-proto/xproto"
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31
32 # Patch from Debian to add -north and -south, among other fixes
33 epatch "${DISTDIR}"/x2x_1.27-8.diff.gz
34
35 # Fix variable initialization in Debian patch
36 epatch "${DISTDIR}"/x2x_1.27-8-initvars.patch.gz
37
38 # Patch to add LICENSE
39 epatch "${DISTDIR}"/${P}-license.patch.gz
40
41 # Patch to fix bug #126939
42 # AltGr does not work in x2x with different keymaps:
43 epatch "${DISTDIR}"/${P}-keymap.diff.gz
44
45 # Man-page is packaged as x2x.1 but needs to be x2x.man for building
46 mv x2x.1 x2x.man
47 }
48
49 src_compile() {
50 xmkmf || die "xmkmf failed."
51 emake || die "emake failed."
52 }
53
54 src_install () {
55 make DESTDIR="${D}" install || die "emake install failed."
56 newman x2x.man x2x.1
57 }

  ViewVC Help
Powered by ViewVC 1.1.20