Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/x2goclient/
Date: Tue, 30 May 2017 08:18:04
Message-Id: 1496132273.4361b2e301c458f67d348fcbd928dc69f21c592e.polynomial-c@gentoo
1 commit: 4361b2e301c458f67d348fcbd928dc69f21c592e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 30 08:17:53 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue May 30 08:17:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4361b2e3
7
8 net-misc/x2goclient: Revbump to add more icons.
9
10 Permission kindly granted by voyageur.
11
12 Package-Manager: Portage-2.3.6, Repoman-2.3.2
13
14 net-misc/x2goclient/x2goclient-4.1.0.0-r1.ebuild | 104 +++++++++++++++++++++++
15 1 file changed, 104 insertions(+)
16
17 diff --git a/net-misc/x2goclient/x2goclient-4.1.0.0-r1.ebuild b/net-misc/x2goclient/x2goclient-4.1.0.0-r1.ebuild
18 new file mode 100644
19 index 00000000000..4774046e76f
20 --- /dev/null
21 +++ b/net-misc/x2goclient/x2goclient-4.1.0.0-r1.ebuild
22 @@ -0,0 +1,104 @@
23 +# Copyright 1999-2017 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +inherit nsplugins qmake-utils
29 +
30 +DESCRIPTION="The X2Go Qt client"
31 +HOMEPAGE="http://www.x2go.org"
32 +SRC_URI="http://code.x2go.org/releases/source/${PN}/${P}.tar.gz"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +IUSE="ldap nsplugin qt5"
38 +
39 +REQUIRED_USE="nsplugin? ( !qt5 )"
40 +
41 +DEPEND=">=net-libs/libssh-0.6.0_rc1
42 + net-print/cups
43 + x11-libs/libXpm
44 + ldap? ( net-nds/openldap )
45 + !qt5? (
46 + dev-qt/qtcore:4[ssl]
47 + dev-qt/qtgui:4
48 + dev-qt/qtsvg:4
49 + )
50 + qt5? (
51 + dev-qt/qtcore:5
52 + dev-qt/qtgui:5
53 + dev-qt/qtnetwork:5[ssl]
54 + dev-qt/qtsvg:5
55 + dev-qt/qtwidgets:5
56 + dev-qt/qtx11extras:5
57 + )
58 +"
59 +RDEPEND="${DEPEND}
60 + net-misc/nx"
61 +
62 +CLIENT_BUILD="${WORKDIR}"/${P}.client_build
63 +PLUGIN_BUILD="${WORKDIR}"/${P}.plugin_build
64 +
65 +src_prepare() {
66 + default
67 +
68 + if ! use ldap; then
69 + sed -e "s/-lldap//" -i x2goclient.pro || die
70 + sed -e "s/#define USELDAP//" -i src/x2goclientconfig.h || die
71 + fi
72 +
73 + mkdir -p "${CLIENT_BUILD}" || die
74 + if use nsplugin; then
75 + mkdir -p "${PLUGIN_BUILD}" || die
76 + fi
77 +}
78 +
79 +src_configure() {
80 + cd "${CLIENT_BUILD}" || die
81 +
82 + if use qt5; then
83 + eqmake5 "${S}"/x2goclient.pro
84 + else
85 + eqmake4 "${S}"/x2goclient.pro
86 + fi
87 +
88 + if use nsplugin; then
89 + cd "${PLUGIN_BUILD}" || die
90 + X2GO_CLIENT_TARGET=plugin eqmake4 "${S}"/x2goclient.pro
91 + fi
92 +}
93 +
94 +src_compile() {
95 + cd "${CLIENT_BUILD}" || die
96 + emake
97 +
98 + if use nsplugin; then
99 + cd "${PLUGIN_BUILD}" || die
100 + emake
101 + fi
102 +}
103 +
104 +src_install() {
105 + dobin "${CLIENT_BUILD}"/${PN}
106 +
107 + local size
108 + for size in 16 32 48 64 128 ; do
109 + doicon -s ${size} res/img/icons/${size}x${size}/${PN}.png
110 + done
111 + newicon -s scalable res/img/icons/hildon/${PN}_hildon.svg ${PN}.svg
112 +
113 + insinto /usr/share/pixmaps
114 + doins res/img/icons/${PN}.xpm
115 +
116 + domenu desktop/${PN}.desktop
117 + doman man/man?/*
118 +
119 + if use nsplugin; then
120 + # PLUGINS_DIR comes from nsplugins.eclass
121 + exeinto /usr/$(get_libdir)/${PLUGINS_DIR}
122 + doexe "${PLUGIN_BUILD}"/libx2goplugin.so
123 + fi
124 +
125 + emake DESTDIR="${D}" PREFIX=/usr install_pluginprovider
126 +}