commit:     1382a96c067045e9f4c4c01c74cd32a51d514415
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Fri Aug  4 18:34:57 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Aug 16 11:20:14 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=1382a96c

net-misc/cernbox-client: add 4.1.0.11250

Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../cernbox-client-4.1.0.11250.ebuild              | 92 ++++++++++++++++++++++
 .../owncloud-client-4.1.0.11250-fix-mirall.patch   | 73 +++++++++++++++++
 2 files changed, 165 insertions(+)

diff --git a/net-misc/cernbox-client/cernbox-client-4.1.0.11250.ebuild 
b/net-misc/cernbox-client/cernbox-client-4.1.0.11250.ebuild
new file mode 100644
index 000000000..741aa66f1
--- /dev/null
+++ b/net-misc/cernbox-client/cernbox-client-4.1.0.11250.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake rpm xdg
+
+DESCRIPTION="Synchronize files from CERNBox EOS with your computer"
+
+# Origin is classic owncloud-client, branded for CERN during compilation.
+ORIGIN_PN="ownCloud"
+BRANDED_P="cernbox"
+BRANDED_PV="4.1.0"
+BRANDED_REL="11373"
+REGRAPHAPI_PV="1.0.1"
+HOMEPAGE="https://cernbox.cern.ch/";
+SRC_URI="https://download.owncloud.com/desktop/${ORIGIN_PN}/stable/${PV}/source/${ORIGIN_PN}-${PV}.tar.xz
+       
https://cernboxdistr.web.cern.ch/cernboxdistr/Linux/repo.future/Fedora_38/src/${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm
+       
https://cern.ch/ofreyerm/gentoo/cernbox/${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm
+       
https://github.com/owncloud/libre-graph-api-cpp-qt-client/archive/refs/tags/v${REGRAPHAPI_PV}.tar.gz
+               -> libregraphapi-${REGRAPHAPI_PV}.tar.gz"
+
+LICENSE="CC-BY-3.0 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dolphin keyring nautilus test"
+RESTRICT="!test? ( test )"
+
+RDEPEND=">=dev-db/sqlite-3.4:3
+       dev-libs/qtkeychain[keyring?,qt5(+)]
+       dev-qt/qtconcurrent:5
+       dev-qt/qtcore:5
+       dev-qt/qtdbus:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5[ssl]
+       dev-qt/qtsql:5
+       dev-qt/qtwidgets:5
+       dev-qt/qtxml:5
+       sys-fs/inotify-tools
+       dolphin? (
+               kde-frameworks/kcoreaddons:5
+               kde-frameworks/kio:5
+       )
+       nautilus? ( dev-python/nautilus-python )"
+
+DEPEND="${RDEPEND}
+       test? (
+               dev-util/cmocka
+               dev-qt/qttest:5
+       )"
+
+BDEPEND="
+       dev-qt/linguist-tools:5
+       kde-frameworks/extra-cmake-modules"
+
+S=${WORKDIR}/${ORIGIN_PN}-${PV}
+
+src_unpack() {
+       rpm_src_unpack ${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm || die 
"failed to extract branding RPM"
+       mv ${PN%-*}-${BRANDED_PV}.${BRANDED_REL}/branding "${S}" || die "failed 
to extract branding"
+}
+
+PATCHES=(
+       "${FILESDIR}"/owncloud-client-3.1.0.9872-no_cmake_fetch.patch
+       "${FILESDIR}"/owncloud-client-3.2.0.10193-no_fortify_override.patch
+       "${FILESDIR}"/owncloud-client-4.1.0.11250-fix-mirall.patch
+)
+
+src_prepare() {
+       mv ../libre-graph-api-cpp-qt-client-${REGRAPHAPI_PV} \
+               src/libsync/libregraphapisrc-src || die
+
+       # Keep tests in ${T}
+       sed -i -e "s#\"/tmp#\"${T}#g" test/test*.cpp || die
+
+       if ! use nautilus; then
+               pushd shell_integration > /dev/null || die
+               cmake_comment_add_subdirectory nautilus
+               popd > /dev/null || die
+       fi
+       cmake_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
+               -DBUILD_SHELL_INTEGRATION_DOLPHIN=$(usex dolphin)
+               -DBUILD_TESTING=$(usex test)
+       )
+
+       cmake_src_configure
+}

