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

Contents of /x11-misc/synergy/synergy-1.5.0_p2278.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 9 09:23:42 2014 UTC (2 months, 3 weeks ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Fix DESCRIPTION.

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

1 # Copyright 1999-2014 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.5.0_p2278.ebuild,v 1.1 2014/07/16 22:03:42 jer Exp $
4
5 EAPI=5
6 inherit eutils flag-o-matic gnome2-utils cmake-utils qt4-r2
7
8 DESCRIPTION="Lets you easily share a single mouse and keyboard between multiple computers"
9 HOMEPAGE="http://synergy-project.org/"
10 SRC_URI="
11 ${HOMEPAGE}files/packages/${P/_p/-r}-Source.tar.gz
12 http://dev.gentoo.org/~hasufell/distfiles/${PN}.png
13 "
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris"
18 IUSE="qt4 test"
19
20 COMMON_DEPEND="
21 >=dev-libs/crypto++-5.6.2
22 x11-libs/libICE
23 x11-libs/libSM
24 x11-libs/libX11
25 x11-libs/libXext
26 x11-libs/libXi
27 x11-libs/libXinerama
28 x11-libs/libXrandr
29 x11-libs/libXtst
30 qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 )
31 "
32 DEPEND="
33 ${COMMON_DEPEND}
34 test? ( >=dev-cpp/gmock-1.6.0 )
35 x11-proto/kbproto
36 x11-proto/randrproto
37 x11-proto/xextproto
38 x11-proto/xineramaproto
39 x11-proto/xproto
40 "
41 RDEPEND="
42 ${COMMON_DEPEND}
43 qt4? ( !x11-misc/qsynergy )
44 "
45
46 PATCHES=(
47 "${FILESDIR}/${PN}-1.4.16_p1969-pthread.patch"
48 "${FILESDIR}/${PN}-1.4.17_p2055-cryptopp.patch"
49 "${FILESDIR}/${PN}-1.4.17_p2055-test.patch"
50 "${FILESDIR}/${PN}-1.4.17_p2055-gentoo.patch"
51 "${FILESDIR}/${PN}-1.4.17_p2055-CSocketMultiplexer.patch"
52 )
53
54 S=${WORKDIR}/${P/_p*/}-Source
55
56 src_prepare() {
57 cmake-utils_src_prepare
58 }
59
60 src_configure() {
61 local mycmakeargs=$(cmake-utils_use_with test GENTOO_TEST)
62 cmake-utils_src_configure
63
64 if use qt4 ; then
65 cd src/gui || die
66 qt4-r2_src_configure
67 fi
68 }
69
70 src_compile() {
71 cmake-utils_src_compile
72
73 if use qt4 ; then
74 cd src/gui || die
75 qt4-r2_src_compile
76 fi
77 }
78
79 src_test() {
80 local exe fail
81 for exe in bin/integtests bin/unittests; do
82 ${exe} || fail+=" ${exe}"
83 done
84 [[ ${fail} ]] && ewarn "${fail} failed"
85 }
86
87 src_install () {
88 dobin bin/${PN}{c,s}
89
90 if use qt4 ; then
91 newbin bin/${PN} qsynergy
92 newicon -s 256 "${DISTDIR}"/${PN}.png q${PN}.png
93 make_desktop_entry q${PN} ${PN/s/S} q${PN} Utility;
94 fi
95
96 insinto /etc
97 newins doc/synergy.conf.example synergy.conf
98
99 newman doc/${PN}c.man ${PN}c.1
100 newman doc/${PN}s.man ${PN}s.1
101
102 dodoc README doc/synergy.conf.example* ChangeLog
103 }
104
105 pkg_preinst() {
106 use qt4 && gnome2_icon_savelist
107 }
108
109 pkg_postinst() {
110 use qt4 && gnome2_icon_cache_update
111 }
112
113 pkg_postrm() {
114 use qt4 && gnome2_icon_cache_update
115 }

  ViewVC Help
Powered by ViewVC 1.1.20