1 |
commit: 13eb61d316b00795d68f15c975e3a9ed03d9d3be |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 30 20:31:58 2019 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 30 20:47:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13eb61d3 |
7 |
|
8 |
net-misc/x2goclient: support 17.1 profiles |
9 |
|
10 |
Closes: https://bugs.gentoo.org/689280 |
11 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
12 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
13 |
|
14 |
.../files/x2goclient-4.1.2.1-gentoo-17.1.patch | 14 ++++ |
15 |
net-misc/x2goclient/x2goclient-4.1.2.1-r1.ebuild | 75 ++++++++++++++++++++++ |
16 |
2 files changed, 89 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/x2goclient/files/x2goclient-4.1.2.1-gentoo-17.1.patch b/net-misc/x2goclient/files/x2goclient-4.1.2.1-gentoo-17.1.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..b9a63264be9 |
21 |
--- /dev/null |
22 |
+++ b/net-misc/x2goclient/files/x2goclient-4.1.2.1-gentoo-17.1.patch |
23 |
@@ -0,0 +1,14 @@ |
24 |
+X-Git-Url: https://code.x2go.org/gitweb?p=x2goclient.git;a=blobdiff_plain;f=src%2Fonmainwindow.cpp;h=cd97e6c7f28a6ab4e9495f7a9ba4b447f2b47a2f;hp=cb6bb72918cdc1d54f57cbf0b426adb03a6f4dc8;hb=567223f;hpb=fc5c93518b9023e2499a945740cd6559233ed301 |
25 |
+ |
26 |
+diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp |
27 |
+index cb6bb72..cd97e6c 100644 |
28 |
+--- a/src/onmainwindow.cpp |
29 |
++++ b/src/onmainwindow.cpp |
30 |
+@@ -10754,6 +10754,7 @@ void ONMainWindow::generateEtcFiles() |
31 |
+ << "/usr/libexec/openssh" /* Fedora, CentOS, hopefully also RHEL */ |
32 |
+ << "/usr/lib/ssh" /* Mageia, OpenSUSE, SLE{S,D} < 12 x86, SLE{S,D} 12, Arch */ |
33 |
+ << "/usr/lib64/ssh" /* SLE{S,D} < 12 x86_64 */ |
34 |
++ << "/usr/lib64/misc" /* Gentoo *64 with 17.1 profile - has no lib compat-symlink. */ |
35 |
+ << "/usr/lib/misc" /* Gentoo */ |
36 |
+ << "/run/current-system/sw/bin" /* NixOS */ |
37 |
+ << "/usr/libexec"; /* Slackware, OS X */ |
38 |
|
39 |
diff --git a/net-misc/x2goclient/x2goclient-4.1.2.1-r1.ebuild b/net-misc/x2goclient/x2goclient-4.1.2.1-r1.ebuild |
40 |
new file mode 100644 |
41 |
index 00000000000..953c984a775 |
42 |
--- /dev/null |
43 |
+++ b/net-misc/x2goclient/x2goclient-4.1.2.1-r1.ebuild |
44 |
@@ -0,0 +1,75 @@ |
45 |
+# Copyright 1999-2019 Gentoo Authors |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI=6 |
49 |
+ |
50 |
+inherit desktop gnome2-utils qmake-utils |
51 |
+ |
52 |
+DESCRIPTION="The X2Go Qt client" |
53 |
+HOMEPAGE="http://www.x2go.org" |
54 |
+SRC_URI="http://code.x2go.org/releases/source/${PN}/${P}.tar.gz" |
55 |
+ |
56 |
+LICENSE="GPL-2" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~x86" |
59 |
+IUSE="ldap" |
60 |
+ |
61 |
+COMMON_DEPEND="dev-qt/qtcore:5 |
62 |
+ dev-qt/qtgui:5 |
63 |
+ dev-qt/qtnetwork:5[ssl] |
64 |
+ dev-qt/qtsvg:5 |
65 |
+ dev-qt/qtwidgets:5 |
66 |
+ dev-qt/qtx11extras:5 |
67 |
+ >=net-libs/libssh-0.7.5-r2 |
68 |
+ net-print/cups |
69 |
+ x11-libs/libXpm |
70 |
+ ldap? ( net-nds/openldap )" |
71 |
+DEPEND="${COMMON_DEPEND} |
72 |
+ dev-qt/linguist-tools:5" |
73 |
+RDEPEND="${COMMON_DEPEND} |
74 |
+ net-misc/nx" |
75 |
+ |
76 |
+CLIENT_BUILD="${WORKDIR}"/${P}.client_build |
77 |
+PLUGIN_BUILD="${WORKDIR}"/${P}.plugin_build |
78 |
+ |
79 |
+PATCHES=( |
80 |
+ "${FILESDIR}/${P}-qt511.patch" |
81 |
+ "${FILESDIR}/${P}-gentoo-17.1.patch" |
82 |
+) |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ |
87 |
+ if ! use ldap; then |
88 |
+ sed -e "s/-lldap//" -i x2goclient.pro || die |
89 |
+ sed -e "s/#define USELDAP//" -i src/x2goclientconfig.h || die |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ eqmake5 "${S}"/x2goclient.pro |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ dobin ${PN} |
99 |
+ |
100 |
+ local size |
101 |
+ for size in 16 32 48 64 128 ; do |
102 |
+ doicon -s ${size} res/img/icons/${size}x${size}/${PN}.png |
103 |
+ done |
104 |
+ newicon -s scalable res/img/icons/hildon/${PN}_hildon.svg ${PN}.svg |
105 |
+ |
106 |
+ insinto /usr/share/pixmaps |
107 |
+ doins res/img/icons/${PN}.xpm |
108 |
+ |
109 |
+ domenu desktop/${PN}.desktop |
110 |
+ doman man/man?/* |
111 |
+} |
112 |
+ |
113 |
+pkg_postinst() { |
114 |
+ gnome2_icon_cache_update |
115 |
+} |
116 |
+ |
117 |
+pkg_postrm() { |
118 |
+ gnome2_icon_cache_update |
119 |
+} |