diff --git 
a/net-misc/cernbox-client/files/owncloud-client-4.1.0.11250-fix-mirall.patch 
b/net-misc/cernbox-client/files/owncloud-client-4.1.0.11250-fix-mirall.patch
new file mode 100644
index 000000000..5e00e23aa
--- /dev/null
+++ b/net-misc/cernbox-client/files/owncloud-client-4.1.0.11250-fix-mirall.patch
@@ -0,0 +1,73 @@
+From: Fabian Müller <fmuel...@owncloud.com>
+Bug: https://github.com/owncloud/client/pull/10969
+
+Fix installation of branded client in parallel to unbranded client.
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 4d73f2cc3..49228dbb6 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -54,10 +54,12 @@ endif(NOT BUILD_LIBRARIES_ONLY)
+ 
+ add_subdirectory(plugins)
+ 
+-install(EXPORT ownCloudConfig DESTINATION 
"${KDE_INSTALL_CMAKEPACKAGEDIR}/ownCloud"  NAMESPACE ownCloud::)
++install(EXPORT ${APPLICATION_SHORTNAME}Config DESTINATION 
"${KDE_INSTALL_CMAKEPACKAGEDIR}/${APPLICATION_SHORTNAME}" NAMESPACE ownCloud::)
+ 
+-ecm_setup_version(PROJECT VARIABLE_PREFIX ownCloud
+-                        PACKAGE_VERSION_FILE 
"${CMAKE_CURRENT_BINARY_DIR}/ownCloudConfigVersion.cmake"
+-                        SOVERSION ${MIRALL_SOVERSION})
++ecm_setup_version(PROJECT
++    VARIABLE_PREFIX ${APPLICATION_SHORTNAME}
++    PACKAGE_VERSION_FILE 
"${CMAKE_CURRENT_BINARY_DIR}/${APPLICATION_SHORTNAME}ConfigVersion.cmake"
++    SOVERSION ${MIRALL_SOVERSION}
++)
+ 
+-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ownCloudConfigVersion.cmake" 
DESTINATION "${KDE_INSTALL_CMAKEPACKAGEDIR}/ownCloud")
++install(FILES 
"${CMAKE_CURRENT_BINARY_DIR}/${APPLICATION_SHORTNAME}ConfigVersion.cmake" 
DESTINATION "${KDE_INSTALL_CMAKEPACKAGEDIR}/${APPLICATION_SHORTNAME}")
+diff --git a/src/csync/CMakeLists.txt b/src/csync/CMakeLists.txt
+index fcf665e44..15c0a8130 100644
+--- a/src/csync/CMakeLists.txt
++++ b/src/csync/CMakeLists.txt
+@@ -98,10 +98,10 @@ INSTALL(
+         ../common/filesystembase.h
+         ../common/utility.h
+     DESTINATION
+-        ${INCLUDE_INSTALL_DIR}/ownCloud/common
++        ${INCLUDE_INSTALL_DIR}/${APPLICATION_SHORTNAME}/common
+ )
+ 
+-INSTALL(TARGETS csync EXPORT ownCloudConfig 
${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
++INSTALL(TARGETS csync EXPORT ${APPLICATION_SHORTNAME}Config 
${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
+ 
+ configure_file(config_csync.h.cmake 
${CMAKE_CURRENT_BINARY_DIR}/config_csync.h)
+ 
+diff --git a/src/libsync/CMakeLists.txt b/src/libsync/CMakeLists.txt
+index 3995bcfe9..eeaef8450 100644
+--- a/src/libsync/CMakeLists.txt
++++ b/src/libsync/CMakeLists.txt
+@@ -85,7 +85,7 @@ INSTALL(
+         ${CMAKE_CURRENT_BINARY_DIR}/owncloudlib.h
+         logger.h
+         accessmanager.h
+-    DESTINATION ${INCLUDE_INSTALL_DIR}/ownCloud/libsync
++    DESTINATION ${INCLUDE_INSTALL_DIR}/${APPLICATION_SHORTNAME}/libsync
+ )
+ 
+ add_library(libsync SHARED ${libsync_SRCS})
+@@ -138,4 +138,4 @@ set_target_properties(libsync PROPERTIES
+         VERSION ${MIRALL_VERSION}
+         SOVERSION ${MIRALL_SOVERSION}
+ )
+-install(TARGETS libsync EXPORT ownCloudConfig 
${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
++install(TARGETS libsync EXPORT ${APPLICATION_SHORTNAME}Config 
${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
+diff --git a/src/resources/CMakeLists.txt b/src/resources/CMakeLists.txt
+index 6f50bf3be..7e0ff05b7 100644
+--- a/src/resources/CMakeLists.txt
++++ b/src/resources/CMakeLists.txt
+@@ -42,4 +42,4 @@ if(Qt5LinguistTools_FOUND)
+     )
+ endif()
+ 
+-install(TARGETS owncloudResources EXPORT ownCloudConfig 
${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
++install(TARGETS owncloudResources EXPORT ${APPLICATION_SHORTNAME}Config 
${KDE_INSTALL_TARGETS_DEFAULT_ARGS})

Reply via email to