Contents of /trunk/extras/synergy/synergy-1.4.15-r2.smage2
Parent Directory | Revision Log
Revision 20584 -
(show annotations)
(download)
Tue Jan 28 12:47:26 2014 UTC (10 years, 8 months ago) by niro
File size: 2418 byte(s)
Tue Jan 28 12:47:26 2014 UTC (10 years, 8 months ago) by niro
File size: 2418 byte(s)
-fixed broken synergy-gui installation
1 | # $Id$ |
2 | |
3 | PNAME="synergy" |
4 | PVER="1.4.15" |
5 | PBUILD="r2" |
6 | |
7 | SPLIT_PACKAGES="synergy synergy-gui" |
8 | PCAT="x11-misc" |
9 | |
10 | DESCRIPTION="Redirects the mouse and keyboard over network." |
11 | HOMEPAGE="http://synergy-foss.org/" |
12 | |
13 | SYNERGY_DEPEND=">= sys-libs/libstdc++-4.8 |
14 | >= x11-libs/libICE-1 |
15 | >= x11-libs/libSM-1.2 |
16 | >= x11-libs/libX11-1.6 |
17 | >= x11-libs/libXext-1.3 |
18 | >= x11-libs/libXi-1.7 |
19 | >= x11-libs/libXinerama-1.1 |
20 | >= x11-libs/libXrandr-1.4 |
21 | >= x11-libs/libXtst-1.2 |
22 | >= app-crypt/crypto++-5.6" |
23 | |
24 | GUI_DEPEND=">= x11-libs/qt4-core-4.8 |
25 | >= x11-libs/qt4-gui-4.8" |
26 | |
27 | SDEPEND="${SYNERGY_DEPEND} |
28 | ${GUI_DEPEND} |
29 | >= media-gfx/imagemagick-6.7" |
30 | |
31 | SRCFILE="${PNAME}-${PVER}-Source.tar.gz" |
32 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}-Source" |
33 | |
34 | sminclude mtools cmake xdg systemd qt4 |
35 | |
36 | SRC_URI=( |
37 | http://synergy.googlecode.com/files/${SRCFILE} |
38 | mirror://${PNAME}/${SRCFILE} |
39 | mirror://${PNAME}/synergys.service |
40 | mirror://${PNAME}/synergys.socket |
41 | mirror://${PNAME}/${PNAME}-${PVER}-use-system-cryptopp.patch |
42 | ) |
43 | |
44 | UP2SUBSTITUTE="-Source" |
45 | UP2DATE="updatecmd 'http://synergy-foss.org/download/?list' | lasttarball gz" |
46 | |
47 | split_info_synergy() |
48 | { |
49 | DESCRIPTION="Redirects the mouse and keyboard over network." |
50 | DEPEND="${SYNERGY_DEPEND}" |
51 | } |
52 | |
53 | split_info_synergy-gui() |
54 | { |
55 | DESCRIPTION="QT4 Gui for synergy." |
56 | DEPEND="== x11-misc/synergy-${PVER} |
57 | ${GUI_DEPEND}" |
58 | } |
59 | |
60 | src_prepare() |
61 | { |
62 | munpack ${SRCFILE} || die |
63 | cd ${SRCDIR} |
64 | |
65 | # use external crypto++ to fix broken build system |
66 | mpatch ${PNAME}-${PVER}-use-system-cryptopp.patch || die |
67 | } |
68 | |
69 | src_compile() |
70 | { |
71 | cmake_src_compile || die |
72 | |
73 | cd ${SRCDIR}/src/gui |
74 | ${QMAKE} || die |
75 | mmake || die |
76 | } |
77 | |
78 | src_install_synergy() |
79 | { |
80 | cd ${SRCDIR} |
81 | |
82 | # no install target in Makefile |
83 | minstallexec bin/synergyc || die |
84 | minstallexec bin/synergys || die |
85 | |
86 | cp doc/synergyc.man synergyc.8 || die |
87 | cp doc/synergys.man synergys.8 || die |
88 | minstallman synergyc.8 || die |
89 | minstallman synergys.8 || die |
90 | |
91 | minstalldir /etc || die |
92 | minstallfile doc/synergy.conf.example /etc/synergy.conf || die |
93 | |
94 | # init stuff |
95 | minstallunit synergys.service || die |
96 | minstallunit synergys.socket || die |
97 | |
98 | minstalldocs ChangeLog COPYING README doc/synergy.conf* || die |
99 | } |
100 | |
101 | src_install_synergy-gui() |
102 | { |
103 | cd ${SRCDIR} |
104 | |
105 | minstallexec bin/synergy || die |
106 | |
107 | # convert ico in png with imagemagick |
108 | convert res/synergy.ico[0] synergy.png || die |
109 | minstallpixmap ${SRCDIR}/synergy.png || die |
110 | minstallxdg --icon synergy --file res/synergy.desktop || die |
111 | |
112 | minstalldocs ChangeLog COPYING README || die |
113 | } |