1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils xdg
8 DESCRIPTION="Synchronize files from ownCloud Server with your computer"
9 HOMEPAGE="https://owncloud.org/"
10 SRC_URI="https://download.owncloud.com/desktop/stable/${P/-}.tar.xz"
12 LICENSE="CC-BY-3.0 GPL-2"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="doc dolphin gnome-keyring nautilus test"
17 COMMON_DEPEND=">=dev-db/sqlite-3.4:3
18 dev-libs/qtkeychain[qt5(+)]
23 dev-qt/qtnetwork:5[ssl]
29 kde-frameworks/kcoreaddons:5
32 nautilus? ( dev-python/nautilus-python )"
34 RDEPEND="${COMMON_DEPEND}
35 gnome-keyring? ( gnome-base/gnome-keyring )"
36 DEPEND="${COMMON_DEPEND}
37 dev-qt/linguist-tools:5
41 dev-texlive/texlive-latexextra
44 dolphin? ( kde-frameworks/extra-cmake-modules )
50 RESTRICT="!test? ( test )"
56 sed -i -e "s#\"/tmp#\"${T}#g" test/test*.cpp || die
58 if ! use nautilus; then
59 pushd shell_integration > /dev/null || die
60 cmake_comment_add_subdirectory nautilus
61 popd > /dev/null || die
63 cmake-utils_src_prepare
68 -DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc
69 -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
70 -DCMAKE_DISABLE_FIND_PACKAGE_Sphinx=$(usex !doc)
71 -DCMAKE_DISABLE_FIND_PACKAGE_KF5=$(usex !dolphin)
72 -DBUILD_TESTING=$(usex test)
75 cmake-utils_src_configure
80 elog "Documentation and man pages not installed"
81 elog "Enable doc USE-flag to generate them"