net-misc/seafile-client: initial import

This commit is contained in:
Julian Ospald 2018-06-09 04:07:31 +02:00
parent 2ad0a7942c
commit 6666e890fa
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 63 additions and 0 deletions

View File

@ -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)

View File

@ -0,0 +1,42 @@
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
# 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
)