Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 335701
Collapse All | Expand All

(-)/usr/portage/x11-misc/x2x/x2x-1.27-r2.ebuild (-6 / +16 lines)
Lines 4-9 Link Here
4
4
5
inherit eutils
5
inherit eutils
6
6
7
EAPI=2
8
7
DESCRIPTION="An utility to connect the Mouse and KeyBoard to another X"
9
DESCRIPTION="An utility to connect the Mouse and KeyBoard to another X"
8
HOMEPAGE="http://www.the-labs.com/X11/#x2x"
10
HOMEPAGE="http://www.the-labs.com/X11/#x2x"
9
LICENSE="as-is"
11
LICENSE="as-is"
Lines 28-49 Link Here
28
src_unpack() {
30
src_unpack() {
29
	unpack ${A}
31
	unpack ${A}
30
	cd "${S}"
32
	cd "${S}"
31
33
}
34
src_configure(){
32
	# Patch from Debian to add -north and -south, among other fixes
35
	# Patch from Debian to add -north and -south, among other fixes
33
	epatch "${DISTDIR}"/x2x_1.27-8.diff.gz
36
	epatch "${DISTDIR}"/x2x_1.27-8.diff.gz ||die "debian patch failed"
34
37
35
	# Fix variable initialization in Debian patch
38
	# Fix variable initialization in Debian patch
36
	epatch "${DISTDIR}"/x2x_1.27-8-initvars.patch.gz
39
	epatch "${DISTDIR}"/x2x_1.27-8-initvars.patch.gz || die "initialization patch failed"
37
40
38
	# Patch to add LICENSE
41
	# Patch to add LICENSE
39
	epatch "${DISTDIR}"/${P}-license.patch.gz
42
	epatch "${DISTDIR}"/${P}-license.patch.gz || die "LICENSE patch failed"
40
43
41
	# Patch to fix bug #126939
44
	# Patch to fix bug #126939
42
	# AltGr does not work in x2x with different keymaps:
45
	# AltGr does not work in x2x with different keymaps:
43
	epatch "${DISTDIR}"/${P}-keymap.diff.gz
46
	epatch "${DISTDIR}"/${P}-keymap.diff.gz || die "AltGr patch failed"
44
47
48
	# sed to fix calling gcc directly, fix LDFLAGS and fix cflags
49
	sed -i Imakefile -e "s/gcc/$(tc-getCC)/" \
50
			 -e "s:CFLAGS =:CFLAGS +=:" \
51
			 -e "s/CDEBUGFLAGS = -O/CDEBUGFLAGS += -O \n LDOPTIONS += ${LDFLAGS}/"\
52
			 || die "sed failed"
53
	
45
	# Man-page is packaged as x2x.1 but needs to be x2x.man for building
54
	# Man-page is packaged as x2x.1 but needs to be x2x.man for building
46
	mv x2x.1 x2x.man
55
	mv x2x.1 x2x.man || die
56
	
47
}
57
}
48
58
49
src_compile() {
59
src_compile() {

Return to bug 335701