1 |
commit: c2a7c6225f99a625e1fdca8408875de0a40c45b2 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 1 08:33:13 2016 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 08:35:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2a7c622 |
7 |
|
8 |
net-misc/owncloud-client: fix dolphin plugin install, bug #580752 |
9 |
|
10 |
Thank Tobias Kaminsky <tobias <AT> kaminsky.me> for bug reports and testing |
11 |
and kde team for the help |
12 |
|
13 |
Package-Manager: portage-2.3.0_rc1 |
14 |
|
15 |
.../owncloud-client-2.2.0-r1.ebuild | 105 +++++++++++++++++++++ |
16 |
1 file changed, 105 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/owncloud-client/owncloud-client-2.2.0-r1.ebuild b/net-misc/owncloud-client/owncloud-client-2.2.0-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..0efa6e1 |
21 |
--- /dev/null |
22 |
+++ b/net-misc/owncloud-client/owncloud-client-2.2.0-r1.ebuild |
23 |
@@ -0,0 +1,105 @@ |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+inherit cmake-utils |
31 |
+ |
32 |
+DESCRIPTION="Synchronize files from ownCloud Server with your computer" |
33 |
+HOMEPAGE="http://owncloud.org/" |
34 |
+SRC_URI="http://download.owncloud.com/desktop/stable/${P/-}.tar.xz" |
35 |
+ |
36 |
+LICENSE="CC-BY-3.0 GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="doc dolphin nautilus samba +sftp test qt4 +qt5" |
40 |
+ |
41 |
+REQUIRED_USE="^^ ( qt4 qt5 ) |
42 |
+ dolphin? ( qt5 )" |
43 |
+ |
44 |
+RDEPEND=">=dev-db/sqlite-3.4:3 |
45 |
+ sys-fs/inotify-tools |
46 |
+ virtual/libiconv |
47 |
+ dolphin? ( |
48 |
+ >=kde-frameworks/kcoreaddons-5.16:5 |
49 |
+ >=kde-frameworks/kio-5.16:5 ) |
50 |
+ nautilus? ( dev-python/nautilus-python ) |
51 |
+ qt4? ( |
52 |
+ dev-libs/qtkeychain[qt4] |
53 |
+ dev-qt/qtcore:4 |
54 |
+ dev-qt/qtdbus:4 |
55 |
+ dev-qt/qtgui:4 |
56 |
+ dev-qt/qtsql:4 |
57 |
+ dev-qt/qtwebkit:4 |
58 |
+ net-libs/neon[ssl] |
59 |
+ ) |
60 |
+ qt5? ( |
61 |
+ dev-libs/qtkeychain[qt5] |
62 |
+ dev-qt/qtconcurrent:5 |
63 |
+ dev-qt/qtcore:5 |
64 |
+ dev-qt/qtdbus:5 |
65 |
+ >=dev-qt/qtnetwork-5.4:5 |
66 |
+ dev-qt/qtgui:5 |
67 |
+ dev-qt/qtquickcontrols:5 |
68 |
+ dev-qt/qtsql:5 |
69 |
+ dev-qt/qtwebkit:5[printsupport] |
70 |
+ ) |
71 |
+ samba? ( >=net-fs/samba-3.5 ) |
72 |
+ sftp? ( >=net-libs/libssh-0.5 ) |
73 |
+ !net-misc/ocsync" |
74 |
+DEPEND="${RDEPEND} |
75 |
+ doc? ( |
76 |
+ dev-python/sphinx |
77 |
+ dev-texlive/texlive-latexextra |
78 |
+ virtual/latex-base |
79 |
+ ) |
80 |
+ dolphin? ( >=kde-frameworks/extra-cmake-modules-5.22.0 ) |
81 |
+ qt5? ( dev-qt/linguist-tools:5 ) |
82 |
+ test? ( |
83 |
+ dev-util/cmocka |
84 |
+ qt4? ( dev-qt/qttest:4 ) |
85 |
+ qt5? ( dev-qt/qttest:5 ) |
86 |
+ )" |
87 |
+ |
88 |
+S=${WORKDIR}/${P/-} |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ # Keep tests in ${T} |
92 |
+ sed -i -e "s#\"/tmp#\"${T}#g" test/test*.cpp || die "sed failed" |
93 |
+ |
94 |
+ use nautilus || sed -i -e "s/add_subdirectory(nautilus)//" \ |
95 |
+ shell_integration/CMakeLists.txt || die "sed failed" |
96 |
+ |
97 |
+ default |
98 |
+} |
99 |
+ |
100 |
+src_configure() { |
101 |
+ local mycmakeargs=( |
102 |
+ -DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc |
103 |
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
104 |
+ -DWITH_ICONV=ON |
105 |
+ -DWITH_DOC=$(usex doc) |
106 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_KF5=$(usex !dolphin) |
107 |
+ -DBUILD_WITH_QT4=$(usex qt4) |
108 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Libsmbclient=$(usex !samba) |
109 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_LibSSH=$(usex !sftp) |
110 |
+ -DUSE_UNIT_TESTING=$(usex test) |
111 |
+ ) |
112 |
+ |
113 |
+ cmake-utils_src_configure |
114 |
+} |
115 |
+ |
116 |
+src_test() { |
117 |
+ # 1 test needs an existing ${HOME}/.config directory |
118 |
+ mkdir "${T}"/.config |
119 |
+ export HOME="${T}" |
120 |
+ cmake-utils_src_test |
121 |
+} |
122 |
+ |
123 |
+pkg_postinst() { |
124 |
+ if ! use doc ; then |
125 |
+ elog "Documentation and man pages not installed" |
126 |
+ elog "Enable doc USE-flag to generate them" |
127 |
+ fi |
128 |
+} |