/[gentoo-x86]/x11-misc/synergy/synergy-1.4.10.ebuild
Gentoo

Contents of /x11-misc/synergy/synergy-1.4.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Nov 2 16:24:15 2013 UTC (4 years ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/synergy/synergy-1.4.10.ebuild,v 1.8 2013/03/02 23:53:33 hwoarang Exp $
4
5 EAPI=4
6
7 inherit eutils flag-o-matic gnome2-utils cmake-utils qt4-r2
8
9 DESCRIPTION="Lets you easily share a single mouse and keyboard between multiple computers."
10 HOMEPAGE="http://synergy-foss.org/"
11 SRC_URI="http://${PN}.googlecode.com/files/${P}-Source.tar.gz
12 http://dev.gentoo.org/~hasufell/distfiles/${PN}.png"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha amd64 ~arm ppc ppc64 ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris"
17 IUSE="qt4"
18
19 RDEPEND="x11-libs/libXtst
20 x11-libs/libX11
21 x11-libs/libXext
22 x11-libs/libXinerama
23 qt4? ( dev-qt/qtgui:4 )
24 qt4? ( !x11-misc/qsynergy )"
25 DEPEND="${RDEPEND}
26 x11-proto/xextproto
27 x11-proto/xproto
28 x11-proto/kbproto
29 x11-proto/xineramaproto
30 x11-libs/libXt"
31
32 S=${WORKDIR}/${P}-Source
33
34 src_configure() {
35 # 1.4.4+ : http://synergy-foss.org/pm/issues/3016
36 append-ldflags $(no-as-needed)
37
38 cmake-utils_src_configure
39
40 if use qt4 ; then
41 cd src/gui
42 qt4-r2_src_configure
43 fi
44 }
45
46 src_compile() {
47 cmake-utils_src_compile
48
49 if use qt4 ; then
50 cd src/gui
51 qt4-r2_src_compile
52 fi
53 }
54
55 src_install () {
56 dobin bin/${PN}{c,s}
57
58 if use qt4 ; then
59 newbin bin/${PN} qsynergy
60 newicon -s 256 "${DISTDIR}"/${PN}.png q${PN}.png
61 make_desktop_entry q${PN} ${PN/s/S} q${PN} Utility;
62 fi
63
64 insinto /etc
65 newins doc/synergy.conf.example synergy.conf
66
67 mv doc/${PN}c.man doc/${PN}c.1 || die
68 mv doc/${PN}s.man doc/${PN}s.1 || die
69 doman doc/${PN}{c,s}.1
70
71 dodoc README doc/synergy.conf.example* ChangeLog
72 }
73
74 pkg_preinst() {
75 use qt4 && gnome2_icon_savelist
76 }
77
78 pkg_postinst() {
79 use qt4 && gnome2_icon_cache_update
80 }
81
82 pkg_postrm() {
83 use qt4 && gnome2_icon_cache_update
84 }

  ViewVC Help
Powered by ViewVC 1.1.20