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

Contents of /x11-misc/synergy/synergy-1.4.16_p1969.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Aug 9 09:23:42 2014 UTC (4 months, 2 weeks ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +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.4.16_p1969.ebuild,v 1.8 2014/08/03 18:34:24 ago 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 http://fossfiles.com/${PN}/${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"
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="${COMMON_DEPEND}
33 x11-proto/kbproto
34 x11-proto/randrproto
35 x11-proto/xextproto
36 x11-proto/xineramaproto
37 x11-proto/xproto
38 "
39 RDEPEND="${COMMON_DEPEND}
40 qt4? ( !x11-misc/qsynergy )
41 "
42
43 PATCHES=(
44 "${FILESDIR}/${PN}-1.4.15-cryptopp.patch"
45 "${FILESDIR}/${PN}-1.4.16_p1969-pthread.patch"
46 )
47
48 S=${WORKDIR}/${P/_p*/}-Source
49
50 src_configure() {
51 cmake-utils_src_configure
52
53 if use qt4 ; then
54 cd src/gui || die
55 qt4-r2_src_configure
56 fi
57 }
58
59 src_compile() {
60 cmake-utils_src_compile
61
62 if use qt4 ; then
63 cd src/gui || die
64 qt4-r2_src_compile
65 fi
66 }
67
68 src_install () {
69 dobin bin/${PN}{c,s}
70
71 if use qt4 ; then
72 newbin bin/${PN} qsynergy
73 newicon -s 256 "${DISTDIR}"/${PN}.png q${PN}.png
74 make_desktop_entry q${PN} ${PN/s/S} q${PN} Utility;
75 fi
76
77 insinto /etc
78 newins doc/synergy.conf.example synergy.conf
79
80 newman doc/${PN}c.man ${PN}c.1
81 newman doc/${PN}s.man ${PN}s.1
82
83 dodoc README doc/synergy.conf.example* ChangeLog
84 }
85
86 pkg_preinst() {
87 use qt4 && gnome2_icon_savelist
88 }
89
90 pkg_postinst() {
91 use qt4 && gnome2_icon_cache_update
92 }
93
94 pkg_postrm() {
95 use qt4 && gnome2_icon_cache_update
96 }

  ViewVC Help
Powered by ViewVC 1.1.20