commit:     6daf3ffdaaacf5177ea49c983cd60c838819a1fd
Author:     Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
AuthorDate: Sun Nov  2 19:03:25 2025 +0000
Commit:     Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
CommitDate: Sun Nov  2 19:04:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6daf3ffd

net-p2p/syncthingtray: New package

This is a useful indicator for syncthing, integrating it better into
desktop linux. It has a focus on working well under KDE, but is
desktop-agnostic (except for gnome, which has no tray >.>)

Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>

 net-p2p/syncthingtray/Manifest                   |  1 +
 net-p2p/syncthingtray/metadata.xml               | 15 ++++++
 net-p2p/syncthingtray/syncthingtray-2.0.2.ebuild | 59 ++++++++++++++++++++++++
 3 files changed, 75 insertions(+)

diff --git a/net-p2p/syncthingtray/Manifest b/net-p2p/syncthingtray/Manifest
new file mode 100644
index 0000000000..1f45fce28a
--- /dev/null
+++ b/net-p2p/syncthingtray/Manifest
@@ -0,0 +1 @@
+DIST syncthingtray-2.0.2.tar.gz 5966470 BLAKE2B 
398663366283ff20ef221e36ffb7131b1515a2bbf53f5267d17bc1e33adba9db8bcbf149a09b06c2503cebcd3e12bef5987311981dbbbc903606ec29329d372a
 SHA512 
107c1bde886121d3eb44f5432e691b147f83aae28f89f82320159c3a18bff8840fd40d4df3f84a091c6de28f7ae8436592e0b23fc476088f121cc58477cff95b

diff --git a/net-p2p/syncthingtray/metadata.xml 
b/net-p2p/syncthingtray/metadata.xml
new file mode 100644
index 0000000000..fc14b7c0cf
--- /dev/null
+++ b/net-p2p/syncthingtray/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <name>Esteve Varela Colominas</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">Martchus/syncthingtray</remote-id>
+  </upstream>
+  <use>
+    <flag name="kio">Enable file item action plugin in 
<pkg>kde-apps/dolphin</pkg></flag>
+    <flag name="plasmoid">Enable plasmoid for KDE Plasma</flag>
+  </use>
+</pkgmetadata>

diff --git a/net-p2p/syncthingtray/syncthingtray-2.0.2.ebuild 
b/net-p2p/syncthingtray/syncthingtray-2.0.2.ebuild
new file mode 100644
index 0000000000..c4909f13d7
--- /dev/null
+++ b/net-p2p/syncthingtray/syncthingtray-2.0.2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit cmake
+
+DESCRIPTION="Tray application and Dolphin/Plasma integration for Syncthing"
+HOMEPAGE="https://github.com/Martchus/syncthingtray";
+
+SRC_URI="https://github.com/Martchus/syncthingtray/archive/refs/tags/v$PV.tar.gz
 -> $P.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="kio plasmoid +qt6 test"
+REQUIRED_USE="
+       plasmoid? ( qt6 )
+"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       dev-libs/boost
+       !qt6? (
+               dev-qt/qtconcurrent:5
+               dev-qt/qtnetwork:5
+               dev-qt/qtsvg:5
+               gui-libs/qtforkawesome[qt5]
+               gui-libs/qtutilities[qt5]
+               kio? ( kde-frameworks/kio:5 )
+       )
+       qt6? (
+               dev-qt/qtbase:6[concurrent,network]
+               dev-qt/qtsvg:6
+               gui-libs/qtforkawesome[qt6]
+               gui-libs/qtutilities[qt6]
+               kio? ( kde-frameworks/kio:6 )
+               plasmoid? ( kde-plasma/libplasma:6 )
+       )
+       "
+RDEPEND="$DEPEND
+       net-p2p/syncthing
+"
+BDEPEND="
+       qt6? (
+               plasmoid? ( kde-frameworks/extra-cmake-modules )
+       )
+"
+
+src_configure() {
+       local mycmakeargs=(
+               -DCONFIGURATION_PACKAGE_SUFFIX_QTUTILITIES=-$(usex !qt6 qt5 qt6)
+               -DQT_PACKAGE_PREFIX=$(usex !qt6 Qt5 Qt6)
+               -DKF_PACKAGE_PREFIX=$(usex !qt6 KF5 KF6)
+               -DNO_FILE_ITEM_ACTION_PLUGIN=$(usex !kio)
+               -DNO_PLASMOID=$(usex !plasmoid)
+               -DEXCLUDE_TESTS_FROM_ALL=$(usex !test)
+       )
+       cmake_src_configure
+}

Reply via email to