commit:     359f6e99280adcd4b7a5a6497178f35e6a2c9af5
Author:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
AuthorDate: Sun Aug  2 20:42:45 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Oct  6 07:58:01 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=359f6e99

net-misc/seafile-client: version bump to 7.0.9

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-misc/seafile-client/Manifest                   |  1 +
 .../files/seafile-client-7.0.9-libressl.patch      | 14 ++++++
 .../seafile-client/seafile-client-7.0.9.ebuild     | 54 ++++++++++++++++++++++
 3 files changed, 69 insertions(+)

diff --git a/net-misc/seafile-client/Manifest b/net-misc/seafile-client/Manifest
index 88848439f03..862d36abd83 100644
--- a/net-misc/seafile-client/Manifest
+++ b/net-misc/seafile-client/Manifest
@@ -1 +1,2 @@
 DIST seafile-client-7.0.5.tar.gz 2359779 BLAKE2B 
58fa532668859c4413bb931146a58eb51ede7c1faa3ea2a9cafb94be44a8819261570ef16cc9f62f584f9ff483aa0832a63a99bb53380dd9efa4f82d25dea553
 SHA512 
b79cde3f98ebb1a0cb1035131cf95735f01c63bcb4bb658d5c40c36cdf85705d2c6fd2f7787fbdb3d965a25d60ee98e020e33c4f9423295c7ef1ab36ee5c7c27
+DIST seafile-client-7.0.9.tar.gz 2367747 BLAKE2B 
60a488a22e094d4783c7da50e8852d7204e16791613d113f729bacc21a40883edc25469f8ce1a8dab52b4ed0ea73b691a831fb0c01a885aeeae7bd276e2781ff
 SHA512 
665a252a321744cd84b96230f5318528aad23a0a089e5049913c34a6c254356c7cc996e45e2a50d432d114f13b089b8d12062b3a1a4d1a0b6f1cbf9688ad32b6

diff --git a/net-misc/seafile-client/files/seafile-client-7.0.9-libressl.patch 
b/net-misc/seafile-client/files/seafile-client-7.0.9-libressl.patch
new file mode 100644
index 00000000000..d7fdc2201d1
--- /dev/null
+++ b/net-misc/seafile-client/files/seafile-client-7.0.9-libressl.patch
@@ -0,0 +1,14 @@
+Upstream pull request: https://github.com/haiwen/seafile-client/pull/1314
+diff --git a/src/utils/rsa.cpp b/src/utils/rsa.cpp
+index 350b790..513733d 100644
+--- a/src/utils/rsa.cpp
++++ b/src/utils/rsa.cpp
+@@ -13,7 +13,7 @@ namespace {
+ 
+ /* Forward compatibility functions if libssl < 1.1.0. */
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) 
&& LIBRESSL_VERSION_NUMBER < 0x2070000fL)
+ 
+ int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
+ {

diff --git a/net-misc/seafile-client/seafile-client-7.0.9.ebuild 
b/net-misc/seafile-client/seafile-client-7.0.9.ebuild
new file mode 100644
index 00000000000..8b0653e774d
--- /dev/null
+++ b/net-misc/seafile-client/seafile-client-7.0.9.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake xdg-utils
+
+DESCRIPTION="Seafile desktop client"
+HOMEPAGE="https://www.seafile.com/ https://github.com/haiwen/seafile-client/";
+SRC_URI="https://github.com/haiwen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="libressl shibboleth test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-db/sqlite:3
+       dev-libs/libevent
+       dev-libs/jansson
+       <dev-qt/qtcore-5.15:5
+       <dev-qt/qtdbus-5.15:5
+       <dev-qt/qtgui-5.15:5
+       <dev-qt/qtnetwork-5.15:5
+       <dev-qt/qtwidgets-5.15:5
+       !libressl? ( dev-libs/openssl:= )
+       libressl? ( dev-libs/libressl:= )
+       net-libs/libsearpc
+       ~net-misc/seafile-${PV}
+       shibboleth? ( <dev-qt/qtwebengine-5.15:5[widgets] )"
+DEPEND="${RDEPEND}
+       test? ( <dev-qt/qttest-5.15:5 )"
+BDEPEND="<dev-qt/linguist-tools-5.15:5"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-select-qt5.patch"
+       "${FILESDIR}/${P}-libressl.patch"
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_SHIBBOLETH_SUPPORT="$(usex shibboleth)"
+               -DBUILD_TESTING="$(usex test)"
+       )
+       cmake_src_configure
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}

Reply via email to