summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gui-apps/nm-tray')
-rw-r--r--gui-apps/nm-tray/Manifest1
-rw-r--r--gui-apps/nm-tray/files/nm-tray-0.4.3-missing-include-qmetaenum.patch21
-rw-r--r--gui-apps/nm-tray/metadata.xml8
-rw-r--r--gui-apps/nm-tray/nm-tray-0.4.3.ebuild37
4 files changed, 67 insertions, 0 deletions
diff --git a/gui-apps/nm-tray/Manifest b/gui-apps/nm-tray/Manifest
new file mode 100644
index 000000000000..c9f1d27c94bf
--- /dev/null
+++ b/gui-apps/nm-tray/Manifest
@@ -0,0 +1 @@
+DIST nm-tray-0.4.3.tar.gz 44705 BLAKE2B 590e8b3a08e7543a1275d7e5e3264570fe78b6020435783b2b36d6acd1df36b0106f4537035d8b61c0d571451d27277874ec3ddc93cd6163c047666e7013ab2a SHA512 480511a6e5b075ff98b53e91b08f37b9344c81e89c0f580c74f4424b1657c156300c31cc85cc8f82478eec9efdf53589352c3757c16e386d6985828b9dfa819d
diff --git a/gui-apps/nm-tray/files/nm-tray-0.4.3-missing-include-qmetaenum.patch b/gui-apps/nm-tray/files/nm-tray-0.4.3-missing-include-qmetaenum.patch
new file mode 100644
index 000000000000..6d319efa55b9
--- /dev/null
+++ b/gui-apps/nm-tray/files/nm-tray-0.4.3-missing-include-qmetaenum.patch
@@ -0,0 +1,21 @@
+From 4563dabee3cbee13bc9d23a4a5d0ddda1526b43f Mon Sep 17 00:00:00 2001
+From: Palo Kisa <palo.kisa@gmail.com>
+Date: Tue, 1 Oct 2019 12:03:43 +0200
+Subject: [PATCH] nmmodel: Add include for used class
+
+---
+ src/nmmodel.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/nmmodel.cpp b/src/nmmodel.cpp
+index d779801..ac70307 100644
+--- a/src/nmmodel.cpp
++++ b/src/nmmodel.cpp
+@@ -45,6 +45,7 @@ COPYRIGHT_HEADER*/
+ #include <NetworkManagerQt/ConnectionSettings>
+ #include <QDBusPendingCallWatcher>
+ #include <QInputDialog>
++#include <QMetaEnum>
+
+ namespace
+ {
diff --git a/gui-apps/nm-tray/metadata.xml b/gui-apps/nm-tray/metadata.xml
new file mode 100644
index 000000000000..c67d4dcaca5b
--- /dev/null
+++ b/gui-apps/nm-tray/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bkohler@gentoo.org</email>
+ <name>Ben Kohler</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gui-apps/nm-tray/nm-tray-0.4.3.ebuild b/gui-apps/nm-tray/nm-tray-0.4.3.ebuild
new file mode 100644
index 000000000000..d18f9b26f666
--- /dev/null
+++ b/gui-apps/nm-tray/nm-tray-0.4.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="A simple Qt-based NetworkManager front-end"
+HOMEPAGE="https://github.com/palinek/nm-tray"
+SRC_URI="https://github.com/palinek/nm-tray/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+BDEPEND=">=dev-util/cmake-3.10"
+DEPEND="
+ dev-qt/linguist:5
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ kde-frameworks/networkmanager-qt
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/nm-tray-0.4.3-missing-include-qmetaenum.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DNM_TRAY_XDG_AUTOSTART_DIR=/etc/xdg/autostart
+ )
+
+ cmake_src_configure
+}