diff --git a/deskutils/syncthingtray/Makefile b/deskutils/syncthingtray/Makefile index 4df1fb2fa12c..548d77e485b5 100644 --- a/deskutils/syncthingtray/Makefile +++ b/deskutils/syncthingtray/Makefile @@ -1,94 +1,113 @@ PORTNAME= syncthingtray -PORTVERSION= 1.5.0 DISTVERSIONPREFIX= v +DISTVERSION= 1.5.1 CATEGORIES= deskutils MAINTAINER= dsh@bamus.cz -COMMENT= Qt 5-based Syncthing tray application +COMMENT= Qt ${FLAVOR:S/qt//}-based Syncthing tray application WWW= https://github.com/Martchus/syncthingtray LICENSE= GPLv2 LICENSE_FILE= ${WRKDIR}/syncthingtray/LICENSE BUILD_DEPENDS= ${LOCALBASE}/share/ECM/cmake/ECMConfig.cmake:devel/kf5-extra-cmake-modules \ doxygen:devel/doxygen \ p5-YAML-LibYAML>0:textproc/p5-YAML-LibYAML LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs \ libboost_regex.so:devel/boost-libs -USES= cmake:insource compiler:c++11-lang desktop-file-utils iconv \ - kde:5 perl5 qt:5 +FLAVORS= qt5 qt6 +FLAVOR?= ${FLAVORS:[1]} +FLAVORS_SUB= yes + +qt5_CONFLICTS_INSTALL= ${PORTNAME}-qt6 +qt6_PKGNAMESUFFIX= -qt6 +qt6_CONFLICTS_INSTALL= ${PORTNAME} + +USES= cmake:insource iconv perl5 xorg + +CMAKE_ARGS= -DFORK_AWESOME_FONT_FILE=${WRKDIR}/forkawesome/fonts/forkawesome-webfont.ttf \ + -DFORK_AWESOME_ICON_DEFINITIONS=${WRKDIR}/forkawesome/src/icons/icons.yml +CMAKE_OFF= SYSTEMD_SUPPORT USE_STANDARD_FILESYSTEM +CMAKE_SOURCE_PATH= ${WRKDIR}/subdirs/syncthingtray USE_GITHUB= nodefault GH_TUPLE= Martchus:${PORTNAME}:${DISTVERSIONPREFIX}${DISTVERSION}:syncthingtray/../syncthingtray \ Martchus:cpp-utilities:v5.24.7:cpputilities/../c++utilities \ - Martchus:qtutilities:v6.13.5:qtutilities/../qtutilities \ + Martchus:qtutilities:v6.14.0:qtutilities/../qtutilities \ Martchus:qtforkawesome:v0.2.0:qtforkawesome/../qtforkawesome \ ForkAwesome:Fork-Awesome:4fef70f:ForkAwesome/../forkawesome \ Martchus:subdirs:0ad32a0:subdirs/../subdirs -USE_KDE= plasma-framework -USE_PERL5= build -USE_QT= concurrent core dbus declarative gui location network \ - printsupport qdbus quickcontrols2 svg webchannel widgets \ - x11extras buildtools:build doc:build linguist:build \ - qmake:build testlib:build +USE_QT= declarative svg doc:build +USE_XORG= x11 +.if ${FLAVOR} == qt5 +USES+= kde:5 qt:5 +USE_KDE= plasma-framework:build +USE_QT+= concurrent core dbus gui location network qdbus \ + quickcontrols2:build widgets x11extras:build buildtools:build \ + linguist:build qmake:build testlib:build +WEBENGINE_USE= QT=printsupport,webchannel,webengine +.else +CMAKE_ARGS+= -DQT_PACKAGE_PREFIX:STRING=Qt6 -DKF_PACKAGE_PREFIX:STRING=KF6 +USES+= gl kde:6 qt:6 +USE_GL= opengl +USE_KDE= libplasma:build +USE_QT+= base positioning +WEBENGINE_USE= QT=webchannel,webengine +.endif -CMAKE_ARGS= -DFORK_AWESOME_FONT_FILE=${WRKDIR}/forkawesome/fonts/forkawesome-webfont.ttf \ - -DFORK_AWESOME_ICON_DEFINITIONS=${WRKDIR}/forkawesome/src/icons/icons.yml -CMAKE_OFF= SYSTEMD_SUPPORT USE_STANDARD_FILESYSTEM -CMAKE_SOURCE_PATH= ${WRKDIR}/subdirs/syncthingtray +OPTIONS_DEFINE= WEBENGINE +OPTIONS_DEFAULT= WEBENGINE + +WEBENGINE_DESC= Built-in web view (webengine dependency) +WEBENGINE_CMAKE_ON= -DWEBVIEW_PROVIDER:STRING=webengine +WEBENGINE_CMAKE_OFF= -DWEBVIEW_PROVIDER:STRING=none + +USE_PERL5= build BUILD_WRKSRC= ${WRKDIR} CONFIGURE_WRKSRC= ${WRKDIR} INSTALL_WRKSRC= ${WRKDIR} - -.include - -.if ${ARCH} == amd64 || ${ARCH} == i386 -USE_QT+= webengine -.else -CMAKE_ARGS+= -DWEBVIEW_PROVIDER=webkit -USE_QT+= webkit -.endif +PATCH_WRKSRC= ${WRKDIR} post-install: ${RM} -r \ ${STAGEDIR}${PREFIX}/include/c++utilities \ ${STAGEDIR}${PREFIX}/include/qtforkawesome \ ${STAGEDIR}${PREFIX}/include/qtquickforkawesome \ ${STAGEDIR}${PREFIX}/include/qtutilities \ ${STAGEDIR}${PREFIX}/include/syncthingconnector \ ${STAGEDIR}${PREFIX}/include/syncthingmodel \ ${STAGEDIR}${PREFIX}/include/syncthingwidgets \ ${STAGEDIR}${PREFIX}/lib/libc++utilities.a \ ${STAGEDIR}${PREFIX}/lib/libqtforkawesome.a \ ${STAGEDIR}${PREFIX}/lib/libqtquickforkawesome.a \ ${STAGEDIR}${PREFIX}/lib/libqtutilities.a \ ${STAGEDIR}${PREFIX}/lib/libsyncthingconnector.a \ ${STAGEDIR}${PREFIX}/lib/libsyncthingmodel.a \ ${STAGEDIR}${PREFIX}/lib/libsyncthingwidgets.a \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/c++utilities.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/qtforkawesome.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/qtforkawesomeiconengine.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/qtquickforkawesome.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/qtutilities.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingconnector.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingfileitemaction.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingmodel.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingplasmoid.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingwidgets.pc \ ${STAGEDIR}${PREFIX}/share/c++utilities \ ${STAGEDIR}${PREFIX}/share/qtforkawesome \ ${STAGEDIR}${PREFIX}/share/qtforkawesomeiconengine \ ${STAGEDIR}${PREFIX}/share/qtquickforkawesome \ ${STAGEDIR}${PREFIX}/share/qtutilities \ ${STAGEDIR}${PREFIX}/share/syncthingconnector/cmake \ ${STAGEDIR}${PREFIX}/share/syncthingfileitemaction/cmake \ ${STAGEDIR}${PREFIX}/share/syncthingmodel/cmake \ ${STAGEDIR}${PREFIX}/share/syncthingplasmoid/cmake \ ${STAGEDIR}${PREFIX}/share/syncthingwidgets/cmake \ ${STAGEDIR}${QT_PLUGINDIR} \ ${STAGEDIR}${QT_LIBDIR} -.include +.include diff --git a/deskutils/syncthingtray/distinfo b/deskutils/syncthingtray/distinfo index 7c127c39d7ad..6c2216ad6979 100644 --- a/deskutils/syncthingtray/distinfo +++ b/deskutils/syncthingtray/distinfo @@ -1,13 +1,13 @@ -TIMESTAMP = 1710083644 -SHA256 (Martchus-syncthingtray-v1.5.0_GH0.tar.gz) = ddec89979a579b703de5324383f4171ab89844c83fbc725c663a81951ac4b070 -SIZE (Martchus-syncthingtray-v1.5.0_GH0.tar.gz) = 1895965 +TIMESTAMP = 1712148738 +SHA256 (Martchus-syncthingtray-v1.5.1_GH0.tar.gz) = 38350e7b69de42c0a736762f70cb90399637e3b8619eef50149115600273dbdd +SIZE (Martchus-syncthingtray-v1.5.1_GH0.tar.gz) = 1896270 SHA256 (Martchus-cpp-utilities-v5.24.7_GH0.tar.gz) = c3aa125933aaf9724eacca045f5d8278d524a4cef95ce54b89e88e1ac15684c2 SIZE (Martchus-cpp-utilities-v5.24.7_GH0.tar.gz) = 195153 -SHA256 (Martchus-qtutilities-v6.13.5_GH0.tar.gz) = ed6c438f4a1f0082558978a87be4608a5bd82cf6a4450798dd612d6087a639b4 -SIZE (Martchus-qtutilities-v6.13.5_GH0.tar.gz) = 103635 +SHA256 (Martchus-qtutilities-v6.14.0_GH0.tar.gz) = 4eab9ef26edf67c1c436596bea42890fcc0206f93c50413939ccce8c94bf7bc0 +SIZE (Martchus-qtutilities-v6.14.0_GH0.tar.gz) = 104258 SHA256 (Martchus-qtforkawesome-v0.2.0_GH0.tar.gz) = 42de641e79b22d4dd44eb179e8818a8a4bf424c3feec1d0d9524bae5fde458cc SIZE (Martchus-qtforkawesome-v0.2.0_GH0.tar.gz) = 19118 SHA256 (ForkAwesome-Fork-Awesome-4fef70f_GH0.tar.gz) = 93906cd38eb92fe853c9e3723b1f0fa56df6ddcd2d87ac82c97b5a188e5cdae6 SIZE (ForkAwesome-Fork-Awesome-4fef70f_GH0.tar.gz) = 1803875 SHA256 (Martchus-subdirs-0ad32a0_GH0.tar.gz) = 60505289663921ef51863346cdb1d779ff8090a5cef46220a04956c2d6858224 SIZE (Martchus-subdirs-0ad32a0_GH0.tar.gz) = 10286 diff --git a/deskutils/syncthingtray/files/patch-syncthingtray_plasmoid_lib_syncthingapplet.h b/deskutils/syncthingtray/files/patch-syncthingtray_plasmoid_lib_syncthingapplet.h new file mode 100644 index 000000000000..fb3d72c2ae6a --- /dev/null +++ b/deskutils/syncthingtray/files/patch-syncthingtray_plasmoid_lib_syncthingapplet.h @@ -0,0 +1,12 @@ +--- syncthingtray/plasmoid/lib/syncthingapplet.h.orig 2024-04-02 09:09:30 UTC ++++ syncthingtray/plasmoid/lib/syncthingapplet.h +@@ -61,7 +61,9 @@ class SyncthingApplet : public Plasma::Applet { + Q_PROPERTY(Data::SyncthingDownloadModel *downloadModel READ downloadModel NOTIFY downloadModelChanged) + Q_PROPERTY(Data::SyncthingRecentChangesModel *recentChangesModel READ recentChangesModel NOTIFY recentChangesModelChanged) + Q_PROPERTY(Data::SyncthingStatusSelectionModel *passiveSelectionModel READ passiveSelectionModel NOTIFY passiveSelectionModelChanged) ++#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD + Q_PROPERTY(Data::SyncthingService *service READ service NOTIFY serviceChanged) ++#endif + Q_PROPERTY(bool local READ isLocal NOTIFY localChanged) + Q_PROPERTY(QString statusText READ statusText NOTIFY connectionStatusChanged) + Q_PROPERTY(QString additionalStatusText READ additionalStatusText NOTIFY connectionStatusChanged) diff --git a/deskutils/syncthingtray/pkg-plist b/deskutils/syncthingtray/pkg-plist index c77f60c38b93..dfb5f9b6272d 100644 --- a/deskutils/syncthingtray/pkg-plist +++ b/deskutils/syncthingtray/pkg-plist @@ -1,53 +1,54 @@ bin/syncthingctl bin/syncthingtray share/applications/syncthingtray.desktop share/bash-completion/completions/syncthingctl share/bash-completion/completions/syncthingtray share/icons/hicolor/scalable/apps/syncthingtray.svg -share/kservices5/plasma-applet-martchus.syncthingplasmoid.desktop -share/kservices5/syncthingfileitemaction.desktop +%%QT5%%share/kservices5/plasma-applet-martchus.syncthingplasmoid.desktop +%%QT5%%share/kservices5/syncthingfileitemaction.desktop share/metainfo/syncthingfileitemaction.appdata.xml share/metainfo/syncthingplasmoid.appdata.xml share/metainfo/syncthingtray.appdata.xml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/CompactRepresentation.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/DetailItem.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/DetailView.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/DevicesPage.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/DirectoriesPage.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/DownloadsPage.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/FullRepresentation.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/IconLabel.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/RecentChangesPage.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/StatisticsView.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/TabButton.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/TinyButton.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/ToolBar.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/ToolButton.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/ToolTipTrigger.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/ToolTipView.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/TopLevelItem.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/TopLevelView.qml share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/main.qml -share/plasma/plasmoids/martchus.syncthingplasmoid/metadata.desktop +%%QT5%%share/plasma/plasmoids/martchus.syncthingplasmoid/metadata.desktop +%%QT6%%share/plasma/plasmoids/martchus.syncthingplasmoid/metadata.json share/syncthingconnector/translations/syncthingconnector_cs_CZ.qm share/syncthingconnector/translations/syncthingconnector_de_DE.qm share/syncthingconnector/translations/syncthingconnector_en_US.qm share/syncthingconnector/translations/syncthingconnector_zh_CN.qm share/syncthingfileitemaction/translations/syncthingfileitemaction_cs_CZ.qm share/syncthingfileitemaction/translations/syncthingfileitemaction_de_DE.qm share/syncthingfileitemaction/translations/syncthingfileitemaction_en_US.qm share/syncthingfileitemaction/translations/syncthingfileitemaction_zh_CN.qm share/syncthingmodel/translations/syncthingmodel_cs_CZ.qm share/syncthingmodel/translations/syncthingmodel_de_DE.qm share/syncthingmodel/translations/syncthingmodel_en_US.qm share/syncthingmodel/translations/syncthingmodel_zh_CN.qm share/syncthingplasmoid/translations/syncthingplasmoid_de_DE.qm share/syncthingplasmoid/translations/syncthingplasmoid_en_US.qm %%DATADIR%%/translations/syncthingtray_cs_CZ.qm %%DATADIR%%/translations/syncthingtray_de_DE.qm %%DATADIR%%/translations/syncthingtray_en_US.qm %%DATADIR%%/translations/syncthingtray_zh_CN.qm share/syncthingwidgets/translations/syncthingwidgets_cs_CZ.qm share/syncthingwidgets/translations/syncthingwidgets_de_DE.qm share/syncthingwidgets/translations/syncthingwidgets_en_US.qm share/syncthingwidgets/translations/syncthingwidgets_zh_CN.qm