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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Feb 5 17:54:37 2012 UTC (2 years, 10 months ago) by armin76
Branch: MAIN
Changes since 1.5: +2 -2 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-r3.ebuild,v 1.5 2012/01/04 21:33:22 ranger Exp $
4
5 inherit eutils toolchain-funcs
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 # Revert part of debian patch messing with CFLAGS
35 sed -i '/CFLAGS = -Wall/d' Imakefile || die
36
37 # Fix variable initialization in Debian patch
38 epatch "${DISTDIR}"/x2x_1.27-8-initvars.patch.gz
39
40 # Patch to add LICENSE
41 epatch "${DISTDIR}"/${P}-license.patch.gz
42
43 # Patch to fix bug #126939
44 # AltGr does not work in x2x with different keymaps:
45 epatch "${DISTDIR}"/${P}-keymap.diff.gz
46
47 # Man-page is packaged as x2x.1 but needs to be x2x.man for building
48 mv x2x.1 x2x.man || die
49 }
50
51 src_compile() {
52 xmkmf || die
53 emake CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
54 EXTRA_LDOPTIONS="${LDFLAGS}" || die
55 }
56
57 src_install () {
58 emake DESTDIR="${D}" install || die
59 newman x2x.man x2x.1 || die
60 }

  ViewVC Help
Powered by ViewVC 1.1.20