blob: 320dd505e42cc7ca497355f3aa0864d3cf0b40e6 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/synergy/synergy-1.4.2.ebuild,v 1.2 2011/11/22 16:38:20 darkside Exp $
EAPI=3
inherit cmake-utils qt4-r2
DESCRIPTION="Lets you easily share a single mouse and keyboard between multiple computers."
HOMEPAGE="http://synergy-foss.org/"
SRC_URI="http://${PN}.googlecode.com/files/${P}-Source.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="qt4"
RDEPEND="x11-libs/libXtst
x11-libs/libX11
x11-libs/libXext
x11-libs/libXinerama
qt4? ( x11-libs/qt-gui )
qt4? ( !x11-misc/qsynergy )"
DEPEND="${RDEPEND}
x11-proto/xextproto
x11-proto/xproto
x11-proto/kbproto
x11-proto/xineramaproto
x11-libs/libXt"
S=${WORKDIR}/${P}-Source
src_configure() {
cmake-utils_src_configure
if use qt4 ; then
cd gui
qt4-r2_src_configure
fi
}
src_compile() {
cmake-utils_src_compile
if use qt4 ; then
cd gui
qt4-r2_src_compile
fi
}
src_install () {
dobin "${CMAKE_BUILD_DIR}"/${PN}{c,s} || die
if use qt4 ; then
dobin bin/q${PN} || die
insinto /usr/share/icons
newins gui/res/win/QSynergy.ico q${PN}.ico
make_desktop_entry q${PN} ${PN/s/S} q${PN} Utility;
fi
insinto /etc
doins conf/synergy.conf || die
mv doc/${PN}c.man doc/${PN}c.1 || die
mv doc/${PN}s.man doc/${PN}s.1 || die
doman doc/${PN}{c,s}.1 || die
dodoc README doc/synergy.conf.example* || die
}
|