commit:     8deca73c09e0533558bc9063bcb09d86c6bb3b8c
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Sun Mar  2 15:54:56 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 10 18:01:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8deca73c

net-misc/seafile-client: Bump to 9.0.13

apply to patch to require qtwebengine only if USE="shibboleth"

Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/40911
Closes: https://github.com/gentoo/gentoo/pull/40911
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/seafile-client/Manifest                   |  1 +
 .../seafile-client-9.0.13-remove-qtwebengine.patch | 28 +++++++++++++
 .../seafile-client/seafile-client-9.0.13.ebuild    | 48 ++++++++++++++++++++++
 3 files changed, 77 insertions(+)

diff --git a/net-misc/seafile-client/Manifest b/net-misc/seafile-client/Manifest
index 5bc1ea697ec0..9855de4db5ed 100644
--- a/net-misc/seafile-client/Manifest
+++ b/net-misc/seafile-client/Manifest
@@ -1 +1,2 @@
 DIST seafile-client-9.0.11.tar.gz 11726726 BLAKE2B 
e8dab4ecb4d4ae3fe12a4083e286ca1232e5994faa835f917e35892d814cc31ca55deaef056396b446a8eb553c3b6ebdd2c29c60d86b6ac3221c56c42bd1f968
 SHA512 
b4ef94cbf30eb23f9fb127791f118fcaeadc38544d557bef028bc21daedea265c4c728ccb91b2412628d5ab540d2a3aea37a7ca4120d1c0d49d19715544a9443
+DIST seafile-client-9.0.13.tar.gz 11734321 BLAKE2B 
82f478559e6bbfe2155e12b7a7d6f9b68afd7ddd692c768054080255685c6bfa2574d37e354efe5d17cc95825f801d375b36cd46ca48b64c34979da1906c9039
 SHA512 
0a30467dc8d42fcf7ef26165f2702dbf8bf6f49a2105d17ebacaae30d923320b73ab07e333f018d70b7659f0431b7e8eb161300ba387630920dd05f9f0ab692e

diff --git 
a/net-misc/seafile-client/files/seafile-client-9.0.13-remove-qtwebengine.patch 
b/net-misc/seafile-client/files/seafile-client-9.0.13-remove-qtwebengine.patch
new file mode 100644
index 000000000000..e0ea5c191d5c
--- /dev/null
+++ 
b/net-misc/seafile-client/files/seafile-client-9.0.13-remove-qtwebengine.patch
@@ -0,0 +1,28 @@
+https://github.com/haiwen/seafile-client/pull/1613
+
+From e60fee894502bd1908f44df0c6c41bb1238cf1c2 Mon Sep 17 00:00:00 2001
+From: "Z. Liu" <[email protected]>
+Date: Tue, 8 Apr 2025 03:27:20 +0000
+Subject: [PATCH] CMakeLists.txt: require WebEngine{Core,Widgets} only if
+ BUILD_SHIBBOLETH_SUPPORT
+
+which is handled in 'IF (BUILD_SHIBBOLETH_SUPPORT)'
+
+Signed-off-by: Z. Liu <[email protected]>
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2e578c01..62531a4d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -157,7 +157,7 @@ ELSE()
+ ENDIF()
+ 
+ IF(QT_VERSION_MAJOR EQUAL 6)
+-    SET(USE_QT_LIBRARIES Core Gui Widgets LinguistTools Network Core5Compat 
WebEngineCore WebEngineWidgets)
++    SET(USE_QT_LIBRARIES Core Gui Widgets LinguistTools Network Core5Compat)
+ ELSE()
+     SET(USE_QT_LIBRARIES Core Gui Widgets LinguistTools Network)
+ ENDIF()
+-- 
+2.45.2
+

diff --git a/net-misc/seafile-client/seafile-client-9.0.13.ebuild 
b/net-misc/seafile-client/seafile-client-9.0.13.ebuild
new file mode 100644
index 000000000000..39c21d632ce3
--- /dev/null
+++ b/net-misc/seafile-client/seafile-client-9.0.13.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Upstream is moving tags repeatedly, then we use commit hash.
+RELEASE_COMMIT="d11832792988ffeb2b514b693e3bcb39512da71e"
+
+inherit xdg cmake
+
+DESCRIPTION="Seafile desktop client"
+HOMEPAGE="https://www.seafile.com/ https://github.com/haiwen/seafile-client/";
+SRC_URI="https://github.com/haiwen/${PN}/archive/${RELEASE_COMMIT}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/${PN}-${RELEASE_COMMIT}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="shibboleth"
+
+RDEPEND="dev-db/sqlite:3
+       dev-libs/glib:2
+       dev-libs/jansson:=
+       dev-libs/openssl:=
+       dev-qt/qtbase:6[dbus,gui,network,widgets]
+       shibboleth? ( dev-qt/qtwebengine:6[widgets] )
+       dev-qt/qt5compat:6
+       >=net-libs/libsearpc-3.2.0_p1
+       ~net-misc/seafile-${PV}
+       sys-libs/zlib
+       virtual/opengl
+       elibc_musl? ( sys-libs/fts-standalone )"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-qt/qttools:6[linguist]"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-9.0.11-select-qt6.patch"
+       "${FILESDIR}/${PN}-9.0.13-remove-qtwebengine.patch"
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_SHIBBOLETH_SUPPORT="$(usex shibboleth)"
+       )
+       # 863554
+       use elibc_musl && mycmakeargs+=( -DCMAKE_CXX_STANDARD_LIBRARIES="-lfts" 
)
+       cmake_src_configure
+}

Reply via email to