1 |
commit: 52119f2eb4ddc5113df09d07274e1919e37ac77a |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 13:31:21 2016 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 13:31:33 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52119f2e |
7 |
|
8 |
net-misc/nextcloud-client: desktop fixes |
9 |
|
10 |
Fix dolphin integration, thanks Felix Tiede in bug #600116 |
11 |
Fix menu icon, bug #601150 |
12 |
|
13 |
Package-Manager: portage-2.3.2 |
14 |
|
15 |
.../files/nextcloud-client-2.2.4-dolphin.patch | 28 ++++++ |
16 |
.../nextcloud-client-2.2.4-r2.ebuild | 109 +++++++++++++++++++++ |
17 |
2 files changed, 137 insertions(+) |
18 |
|
19 |
diff --git a/net-misc/nextcloud-client/files/nextcloud-client-2.2.4-dolphin.patch b/net-misc/nextcloud-client/files/nextcloud-client-2.2.4-dolphin.patch |
20 |
new file mode 100644 |
21 |
index 00000000..eea7fad |
22 |
--- /dev/null |
23 |
+++ b/net-misc/nextcloud-client/files/nextcloud-client-2.2.4-dolphin.patch |
24 |
@@ -0,0 +1,28 @@ |
25 |
+--- a/client/shell_integration/dolphin/CMakeLists.txt |
26 |
++++ b/client/shell_integration/dolphin/CMakeLists.txt |
27 |
+@@ -49,5 +49,6 @@ target_link_libraries(${OWNCLOUDDOLPHINOVERLAYPLUGIN} KF5::CoreAddons KF5::KIOCo |
28 |
+ set(OWNCLOUDDOLPHINACTIONPLUGIN ${APPLICATION_EXECUTABLE}dolphinactionplugin) |
29 |
+ add_library(${OWNCLOUDDOLPHINACTIONPLUGIN} MODULE ownclouddolphinactionplugin.cpp) |
30 |
+ target_link_libraries(${OWNCLOUDDOLPHINACTIONPLUGIN} KF5::CoreAddons KF5::KIOCore KF5::KIOWidgets ${OWNCLOUDDOLPHINHELPER}) |
31 |
+-install(FILES ownclouddolphinactionplugin.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} RENAME ${OWNCLOUDDOLPHINACTIONPLUGIN}.desktop) |
32 |
++configure_file(ownclouddolphinactionplugin.desktop.in ownclouddolphinactionplugin.desktop ESCAPE_QUOTES @ONLY) |
33 |
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ownclouddolphinactionplugin.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} RENAME ${OWNCLOUDDOLPHINACTIONPLUGIN}.desktop) |
34 |
+ install(TARGETS ${OWNCLOUDDOLPHINACTIONPLUGIN} DESTINATION ${KDE_INSTALL_PLUGINDIR}) |
35 |
+--- a/client/shell_integration/dolphin/ownclouddolphinactionplugin.desktop |
36 |
++++ /dev/null |
37 |
+@@ -1,6 +0,0 @@ |
38 |
+-[Desktop Entry] |
39 |
+-Type=Service |
40 |
+-Name=OwncloudAction |
41 |
+-ServiceTypes=KFileItemAction/Plugin |
42 |
+-MimeType=application/octet-stream;inode/directory; |
43 |
+-X-KDE-Library=ownclouddolphinactionplugin |
44 |
+--- /dev/null |
45 |
++++ b/client/shell_integration/dolphin/ownclouddolphinactionplugin.desktop.in |
46 |
+@@ -0,0 +1,6 @@ |
47 |
++[Desktop Entry] |
48 |
++Type=Service |
49 |
++Name=@APPLICATION_NAME@Action |
50 |
++ServiceTypes=KFileItemAction/Plugin |
51 |
++MimeType=application/octet-stream;inode/directory; |
52 |
++X-KDE-Library=@APPLICATION_EXECUTABLE@dolphinactionplugin |
53 |
|
54 |
diff --git a/net-misc/nextcloud-client/nextcloud-client-2.2.4-r2.ebuild b/net-misc/nextcloud-client/nextcloud-client-2.2.4-r2.ebuild |
55 |
new file mode 100644 |
56 |
index 00000000..1357f90 |
57 |
--- /dev/null |
58 |
+++ b/net-misc/nextcloud-client/nextcloud-client-2.2.4-r2.ebuild |
59 |
@@ -0,0 +1,109 @@ |
60 |
+# Copyright 1999-2016 Gentoo Foundation |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+# $Id$ |
63 |
+ |
64 |
+EAPI=6 |
65 |
+ |
66 |
+inherit cmake-utils |
67 |
+ |
68 |
+DESCRIPTION="Nextcloud themed desktop client" |
69 |
+HOMEPAGE="https://github.com/nextcloud/client_theming" |
70 |
+SRC_URI="http://download.owncloud.com/desktop/stable/owncloudclient-${PV}.tar.xz |
71 |
+ https://github.com/nextcloud/client_theming/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="CC-BY-3.0 GPL-2" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64 ~x86" |
76 |
+IUSE="doc dolphin nautilus samba +sftp test" |
77 |
+ |
78 |
+COMMON_DEPEND=">=dev-db/sqlite-3.4:3 |
79 |
+ dev-libs/qtkeychain[qt5] |
80 |
+ dev-qt/qtconcurrent:5 |
81 |
+ dev-qt/qtcore:5 |
82 |
+ dev-qt/qtdbus:5 |
83 |
+ dev-qt/qtgui:5 |
84 |
+ dev-qt/qtnetwork:5 |
85 |
+ dev-qt/qtquickcontrols:5 |
86 |
+ dev-qt/qtsql:5 |
87 |
+ dev-qt/qtwebkit:5[printsupport] |
88 |
+ sys-fs/inotify-tools |
89 |
+ virtual/libiconv |
90 |
+ dolphin? ( |
91 |
+ kde-frameworks/kcoreaddons:5 |
92 |
+ kde-frameworks/kio:5 |
93 |
+ ) |
94 |
+ nautilus? ( dev-python/nautilus-python ) |
95 |
+ samba? ( >=net-fs/samba-3.5 ) |
96 |
+ sftp? ( >=net-libs/libssh-0.5 ) |
97 |
+" |
98 |
+RDEPEND="${COMMON_DEPEND} |
99 |
+ !net-misc/ocsync |
100 |
+ !net-misc/owncloud-client |
101 |
+" |
102 |
+DEPEND="${COMMON_DEPEND} |
103 |
+ dev-qt/linguist-tools:5 |
104 |
+ doc? ( |
105 |
+ dev-python/sphinx |
106 |
+ dev-texlive/texlive-latexextra |
107 |
+ virtual/latex-base |
108 |
+ ) |
109 |
+ dolphin? ( kde-frameworks/extra-cmake-modules ) |
110 |
+ test? ( |
111 |
+ dev-util/cmocka |
112 |
+ dev-qt/qttest:5 |
113 |
+ ) |
114 |
+" |
115 |
+ |
116 |
+S=${WORKDIR}/client_theming-${PV} |
117 |
+ |
118 |
+PATCHES=( |
119 |
+ "${FILESDIR}"/${P}-dolphin.patch |
120 |
+) |
121 |
+src_unpack() { |
122 |
+ default |
123 |
+ |
124 |
+ rmdir "${S}"/client || die |
125 |
+ mv "${WORKDIR}"/owncloudclient-${PV} "${S}"/client \ |
126 |
+ || die |
127 |
+} |
128 |
+ |
129 |
+src_prepare() { |
130 |
+ CMAKE_USE_DIR="${S}"/client |
131 |
+ # Keep tests in ${T} |
132 |
+ sed -i -e "s#\"/tmp#\"${T}#g" client/test/test*.cpp || die |
133 |
+ # Fix icon name |
134 |
+ sed -e "/^Icon.*=/s/@APPLICATION_EXECUTABLE@/Nextcloud/" \ |
135 |
+ -i client/mirall.desktop.in || die |
136 |
+ |
137 |
+ if ! use nautilus; then |
138 |
+ pushd client/shell_integration > /dev/null || die |
139 |
+ cmake_comment_add_subdirectory nautilus |
140 |
+ popd > /dev/null || die |
141 |
+ fi |
142 |
+ |
143 |
+ default |
144 |
+} |
145 |
+ |
146 |
+src_configure() { |
147 |
+ local mycmakeargs=( |
148 |
+ -DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc |
149 |
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
150 |
+ -DWITH_ICONV=ON |
151 |
+ -DWITH_DOC=$(usex doc) |
152 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_KF5=$(usex !dolphin) |
153 |
+ -DBUILD_WITH_QT4=OFF |
154 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Libsmbclient=$(usex !samba) |
155 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_LibSSH=$(usex !sftp) |
156 |
+ -DUNIT_TESTING=$(usex test) |
157 |
+ -DOEM_THEME_DIR="${S}"/nextcloudtheme |
158 |
+ ) |
159 |
+ |
160 |
+ cmake-utils_src_configure |
161 |
+} |
162 |
+ |
163 |
+pkg_postinst() { |
164 |
+ if ! use doc ; then |
165 |
+ elog "Documentation and man pages not installed" |
166 |
+ elog "Enable doc USE-flag to generate them" |
167 |
+ fi |
168 |
+} |