diff options
author | mr <mr@FreeBSD.org> | 2018-03-25 03:11:59 +0800 |
---|---|---|
committer | mr <mr@FreeBSD.org> | 2018-03-25 03:11:59 +0800 |
commit | 24e9cac248d6c260720e4c07c49e5c7604c49b8a (patch) | |
tree | 7f177afc8023ae2a505d47cdcfe9770ad688b87d /deskutils | |
parent | 8a507194822880437485eb2f07965f1566a9a74a (diff) | |
download | freebsd-ports-graphics-24e9cac248d6c260720e4c07c49e5c7604c49b8a.tar.gz freebsd-ports-graphics-24e9cac248d6c260720e4c07c49e5c7604c49b8a.tar.zst freebsd-ports-graphics-24e9cac248d6c260720e4c07c49e5c7604c49b8a.zip |
Add nextcloudclient as of 20180323.
It's repocopied from owncloudclient.
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/nextcloudclient/Makefile | 58 | ||||
-rw-r--r-- | deskutils/nextcloudclient/distinfo | 3 | ||||
-rw-r--r-- | deskutils/nextcloudclient/files/patch-doc_CMakeLists.txt | 11 | ||||
-rw-r--r-- | deskutils/nextcloudclient/files/patch-man_CMakeLists.txt | 15 | ||||
-rw-r--r-- | deskutils/nextcloudclient/files/patch-src_gui_accountsettings.cpp | 12 | ||||
-rw-r--r-- | deskutils/nextcloudclient/files/patch-src_gui_generalsettings.cpp | 18 | ||||
-rw-r--r-- | deskutils/nextcloudclient/files/patch-src_gui_owncloudgui.cpp | 11 | ||||
-rw-r--r-- | deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp | 25 | ||||
-rw-r--r-- | deskutils/nextcloudclient/pkg-descr | 4 | ||||
-rw-r--r-- | deskutils/nextcloudclient/pkg-plist | 119 |
10 files changed, 276 insertions, 0 deletions
diff --git a/deskutils/nextcloudclient/Makefile b/deskutils/nextcloudclient/Makefile new file mode 100644 index 00000000000..5e0d7599035 --- /dev/null +++ b/deskutils/nextcloudclient/Makefile @@ -0,0 +1,58 @@ +# Created by: Mathieu Arnold +# $FreeBSD$ + +PORTNAME= nextcloudclient +PORTVERSION= 0.0.0.20180323 +#DISTVERSIONPREFIX= v +#PORTREVISION= 1 +CATEGORIES= deskutils + +MAINTAINER= mr@freebsd.org +COMMENT= NextCloud Desktop Syncing Client + +LICENSE= GPLv2 + +LIB_DEPENDS= libinotify.so:devel/libinotify \ + libqt5keychain.so:security/qtkeychain@qt5 + +USES= cmake:outsource,noninja compiler:c++11-lib gmake iconv \ + localbase:ldflags pkgconfig sqlite ssl +USE_QT5= buildtools_build concurrent core dbus gui linguist_build network \ + qmake_build sql webkit widgets xml +CMAKE_ARGS= -DBUILD_WITH_QT4:BOOL=OFF \ + -DCMAKE_INSTALL_MANDIR:STRING=man \ + -DWITH_STACK_PROTECTOR:BOOL=OFF +USE_LDCONFIG= yes +INSTALLS_ICONS= yes + +USE_GITHUB= yes +GH_ACCOUNT= nextcloud +GH_PROJECT= client +GH_TAGNAME= 4c40789dcafe5b193e125620b63dcc95e08ffba5 + +#OPTIONS_DEFINE= DEBUG DOCS +OPTIONS_DEFINE= DEBUG # DOCS doesn't build currently + +#DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx \ +# doxygen:devel/doxygen +#DOCS_USE= tex=dvipsk:build,latex:build +#DOCS_CMAKE_ON= -DWITH_DOC:BOOL=ON + +DEBUG_CMAKE_ON= -DCMAKE_BUILD_TYPE:STRING=Debug + +PLIST_SUB= VERSION=${PORTVERSION} + +.include <bsd.port.pre.mk> + +post-patch: + @${REINPLACE_CMD} -e \ + 's|.lst |.lst.sample |' ${WRKSRC}/CMakeLists.txt +.if ${OSVERSION} < 1100101 + @${REINPLACE_CMD} -e 's/ -fstack-protector-strong//' \ + ${WRKSRC}/src/CMakeLists.txt +.endif + +pre-configure: + @(cd ${WRKSRC} && ${CP} -f sync-exclude.lst sync-exclude.lst.sample) + +.include <bsd.port.post.mk> diff --git a/deskutils/nextcloudclient/distinfo b/deskutils/nextcloudclient/distinfo new file mode 100644 index 00000000000..e8fb6aa95d8 --- /dev/null +++ b/deskutils/nextcloudclient/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1521915864 +SHA256 (nextcloud-client-0.0.0.20180323-4c40789dcafe5b193e125620b63dcc95e08ffba5_GH0.tar.gz) = 311028a8dadc9137699255f9b1d619c45f5ce820f2942697285339bfc6c0e836 +SIZE (nextcloud-client-0.0.0.20180323-4c40789dcafe5b193e125620b63dcc95e08ffba5_GH0.tar.gz) = 18378272 diff --git a/deskutils/nextcloudclient/files/patch-doc_CMakeLists.txt b/deskutils/nextcloudclient/files/patch-doc_CMakeLists.txt new file mode 100644 index 00000000000..7aa57c6e3cb --- /dev/null +++ b/deskutils/nextcloudclient/files/patch-doc_CMakeLists.txt @@ -0,0 +1,11 @@ +--- doc/CMakeLists.txt.orig 2017-12-20 15:03:02 UTC ++++ doc/CMakeLists.txt +@@ -11,7 +11,7 @@ if(SPHINX_FOUND) + # assets + set(LATEX_LOGO "${CMAKE_CURRENT_SOURCE_DIR}/logo-blue.pdf") + +- set(APPLICATION_DOC_DIR "${CMAKE_INSTALL_DOCDIR}/${PACKAGE}") ++ set(APPLICATION_DOC_DIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/owncloudclient") + install(DIRECTORY ${SPHINX_HTML_DIR} DESTINATION ${APPLICATION_DOC_DIR} OPTIONAL) + install(DIRECTORY ${SPHINX_PDF_DIR} DESTINATION ${APPLICATION_DOC_DIR} OPTIONAL) + install(DIRECTORY ${SPHINX_QCH_DIR} DESTINATION ${APPLICATION_DOC_DIR} OPTIONAL) diff --git a/deskutils/nextcloudclient/files/patch-man_CMakeLists.txt b/deskutils/nextcloudclient/files/patch-man_CMakeLists.txt new file mode 100644 index 00000000000..c5412b20ae9 --- /dev/null +++ b/deskutils/nextcloudclient/files/patch-man_CMakeLists.txt @@ -0,0 +1,15 @@ +--- man/CMakeLists.txt.orig 2017-12-20 15:03:02 UTC ++++ man/CMakeLists.txt +@@ -3,6 +3,12 @@ if(SPHINX_FOUND) + # Sphinx cache with pickled ReST documents + set(SPHINX_CACHE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_doctrees") + ++ if(WITH_DOC) ++ add_custom_target(man ALL DEPENDS doc-man COMMENT "Building manual pages...") ++ else(WITH_DOC) ++ add_custom_target(man DEPENDS doc-maan COMMENT "Building manual pages...") ++ endif(WITH_DOC) ++ + # HTML output directory + set(SPHINX_MAN_DIR "${CMAKE_CURRENT_BINARY_DIR}/man1") + install(DIRECTORY ${SPHINX_MAN_DIR} DESTINATION ${CMAKE_INSTALL_MANDIR} OPTIONAL) diff --git a/deskutils/nextcloudclient/files/patch-src_gui_accountsettings.cpp b/deskutils/nextcloudclient/files/patch-src_gui_accountsettings.cpp new file mode 100644 index 00000000000..2f41eefd712 --- /dev/null +++ b/deskutils/nextcloudclient/files/patch-src_gui_accountsettings.cpp @@ -0,0 +1,12 @@ +--- src/gui/accountsettings.cpp.orig 2017-12-20 15:03:02 UTC ++++ src/gui/accountsettings.cpp +@@ -34,7 +34,8 @@ + #include "tooltipupdater.h" + #include "filesystem.h" + +-#include <math.h> ++#include <climits> ++#include <cmath> + + #include <QDesktopServices> + #include <QDir> diff --git a/deskutils/nextcloudclient/files/patch-src_gui_generalsettings.cpp b/deskutils/nextcloudclient/files/patch-src_gui_generalsettings.cpp new file mode 100644 index 00000000000..0b1683a51b3 --- /dev/null +++ b/deskutils/nextcloudclient/files/patch-src_gui_generalsettings.cpp @@ -0,0 +1,18 @@ +--- src/gui/generalsettings.cpp.orig 2017-12-20 15:03:02 UTC ++++ src/gui/generalsettings.cpp +@@ -117,6 +117,7 @@ void GeneralSettings::loadMiscSettings() + + void GeneralSettings::slotUpdateInfo() + { ++#if 0 + // Note: the sparkle-updater is not an OCUpdater + OCUpdater *updater = qobject_cast<OCUpdater *>(Updater::instance()); + if (ConfigFile().skipUpdateCheck()) { +@@ -133,6 +134,7 @@ void GeneralSettings::slotUpdateInfo() + // can't have those infos from sparkle currently + _ui->updatesGroupBox->setVisible(false); + } ++#endif + } + + void GeneralSettings::saveMiscSettings() diff --git a/deskutils/nextcloudclient/files/patch-src_gui_owncloudgui.cpp b/deskutils/nextcloudclient/files/patch-src_gui_owncloudgui.cpp new file mode 100644 index 00000000000..f9e0d7f0fd3 --- /dev/null +++ b/deskutils/nextcloudclient/files/patch-src_gui_owncloudgui.cpp @@ -0,0 +1,11 @@ +--- src/gui/owncloudgui.cpp.orig 2017-12-20 15:03:02 UTC ++++ src/gui/owncloudgui.cpp +@@ -35,6 +35,8 @@ + #include "common/syncjournalfilerecord.h" + #include "creds/abstractcredentials.h" + ++#include <climits> ++ + #include <QDesktopServices> + #include <QDir> + #include <QMessageBox> diff --git a/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp b/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp new file mode 100644 index 00000000000..09f5dc7f759 --- /dev/null +++ b/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp @@ -0,0 +1,25 @@ +--- src/libsync/configfile.cpp.orig 2017-12-20 15:03:02 UTC ++++ src/libsync/configfile.cpp +@@ -448,11 +448,22 @@ bool ConfigFile::skipUpdateCheck(const QString &connec + if (connection.isEmpty()) + con = defaultConnection(); + ++#if 0 + QVariant fallback = getValue(QLatin1String(skipUpdateCheckC), con, false); ++#else ++ QVariant fallback = getValue(QLatin1String(skipUpdateCheckC), con, true); ++#endif + fallback = getValue(QLatin1String(skipUpdateCheckC), QString(), fallback); + + QVariant value = getPolicySetting(QLatin1String(skipUpdateCheckC), fallback); ++#if 0 + return value.toBool(); ++#else ++ if ( !value.toBool() ) ++ qDebug() << "FreeBSD package disabled the UpdateCheck mechanism."; ++ ++ return true; ++#endif + } + + void ConfigFile::setSkipUpdateCheck(bool skip, const QString &connection) diff --git a/deskutils/nextcloudclient/pkg-descr b/deskutils/nextcloudclient/pkg-descr new file mode 100644 index 00000000000..b5f783e5e2e --- /dev/null +++ b/deskutils/nextcloudclient/pkg-descr @@ -0,0 +1,4 @@ +The NextCloud Desktop Client is a tool to synchronize files +from ownCloud Server with your computer. + +WWW: https://github.com/nextcloud/client diff --git a/deskutils/nextcloudclient/pkg-plist b/deskutils/nextcloudclient/pkg-plist new file mode 100644 index 00000000000..60a2ed3a66d --- /dev/null +++ b/deskutils/nextcloudclient/pkg-plist @@ -0,0 +1,119 @@ +bin/nextcloud +bin/nextcloudcmd +etc/Nextcloud/sync-exclude.lst.sample +include/nextcloudsync/creds/abstractcredentials.h +include/nextcloudsync/creds/httpcredentials.h +include/nextcloudsync/mirall/account.h +include/nextcloudsync/mirall/configfile.h +include/nextcloudsync/mirall/networkjobs.h +include/nextcloudsync/mirall/progressdispatcher.h +include/nextcloudsync/mirall/syncengine.h +include/nextcloudsync/mirall/syncfileitem.h +include/nextcloudsync/mirall/syncresult.h +lib/libnextcloudsync.so +lib/libnextcloudsync.so.0 +lib/libnextcloudsync.so.2.5.0 +lib/nextcloud/libocsync.so +lib/nextcloud/libocsync.so.0 +lib/nextcloud/libocsync.so.2.5.0 +share/applications/nextcloud.desktop +share/caja-python/extensions/syncstate-Nextcloud.py +share/icons/hicolor/1024x1024/apps/Nextcloud.png +share/icons/hicolor/128x128/apps/Nextcloud.png +share/icons/hicolor/128x128/apps/Nextcloud_error.png +share/icons/hicolor/128x128/apps/Nextcloud_error_shared.png +share/icons/hicolor/128x128/apps/Nextcloud_ok.png +share/icons/hicolor/128x128/apps/Nextcloud_ok_shared.png +share/icons/hicolor/128x128/apps/Nextcloud_sync.png +share/icons/hicolor/128x128/apps/Nextcloud_sync_shared.png +share/icons/hicolor/128x128/apps/Nextcloud_warn.png +share/icons/hicolor/128x128/apps/Nextcloud_warn_shared.png +share/icons/hicolor/16x16/apps/Nextcloud.png +share/icons/hicolor/16x16/apps/Nextcloud_error.png +share/icons/hicolor/16x16/apps/Nextcloud_error_shared.png +share/icons/hicolor/16x16/apps/Nextcloud_ok.png +share/icons/hicolor/16x16/apps/Nextcloud_ok_shared.png +share/icons/hicolor/16x16/apps/Nextcloud_sync.png +share/icons/hicolor/16x16/apps/Nextcloud_sync_shared.png +share/icons/hicolor/16x16/apps/Nextcloud_warn.png +share/icons/hicolor/16x16/apps/Nextcloud_warn_shared.png +share/icons/hicolor/22x22/apps/Nextcloud.png +share/icons/hicolor/256x256/apps/Nextcloud.png +share/icons/hicolor/256x256/apps/Nextcloud_error.png +share/icons/hicolor/256x256/apps/Nextcloud_error_shared.png +share/icons/hicolor/256x256/apps/Nextcloud_ok.png +share/icons/hicolor/256x256/apps/Nextcloud_ok_shared.png +share/icons/hicolor/256x256/apps/Nextcloud_sync.png +share/icons/hicolor/256x256/apps/Nextcloud_sync_shared.png +share/icons/hicolor/256x256/apps/Nextcloud_warn.png +share/icons/hicolor/256x256/apps/Nextcloud_warn_shared.png +share/icons/hicolor/32x32/apps/Nextcloud.png +share/icons/hicolor/32x32/apps/Nextcloud_error.png +share/icons/hicolor/32x32/apps/Nextcloud_error_shared.png +share/icons/hicolor/32x32/apps/Nextcloud_ok.png +share/icons/hicolor/32x32/apps/Nextcloud_ok_shared.png +share/icons/hicolor/32x32/apps/Nextcloud_sync.png +share/icons/hicolor/32x32/apps/Nextcloud_sync_shared.png +share/icons/hicolor/32x32/apps/Nextcloud_warn.png +share/icons/hicolor/32x32/apps/Nextcloud_warn_shared.png +share/icons/hicolor/48x48/apps/Nextcloud.png +share/icons/hicolor/48x48/apps/Nextcloud_error.png +share/icons/hicolor/48x48/apps/Nextcloud_error_shared.png +share/icons/hicolor/48x48/apps/Nextcloud_ok.png +share/icons/hicolor/48x48/apps/Nextcloud_ok_shared.png +share/icons/hicolor/48x48/apps/Nextcloud_sync.png +share/icons/hicolor/48x48/apps/Nextcloud_sync_shared.png +share/icons/hicolor/48x48/apps/Nextcloud_warn.png +share/icons/hicolor/48x48/apps/Nextcloud_warn_shared.png +share/icons/hicolor/512x512/apps/Nextcloud.png +share/icons/hicolor/64x64/apps/Nextcloud.png +share/icons/hicolor/64x64/apps/Nextcloud_error.png +share/icons/hicolor/64x64/apps/Nextcloud_error_shared.png +share/icons/hicolor/64x64/apps/Nextcloud_ok.png +share/icons/hicolor/64x64/apps/Nextcloud_ok_shared.png +share/icons/hicolor/64x64/apps/Nextcloud_sync.png +share/icons/hicolor/64x64/apps/Nextcloud_sync_shared.png +share/icons/hicolor/64x64/apps/Nextcloud_warn.png +share/icons/hicolor/64x64/apps/Nextcloud_warn_shared.png +share/icons/hicolor/72x72/apps/Nextcloud_error.png +share/icons/hicolor/72x72/apps/Nextcloud_error_shared.png +share/icons/hicolor/72x72/apps/Nextcloud_ok.png +share/icons/hicolor/72x72/apps/Nextcloud_ok_shared.png +share/icons/hicolor/72x72/apps/Nextcloud_sync.png +share/icons/hicolor/72x72/apps/Nextcloud_sync_shared.png +share/icons/hicolor/72x72/apps/Nextcloud_warn.png +share/icons/hicolor/72x72/apps/Nextcloud_warn_shared.png +share/nautilus-python/extensions/syncstate-Nextcloud.py +share/nemo-python/extensions/syncstate-Nextcloud.py +share/nextcloud/i18n/client_TW.qm +share/nextcloud/i18n/client_ca.qm +share/nextcloud/i18n/client_cs.qm +share/nextcloud/i18n/client_de.qm +share/nextcloud/i18n/client_el.qm +share/nextcloud/i18n/client_en.qm +share/nextcloud/i18n/client_es.qm +share/nextcloud/i18n/client_es_AR.qm +share/nextcloud/i18n/client_et.qm +share/nextcloud/i18n/client_eu.qm +share/nextcloud/i18n/client_fa.qm +share/nextcloud/i18n/client_fi.qm +share/nextcloud/i18n/client_fr.qm +share/nextcloud/i18n/client_gl.qm +share/nextcloud/i18n/client_hu.qm +share/nextcloud/i18n/client_it.qm +share/nextcloud/i18n/client_ja.qm +share/nextcloud/i18n/client_nb_NO.qm +share/nextcloud/i18n/client_nl.qm +share/nextcloud/i18n/client_pl.qm +share/nextcloud/i18n/client_pt.qm +share/nextcloud/i18n/client_pt_BR.qm +share/nextcloud/i18n/client_ru.qm +share/nextcloud/i18n/client_sk.qm +share/nextcloud/i18n/client_sl.qm +share/nextcloud/i18n/client_sr.qm +share/nextcloud/i18n/client_sv.qm +share/nextcloud/i18n/client_th.qm +share/nextcloud/i18n/client_tr.qm +share/nextcloud/i18n/client_uk.qm +share/nextcloud/i18n/client_zh_CN.qm +share/nextcloud/i18n/client_zh_TW.qm |