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/owncloud-client/, net-misc/owncloud-client/files/
Date: Wed, 01 Feb 2023 18:10:38
Message-Id: 1675275031.87019ef29c52e9de8029d0f2d58345c68bce52ee.voyageur@gentoo
1 commit: 87019ef29c52e9de8029d0f2d58345c68bce52ee
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 1 18:08:57 2023 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 18:10:31 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87019ef2
7
8 net-misc/owncloud-client: do not git fetch extra files in cmake
9
10 Closes: https://bugs.gentoo.org/892798
11 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
12
13 net-misc/owncloud-client/Manifest | 1 +
14 .../owncloud-client-3.1.0.9872-no_cmake_fetch.patch | 17 +++++++++++++++++
15 .../owncloud-client/owncloud-client-3.1.0.9872.ebuild | 10 +++++++++-
16 3 files changed, 27 insertions(+), 1 deletion(-)
17
18 diff --git a/net-misc/owncloud-client/Manifest b/net-misc/owncloud-client/Manifest
19 index 719551d3da8f..625b31b00f80 100644
20 --- a/net-misc/owncloud-client/Manifest
21 +++ b/net-misc/owncloud-client/Manifest
22 @@ -1,2 +1,3 @@
23 +DIST libregraphapi-1.0.1.tar.gz 105266 BLAKE2B b5122ca5bb757c58bba0f29eaf119685c0ed119a9a72951f4098d8180e5bf05332b36fa6c884ca29b0414051c9c6d6ca081e3c7eeb7b9810202f11c1a70c5190 SHA512 aaa710642c36b4038dc61e7df4fc904a82a2ab6c34da03c3f5328075e41ab319f6616866b7f9ae472ff256b421751f8f5ce7ce0a6d3451bda75cfa3b307df082
24 DIST ownCloud-2.11.1.8946.tar.xz 5654496 BLAKE2B 6b5b82730460071ae590b35d653824f4e56d506d87929c5d4ebb31eef921d0cb0141a44d7f0c996b8d1afffa5874d3e4dda75feaba740e652df2939633475fcd SHA512 b44f72e22c539a731901d9c146f00edbf0a4dabb992d6cde06be1b50506d5bc4a8aa861c6ea0207eed72aaea8c8af8651ce07f9e9154e6e44ccdecdd27e35b75
25 DIST ownCloud-3.1.0.9872.tar.xz 5682584 BLAKE2B 174ffd7d441883f61817a6ab63decdd0238b9eb05d4e9cf0d5d18e69e6d2b08ad7836f7396383888f6f7d2f0d1be740c58413cd876780dba12446c6918921a47 SHA512 ca64af7c6ece1f26778a58088fcceaa68cddf1856ad7f1f5f24ee85691c813aed58339690ded1d0c535c131b2cf0343a03fe53289914bf36fa5ad4034f223b3e
26
27 diff --git a/net-misc/owncloud-client/files/owncloud-client-3.1.0.9872-no_cmake_fetch.patch b/net-misc/owncloud-client/files/owncloud-client-3.1.0.9872-no_cmake_fetch.patch
28 new file mode 100644
29 index 000000000000..d9762292e881
30 --- /dev/null
31 +++ b/net-misc/owncloud-client/files/owncloud-client-3.1.0.9872-no_cmake_fetch.patch
32 @@ -0,0 +1,17 @@
33 +Index: ownCloud-3.1.0.9872/src/libsync/CMakeLists.txt
34 +--- ownCloud-3.1.0.9872/src/libsync/CMakeLists.txt.orig
35 ++++ ownCloud-3.1.0.9872/src/libsync/CMakeLists.txt
36 +@@ -3,12 +3,7 @@ set(LibreGraphAPIVersion v0.13.2)
37 + find_package(LibreGraphAPI QUIET)
38 + if (NOT TARGET OpenAPI::LibreGraphAPI)
39 + message(WARNING "Failed to find system OpenAPI::LibreGraphAPI: fetching ${LibreGraphAPIVersion}")
40 +- include(FetchContent)
41 +- FetchContent_Populate(LibreGraphAPISrc
42 +- QUIET
43 +- GIT_REPOSITORY https://github.com/owncloud/libre-graph-api-cpp-qt-client.git
44 +- GIT_TAG ${LibreGraphAPIVersion})
45 +- add_subdirectory(${libregraphapisrc_SOURCE_DIR}/client ${libregraphapisrc_BINARY_DIR}/client EXCLUDE_FROM_ALL)
46 ++ add_subdirectory(libregraphapisrc-src/client libregraphapisrc-src/client EXCLUDE_FROM_ALL)
47 + endif()
48 +
49 + set(libsync_SRCS
50
51 diff --git a/net-misc/owncloud-client/owncloud-client-3.1.0.9872.ebuild b/net-misc/owncloud-client/owncloud-client-3.1.0.9872.ebuild
52 index 1eed40954de2..76e9098aa16a 100644
53 --- a/net-misc/owncloud-client/owncloud-client-3.1.0.9872.ebuild
54 +++ b/net-misc/owncloud-client/owncloud-client-3.1.0.9872.ebuild
55 @@ -6,9 +6,12 @@ EAPI=8
56 inherit cmake xdg
57
58 MY_PN="ownCloud"
59 +REGRAPHAPI_PV="1.0.1"
60 DESCRIPTION="Synchronize files from ownCloud Server with your computer"
61 HOMEPAGE="https://owncloud.org/"
62 -SRC_URI="https://download.owncloud.com/desktop/${MY_PN}/stable/${PV}/source/${MY_PN}-${PV}.tar.xz"
63 +SRC_URI="https://download.owncloud.com/desktop/${MY_PN}/stable/${PV}/source/${MY_PN}-${PV}.tar.xz
64 + https://github.com/owncloud/libre-graph-api-cpp-qt-client/archive/refs/tags/v${REGRAPHAPI_PV}.tar.gz
65 + -> libregraphapi-${REGRAPHAPI_PV}.tar.gz"
66 S=${WORKDIR}/${MY_PN}-${PV}
67
68 LICENSE="CC-BY-3.0 GPL-2"
69 @@ -44,7 +47,12 @@ BDEPEND="
70 dev-qt/linguist-tools:5
71 kde-frameworks/extra-cmake-modules"
72
73 +PATCHES=( "${FILESDIR}"/${PN}-3.1.0.9872-no_cmake_fetch.patch )
74 +
75 src_prepare() {
76 + mv ../libre-graph-api-cpp-qt-client-${REGRAPHAPI_PV} \
77 + src/libsync/libregraphapisrc-src || die
78 +
79 # Keep tests in ${T}
80 sed -i -e "s#\"/tmp#\"${T}#g" test/test*.cpp || die