Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/owncloud-client/
Date: Wed, 26 Oct 2016 21:14:37
Message-Id: 1477516430.71ce2735e5823c0f59653480a0c0a5f6fca60b4b.monsieurp@gentoo
1 commit: 71ce2735e5823c0f59653480a0c0a5f6fca60b4b
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sat Oct 22 20:03:15 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 26 21:13:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71ce2735
7
8 net-misc/owncloud-client: drop USE=qt4.
9
10 Drop unnecessary REQUIRED_USE, simplify ebuild.
11
12 Package-Manager: portage-2.3.0
13 Acked-By: David Seifert <soap <AT> gentoo.org>
14 Closes: https://github.com/gentoo/gentoo/pull/2638
15
16 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
17
18 .../owncloud-client-2.2.4-r1.ebuild | 91 ++++++++++++++++++++++
19 1 file changed, 91 insertions(+)
20
21 diff --git a/net-misc/owncloud-client/owncloud-client-2.2.4-r1.ebuild b/net-misc/owncloud-client/owncloud-client-2.2.4-r1.ebuild
22 new file mode 100644
23 index 00000000..13fa7f6
24 --- /dev/null
25 +++ b/net-misc/owncloud-client/owncloud-client-2.2.4-r1.ebuild
26 @@ -0,0 +1,91 @@
27 +# Copyright 1999-2016 Gentoo Foundation
28 +# Distributed under the terms of the GNU General Public License v2
29 +# $Id$
30 +
31 +EAPI=6
32 +
33 +inherit cmake-utils
34 +
35 +DESCRIPTION="Synchronize files from ownCloud Server with your computer"
36 +HOMEPAGE="http://owncloud.org/"
37 +SRC_URI="http://download.owncloud.com/desktop/stable/${P/-}.tar.xz"
38 +
39 +LICENSE="CC-BY-3.0 GPL-2"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="doc dolphin nautilus samba +sftp test"
43 +
44 +COMMON_DEPEND=">=dev-db/sqlite-3.4:3
45 + dev-libs/qtkeychain[qt5]
46 + dev-qt/qtconcurrent:5
47 + dev-qt/qtcore:5
48 + dev-qt/qtdbus:5
49 + dev-qt/qtgui:5
50 + dev-qt/qtnetwork:5
51 + dev-qt/qtquickcontrols:5
52 + dev-qt/qtsql:5
53 + dev-qt/qtwebkit:5[printsupport]
54 + sys-fs/inotify-tools
55 + virtual/libiconv
56 + dolphin? (
57 + kde-frameworks/kcoreaddons:5
58 + kde-frameworks/kio:5
59 + )
60 + nautilus? ( dev-python/nautilus-python )
61 + samba? ( >=net-fs/samba-3.5 )
62 + sftp? ( >=net-libs/libssh-0.5 )
63 +"
64 +RDEPEND="${COMMON_DEPEND}
65 + !net-misc/ocsync
66 + !net-misc/nextcloud-client
67 +"
68 +DEPEND="${COMMON_DEPEND}
69 + dev-qt/linguist-tools:5
70 + doc? (
71 + dev-python/sphinx
72 + dev-texlive/texlive-latexextra
73 + virtual/latex-base
74 + )
75 + dolphin? ( kde-frameworks/extra-cmake-modules )
76 + test? (
77 + dev-util/cmocka
78 + dev-qt/qttest:5
79 + )
80 +"
81 +
82 +S=${WORKDIR}/${P/-}
83 +
84 +src_prepare() {
85 + # Keep tests in ${T}
86 + sed -i -e "s#\"/tmp#\"${T}#g" test/test*.cpp || die "sed failed"
87 +
88 + if ! use nautilus; then
89 + pushd shell_integration > /dev/null || die
90 + cmake_comment_add_subdirectory nautilus
91 + popd > /dev/null || die
92 + fi
93 + default
94 +}
95 +
96 +src_configure() {
97 + local mycmakeargs=(
98 + -DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc
99 + -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
100 + -DWITH_ICONV=ON
101 + -DWITH_DOC=$(usex doc)
102 + -DCMAKE_DISABLE_FIND_PACKAGE_KF5=$(usex !dolphin)
103 + -DBUILD_WITH_QT4=OFF
104 + -DCMAKE_DISABLE_FIND_PACKAGE_Libsmbclient=$(usex !samba)
105 + -DCMAKE_DISABLE_FIND_PACKAGE_LibSSH=$(usex !sftp)
106 + -DUNIT_TESTING=$(usex test)
107 + )
108 +
109 + cmake-utils_src_configure
110 +}
111 +
112 +pkg_postinst() {
113 + if ! use doc ; then
114 + elog "Documentation and man pages not installed"
115 + elog "Enable doc USE-flag to generate them"
116 + fi
117 +}