Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/nextcloud-client/
Date: Fri, 19 May 2017 17:04:46
Message-Id: 1495213476.094ae32dac2ad207401b30d4c215c0832dfbcfd9.voyageur@gentoo
1 commit: 094ae32dac2ad207401b30d4c215c0832dfbcfd9
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 19 17:02:23 2017 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Fri May 19 17:04:36 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=094ae32d
7
8 net-misc/nextcloud-client: add shibboleth USE-flag, bug #617416
9
10 This makes qtwebkit an optional dependency
11 Thanks to Rasmus Thomsen <Rasmus.thomsen <AT> live.de> for the report
12
13 Package-Manager: Portage-2.3.5, Repoman-2.3.2
14
15 net-misc/nextcloud-client/metadata.xml | 1 +
16 .../nextcloud-client-2.3.1-r1.ebuild | 105 +++++++++++++++++++++
17 2 files changed, 106 insertions(+)
18
19 diff --git a/net-misc/nextcloud-client/metadata.xml b/net-misc/nextcloud-client/metadata.xml
20 index 7dbf4d43236..51270e9f5ec 100644
21 --- a/net-misc/nextcloud-client/metadata.xml
22 +++ b/net-misc/nextcloud-client/metadata.xml
23 @@ -8,6 +8,7 @@
24 <use>
25 <flag name="dolphin">Install the <pkg>kde-apps/dolphin</pkg> extension</flag>
26 <flag name="nautilus">Install the <pkg>gnome-base/nautilus</pkg> extension</flag>
27 + <flag name="shibboleth">Build support for Shibboleth single sign-on</flag>
28 <flag name="sftp">Enable sftp transfer support via <pkg>net-libs/libssh</pkg></flag>
29 </use>
30 <upstream>
31
32 diff --git a/net-misc/nextcloud-client/nextcloud-client-2.3.1-r1.ebuild b/net-misc/nextcloud-client/nextcloud-client-2.3.1-r1.ebuild
33 new file mode 100644
34 index 00000000000..4d0efa2f2f4
35 --- /dev/null
36 +++ b/net-misc/nextcloud-client/nextcloud-client-2.3.1-r1.ebuild
37 @@ -0,0 +1,105 @@
38 +# Copyright 1999-2017 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=6
42 +
43 +inherit cmake-utils
44 +
45 +DESCRIPTION="Nextcloud themed desktop client"
46 +HOMEPAGE="https://github.com/nextcloud/client_theming"
47 +SRC_URI="http://download.owncloud.com/desktop/stable/owncloudclient-${PV}.tar.xz
48 + https://github.com/nextcloud/client_theming/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 +
50 +LICENSE="CC-BY-3.0 GPL-2"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE="doc dolphin nautilus samba +sftp shibboleth test"
54 +
55 +COMMON_DEPEND=">=dev-db/sqlite-3.4:3
56 + dev-libs/qtkeychain[qt5]
57 + dev-qt/qtconcurrent:5
58 + dev-qt/qtcore:5
59 + dev-qt/qtdbus:5
60 + dev-qt/qtgui:5
61 + dev-qt/qtnetwork:5
62 + dev-qt/qtsql:5
63 + sys-fs/inotify-tools
64 + virtual/libiconv
65 + dolphin? (
66 + kde-frameworks/kcoreaddons:5
67 + kde-frameworks/kio:5
68 + )
69 + nautilus? ( dev-python/nautilus-python )
70 + samba? ( >=net-fs/samba-3.5 )
71 + sftp? ( >=net-libs/libssh-0.5 )
72 + shibboleth? ( dev-qt/qtwebkit:5 )
73 +"
74 +RDEPEND="${COMMON_DEPEND}
75 + !net-misc/ocsync
76 + !net-misc/owncloud-client
77 +"
78 +DEPEND="${COMMON_DEPEND}
79 + dev-qt/linguist-tools:5
80 + doc? (
81 + dev-python/sphinx
82 + dev-texlive/texlive-latexextra
83 + virtual/latex-base
84 + )
85 + dolphin? ( kde-frameworks/extra-cmake-modules )
86 + test? (
87 + dev-util/cmocka
88 + dev-qt/qttest:5
89 + )
90 +"
91 +
92 +S=${WORKDIR}/client_theming-${PV}
93 +
94 +src_unpack() {
95 + default
96 +
97 + rmdir "${S}"/client || die
98 + mv "${WORKDIR}"/owncloudclient-${PV} "${S}"/client \
99 + || die
100 +}
101 +
102 +src_prepare() {
103 + CMAKE_USE_DIR="${S}"/client
104 + # Keep tests in ${T}
105 + sed -i -e "s#\"/tmp#\"${T}#g" client/test/test*.cpp || die
106 + # Fix icon name
107 + sed -e "/^Icon.*=/s/@APPLICATION_EXECUTABLE@/Nextcloud/" \
108 + -i client/mirall.desktop.in || die
109 +
110 + if ! use nautilus; then
111 + pushd client/shell_integration > /dev/null || die
112 + cmake_comment_add_subdirectory nautilus
113 + popd > /dev/null || die
114 + fi
115 +
116 + default
117 +}
118 +
119 +src_configure() {
120 + local mycmakeargs=(
121 + -DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc
122 + -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
123 + -DWITH_ICONV=ON
124 + -DWITH_DOC=$(usex doc)
125 + -DCMAKE_DISABLE_FIND_PACKAGE_KF5=$(usex !dolphin)
126 + -DBUILD_WITH_QT4=OFF
127 + -DCMAKE_DISABLE_FIND_PACKAGE_Libsmbclient=$(usex !samba)
128 + -DCMAKE_DISABLE_FIND_PACKAGE_LibSSH=$(usex !sftp)
129 + -DNO_SHIBBOLETH=$(usex !shibboleth)
130 + -DUNIT_TESTING=$(usex test)
131 + -DOEM_THEME_DIR="${S}"/nextcloudtheme
132 + )
133 +
134 + cmake-utils_src_configure
135 +}
136 +
137 +pkg_postinst() {
138 + if ! use doc ; then
139 + elog "Documentation and man pages not installed"
140 + elog "Enable doc USE-flag to generate them"
141 + fi
142 +}