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