commit:     bdfbe3db7acb2d2058849c821f503659b5de94fd
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  8 20:49:08 2022 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Mon Aug  8 20:49:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdfbe3db

net-misc/nextcloud-client: add 3.5.4

Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 net-misc/nextcloud-client/Manifest                 |   1 +
 .../nextcloud-client/nextcloud-client-3.5.4.ebuild | 105 +++++++++++++++++++++
 2 files changed, 106 insertions(+)

diff --git a/net-misc/nextcloud-client/Manifest 
b/net-misc/nextcloud-client/Manifest
index 5248b960bb0b..0113696053a1 100644
--- a/net-misc/nextcloud-client/Manifest
+++ b/net-misc/nextcloud-client/Manifest
@@ -1 +1,2 @@
 DIST nextcloud-client-3.5.2.tar.gz 15433543 BLAKE2B 
082031ac34a644f0db09679ef34237ee8fc9def88ff4659ad4a71e3ac611b3be3f9a0750deda25cd0ef34aca7e9d3c60fe7d3fc5a4d747eef46978e2fe84b742
 SHA512 
2892c277466869e3872a68049541c3d5afe94ca4dde1e97ea13ac615adedba198946763b5ff5dcb4694a9cec1946e35d1d6b6fd950d26b23cd6ddd94181f4b83
+DIST nextcloud-client-3.5.4.tar.gz 15436558 BLAKE2B 
e95aac753e4fcc70093ba497022572d4ee2988ed943e09247a0ddec3b039d658e3f1f498c24f5b5a92c15bd50b14c7e5c71f420c35e8de4894c2f65d06563766
 SHA512 
7b8afe19acad7f7ca96184b0f925e0eb324605a11bc468ef5662e5a879cada16483b9185e12336471ca2a9debf2e00671d8245bdbae2f7be01af756b57225bae

diff --git a/net-misc/nextcloud-client/nextcloud-client-3.5.4.ebuild 
b/net-misc/nextcloud-client/nextcloud-client-3.5.4.ebuild
new file mode 100644
index 000000000000..5599ebda4bf3
--- /dev/null
+++ b/net-misc/nextcloud-client/nextcloud-client-3.5.4.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake virtualx xdg
+
+DESCRIPTION="Desktop Syncing Client for Nextcloud"
+HOMEPAGE="https://github.com/nextcloud/desktop";
+SRC_URI="https://github.com/nextcloud/desktop/archive/v${PV/_/-}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/desktop-${PV/_/-}"
+
+LICENSE="CC-BY-3.0 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="doc dolphin nautilus test webengine"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=dev-db/sqlite-3.34:3
+       >=dev-libs/openssl-1.1.0:0=
+       dev-libs/qtkeychain:=[qt5(+)]
+       dev-qt/qtcore:5
+       dev-qt/qtdbus:5
+       dev-qt/qtdeclarative:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5[ssl]
+       dev-qt/qtquickcontrols2:5
+       dev-qt/qtsvg:5
+       dev-qt/qtwebsockets:5
+       dev-qt/qtwidgets:5
+       sys-libs/zlib
+       dolphin? (
+               kde-frameworks/kcoreaddons:5
+               kde-frameworks/kio:5
+       )
+       nautilus? ( dev-python/nautilus-python )
+       webengine? ( dev-qt/qtwebengine:5[widgets] )
+"
+DEPEND="${RDEPEND}
+       dev-qt/qtconcurrent:5
+       dev-qt/qtxml:5
+       || ( gnome-base/librsvg media-gfx/inkscape )
+       doc? (
+               dev-python/sphinx
+               dev-tex/latexmk
+               dev-texlive/texlive-latexextra
+               virtual/latex-base
+       )
+       test? (
+               dev-qt/qttest:5
+               dev-util/cmocka
+       )
+"
+BDEPEND="
+       dev-qt/linguist-tools:5
+       dolphin? ( kde-frameworks/extra-cmake-modules )
+"
+
+src_prepare() {
+       # We do not package libcloudproviders
+       sed -e "s/pkg_check_modules.*cloudproviders/#&/" -i CMakeLists.txt || 
die
+
+       # Keep tests in ${T}
+       sed -i -e "s#\"/tmp#\"${T}#g" test/test*.cpp || die
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
+               -DBUILD_UPDATER=OFF
+               $(cmake_use_find_package doc Sphinx)
+               $(cmake_use_find_package doc PdfLatex)
+               $(cmake_use_find_package webengine Qt5WebEngine)
+               $(cmake_use_find_package webengine Qt5WebEngineWidgets)
+               -DBUILD_SHELL_INTEGRATION_DOLPHIN=$(usex dolphin)
+               -DBUILD_SHELL_INTEGRATION_NAUTILUS=$(usex nautilus)
+               -DBUILD_TESTING=$(usex test)
+       )
+
+       cmake_src_configure
+}
+
+src_test() {
+       virtx cmake_src_test
+}
+
+src_compile() {
+       local compile_targets=(all)
+       if use doc; then
+               compile_targets+=(doc doc-man)
+       fi
+       cmake_src_compile ${compile_targets[@]}
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if ! use doc ; then
+               elog "Documentation and man pages not installed"
+               elog "Enable doc USE-flag to generate them"
+       fi
+}

Reply via email to