1 |
commit: 4daec60d09eb5d41be67c1b4da2371396dad65d7 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 28 21:20:46 2021 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 28 21:20:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4daec60d |
7 |
|
8 |
net-misc/nextcloud-client: 3.3.4 bump |
9 |
|
10 |
Backport upstream patch to depend on librsvg instead of inkscape to |
11 |
generate PNG images |
12 |
|
13 |
Package-Manager: Portage-3.0.24, Repoman-3.0.3 |
14 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
15 |
|
16 |
net-misc/nextcloud-client/Manifest | 1 + |
17 |
.../nextcloud-client-3.3.4-inkscape_to_rsvg.patch | 54 +++++++++++++ |
18 |
.../nextcloud-client/nextcloud-client-3.3.4.ebuild | 93 ++++++++++++++++++++++ |
19 |
3 files changed, 148 insertions(+) |
20 |
|
21 |
diff --git a/net-misc/nextcloud-client/Manifest b/net-misc/nextcloud-client/Manifest |
22 |
index a9ec507b716..d4ea815aecd 100644 |
23 |
--- a/net-misc/nextcloud-client/Manifest |
24 |
+++ b/net-misc/nextcloud-client/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST nextcloud-client-3.1.3.tar.gz 19552683 BLAKE2B 321ddc6bd5f9428abe1eafe25d426c26c99307c5e7d204bc60fd1bafe773fbed9cb54264f7b1ec7766078b8c06a2399c916a8bd9291e0e28e5b6b3ed8725a7a4 SHA512 ca0a70e65be67e10a7cb45f2b30f6b82230f30c2e3afcd16a222a8ed6fb8df4eff5e78fe0b6e3f4c6a18ff963896ccd6d8282c9829bd75a943324d4ab0068a99 |
27 |
DIST nextcloud-client-3.2.3.tar.gz 15381488 BLAKE2B 14ee239321d7c530dada9d4727fa7cc9801637827fc8dd065ea9b68c54f3559cdb56b0d0e0e37fc7aa5c668be51e3839bc33b20ea9ab73e4a1df4ba260b0ab9e SHA512 bbb247ce4945503a5b1af55ee200edaef000bb21220a9408657e057c98bd3f7bd646dedbedc57048e9f593f3a1d408ac37b4b01c390ecf85dca82868792e922d |
28 |
+DIST nextcloud-client-3.3.4.tar.gz 14032214 BLAKE2B 2d5a4cb8ed2aff6166e13c5e7ea5450d9b9ba1f385eb3cb99588584d1ccaf114ecdd4ed2fa0bdfcba6e5582df8e4bcdee371ef0de8c023fde131f23828d30fbf SHA512 c4fe2d032161fea556610396c5b51d6745f41de76d17e21fdd93ed0163f2079d1abba997a3184842403041cc25a303c5844fbd2213717b27d11ff9612f364151 |
29 |
|
30 |
diff --git a/net-misc/nextcloud-client/files/nextcloud-client-3.3.4-inkscape_to_rsvg.patch b/net-misc/nextcloud-client/files/nextcloud-client-3.3.4-inkscape_to_rsvg.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..8e5510db04d |
33 |
--- /dev/null |
34 |
+++ b/net-misc/nextcloud-client/files/nextcloud-client-3.3.4-inkscape_to_rsvg.patch |
35 |
@@ -0,0 +1,54 @@ |
36 |
+From 727de34879b8ef800945e11951cc1a7bee811f03 Mon Sep 17 00:00:00 2001 |
37 |
+From: Heinz Wiesinger <pprkut@××××××××.org> |
38 |
+Date: Thu, 26 Aug 2021 16:07:25 +0200 |
39 |
+Subject: [PATCH] Allow using rsvg-convert to generate pngs instead of inkscape |
40 |
+ |
41 |
+Signed-off-by: Heinz Wiesinger <pprkut@××××××××.org> |
42 |
+--- |
43 |
+ src/gui/CMakeLists.txt | 18 +++++++++--------- |
44 |
+ 1 file changed, 9 insertions(+), 9 deletions(-) |
45 |
+ |
46 |
+diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt |
47 |
+index 970d2fc165..efe1b1c349 100644 |
48 |
+--- a/src/gui/CMakeLists.txt |
49 |
++++ b/src/gui/CMakeLists.txt |
50 |
+@@ -236,13 +236,13 @@ if (NOT DEFINED APPLICATION_ICON_NAME) |
51 |
+ endif() |
52 |
+ |
53 |
+ # Generate png icons from svg |
54 |
+-find_program(INKSCAPE |
55 |
+- NAMES inkscape inkscape.exe |
56 |
++find_program(SVG_CONVERTER |
57 |
++ NAMES inkscape inkscape.exe rsvg-convert |
58 |
+ REQUIRED |
59 |
+- HINTS "C:\\Program Files\\Inkscape\\bin" "/usr/bin" ENV INKSCAPE_DIR) |
60 |
++ HINTS "C:\\Program Files\\Inkscape\\bin" "/usr/bin" ENV SVG_CONVERTER_DIR) |
61 |
+ # REQUIRED keyword is only supported on CMake 3.18 and above |
62 |
+-if (NOT INKSCAPE) |
63 |
+- message(FATAL_ERROR "Could not find inkscape. Set INKSCAPE_DIR to the path of executable.") |
64 |
++if (NOT SVG_CONVERTER) |
65 |
++ message(FATAL_ERROR "Could not find a suitable svg converter. Set SVG_CONVERTER_DIR to the path of either the inkscape or rsvg-convert executable.") |
66 |
+ endif() |
67 |
+ |
68 |
+ function(generate_sized_png_from_svg icon_path size) |
69 |
+@@ -256,16 +256,16 @@ function(generate_sized_png_from_svg icon_path size) |
70 |
+ set(icon_output_name "${size}-${icon_name_wle}.png") |
71 |
+ message(STATUS "Generate ${icon_output_name}") |
72 |
+ execute_process(COMMAND |
73 |
+- "${INKSCAPE}" -w ${size} -h ${size} "${icon_path}" -o "${icon_output_name}" |
74 |
++ "${SVG_CONVERTER}" -w ${size} -h ${size} "${icon_path}" -o "${icon_output_name}" |
75 |
+ WORKING_DIRECTORY "${icon_name_dir}" |
76 |
+ RESULT_VARIABLE |
77 |
+- INKSCAPE_SIDEBAR_ERROR |
78 |
++ SVG_CONVERTER_SIDEBAR_ERROR |
79 |
+ OUTPUT_QUIET |
80 |
+ ERROR_QUIET) |
81 |
+ |
82 |
+- if (INKSCAPE_SIDEBAR_ERROR) |
83 |
++ if (SVG_CONVERTER_SIDEBAR_ERROR) |
84 |
+ message(FATAL_ERROR |
85 |
+- "inkscape could not generate icon: ${INKSCAPE_SIDEBAR_ERROR}") |
86 |
++ "${SVG_CONVERTER} could not generate icon: ${SVG_CONVERTER_SIDEBAR_ERROR}") |
87 |
+ else() |
88 |
+ endif() |
89 |
+ endfunction() |
90 |
|
91 |
diff --git a/net-misc/nextcloud-client/nextcloud-client-3.3.4.ebuild b/net-misc/nextcloud-client/nextcloud-client-3.3.4.ebuild |
92 |
new file mode 100644 |
93 |
index 00000000000..79fbb809fed |
94 |
--- /dev/null |
95 |
+++ b/net-misc/nextcloud-client/nextcloud-client-3.3.4.ebuild |
96 |
@@ -0,0 +1,93 @@ |
97 |
+# Copyright 1999-2021 Gentoo Authors |
98 |
+# Distributed under the terms of the GNU General Public License v2 |
99 |
+ |
100 |
+EAPI=7 |
101 |
+ |
102 |
+inherit cmake xdg |
103 |
+ |
104 |
+DESCRIPTION="Desktop Syncing Client for Nextcloud" |
105 |
+HOMEPAGE="https://github.com/nextcloud/desktop" |
106 |
+SRC_URI="https://github.com/nextcloud/desktop/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" |
107 |
+ |
108 |
+LICENSE="CC-BY-3.0 GPL-2" |
109 |
+SLOT="0" |
110 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
111 |
+IUSE="doc dolphin nautilus test webengine" |
112 |
+RESTRICT="!test? ( test )" |
113 |
+ |
114 |
+COMMON_DEPEND=">=dev-db/sqlite-3.34:3 |
115 |
+ >=dev-libs/openssl-1.1.0:0= |
116 |
+ dev-libs/qtkeychain[qt5(+)] |
117 |
+ dev-qt/qtcore:5 |
118 |
+ dev-qt/qtdbus:5 |
119 |
+ dev-qt/qtdeclarative:5 |
120 |
+ dev-qt/qtgui:5 |
121 |
+ dev-qt/qtnetwork:5[ssl] |
122 |
+ dev-qt/qtquickcontrols2:5 |
123 |
+ dev-qt/qtsvg:5 |
124 |
+ dev-qt/qtwebsockets:5 |
125 |
+ dev-qt/qtwidgets:5 |
126 |
+ sys-libs/zlib |
127 |
+ dolphin? ( |
128 |
+ kde-frameworks/kcoreaddons:5 |
129 |
+ kde-frameworks/kio:5 |
130 |
+ ) |
131 |
+ nautilus? ( dev-python/nautilus-python ) |
132 |
+ webengine? ( dev-qt/qtwebengine:5[widgets] )" |
133 |
+ |
134 |
+DEPEND="${COMMON_DEPEND} |
135 |
+ dev-qt/linguist-tools:5 |
136 |
+ dev-qt/qtconcurrent:5 |
137 |
+ dev-qt/qtxml:5 |
138 |
+ gnome-base/librsvg |
139 |
+ doc? ( |
140 |
+ dev-python/sphinx |
141 |
+ dev-tex/latexmk |
142 |
+ dev-texlive/texlive-latexextra |
143 |
+ virtual/latex-base |
144 |
+ ) |
145 |
+ dolphin? ( kde-frameworks/extra-cmake-modules ) |
146 |
+ test? ( |
147 |
+ dev-util/cmocka |
148 |
+ dev-qt/qttest:5 |
149 |
+ )" |
150 |
+ |
151 |
+RDEPEND="${COMMON_DEPEND}" |
152 |
+ |
153 |
+PATCHES=( "${FILESDIR}"/${P}-inkscape_to_rsvg.patch ) |
154 |
+ |
155 |
+S="${WORKDIR}/desktop-${PV/_/-}" |
156 |
+ |
157 |
+src_prepare() { |
158 |
+ # Keep tests in ${T} |
159 |
+ sed -i -e "s#\"/tmp#\"${T}#g" test/test*.cpp || die |
160 |
+ |
161 |
+ cmake_src_prepare |
162 |
+} |
163 |
+ |
164 |
+src_configure() { |
165 |
+ local mycmakeargs=( |
166 |
+ -DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc |
167 |
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
168 |
+ -DBUILD_UPDATER=OFF |
169 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Libcloudproviders=ON |
170 |
+ $(cmake_use_find_package doc Sphinx) |
171 |
+ $(cmake_use_find_package doc PdfLatex) |
172 |
+ $(cmake_use_find_package webengine Qt5WebEngine) |
173 |
+ $(cmake_use_find_package webengine Qt5WebEngineWidgets) |
174 |
+ -DBUILD_SHELL_INTEGRATION_DOLPHIN=$(usex dolphin) |
175 |
+ -DBUILD_SHELL_INTEGRATION_NAUTILUS=$(usex nautilus) |
176 |
+ -DUNIT_TESTING=$(usex test) |
177 |
+ ) |
178 |
+ |
179 |
+ cmake_src_configure |
180 |
+} |
181 |
+ |
182 |
+pkg_postinst() { |
183 |
+ xdg_pkg_postinst |
184 |
+ |
185 |
+ if ! use doc ; then |
186 |
+ elog "Documentation and man pages not installed" |
187 |
+ elog "Enable doc USE-flag to generate them" |
188 |
+ fi |
189 |
+} |