From 6666e890fa9262c1e73ccae60cdeb22abe678f52 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 9 Jun 2018 04:07:31 +0200 Subject: [PATCH] net-misc/seafile-client: initial import --- .../seafile-client/files/select-qt5.patch | 21 ++++++++++ .../seafile-client-6.1.8.exheres-0 | 42 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 packages/net-misc/seafile-client/files/select-qt5.patch create mode 100644 packages/net-misc/seafile-client/seafile-client-6.1.8.exheres-0 diff --git a/packages/net-misc/seafile-client/files/select-qt5.patch b/packages/net-misc/seafile-client/files/select-qt5.patch new file mode 100644 index 0000000..b92d9a1 --- /dev/null +++ b/packages/net-misc/seafile-client/files/select-qt5.patch @@ -0,0 +1,21 @@ +Source: gentoo +Reason: make sure qt5 is picked + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4261fba..24fbbda 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -158,11 +158,8 @@ SET(QT_VERSION_MAJOR 5) + # have to keep using QtWebKit on windows because QtWebEngine can't be + # compiled in msys2/mingw (QtWebEnigne is based on chrome, which has to be + # compiled with MSVC.) +-FIND_PROGRAM(qmake_executable NAMES qmake qmake.exe) +-EXECUTE_PROCESS(COMMAND +- bash -c "${qmake_executable} --version | grep -iE '^using qt version [0-9.]+' | awk '{print $4}'" +- OUTPUT_VARIABLE DETECTED_QT_VERSION +- OUTPUT_STRIP_TRAILING_WHITESPACE) ++FIND_PACKAGE(Qt5Core) ++SET(DETECTED_QT_VERSION ${Qt5Core_VERSION}) + MESSAGE("qt5 version: ${DETECTED_QT_VERSION}") + IF(WIN32 OR DETECTED_QT_VERSION VERSION_LESS 5.6.0) + ADD_DEFINITIONS(-DSEAFILE_USE_WEBKIT) diff --git a/packages/net-misc/seafile-client/seafile-client-6.1.8.exheres-0 b/packages/net-misc/seafile-client/seafile-client-6.1.8.exheres-0 new file mode 100644 index 0000000..1ee64d4 --- /dev/null +++ b/packages/net-misc/seafile-client/seafile-client-6.1.8.exheres-0 @@ -0,0 +1,42 @@ +# Copyright 2018 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ user=haiwen tag="v${PV}" ] +require cmake [ api=2 ] +require gtk-icon-cache + +SUMMARY="Seafile desktop client" +DESCRIPTION=" +Seafile is an enterprise file hosting platform with high reliability and +performance. Put files on your own server. Sync and share files across different +devices, or access all the files as a virtual disk. +" +HOMEPAGE="https://www.seafile.com ${HOMEPAGE}" + +LICENCES="Apache-2.0" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS=" + ( providers: libressl openssl ) [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build: + virtual/pkg-config + build+run: + dev-db/sqlite:3 + dev-libs/jansson + dev-libs/libevent + net-libs/ccnet[~${PV}] + net-libs/libsearpc + net-misc/seafile[~${PV}] + x11-libs/qtbase:5 + providers:libressl? ( dev-libs/libressl:= ) + providers:openssl? ( dev-libs/openssl ) +" + +BUGS_TO="hasufell@posteo.de" + +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}"/select-qt5.patch +)