summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Kalugin <38429428+pavel-the-best@users.noreply.github.com>2020-05-25 21:48:18 +0300
committerMaxim Koltsov <maksbotan@gentoo.org>2020-05-28 21:36:56 +0300
commitc8519f723d963b46b3ff2137d9ac7d498af94a57 (patch)
tree4f5d321903d324105f30ec8717f7ea95f4a8e4df /media-gfx/flameshot/files
parentdev-python/csv23: Remove old (diff)
downloadgentoo-c8519f723d963b46b3ff2137d9ac7d498af94a57.tar.gz
gentoo-c8519f723d963b46b3ff2137d9ac7d498af94a57.tar.bz2
gentoo-c8519f723d963b46b3ff2137d9ac7d498af94a57.zip
media-gfx/flameshot: new package
Signed-off-by: Pavel Kalugin <paul.kalug@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/15968 Signed-off-by: Maxim Koltsov <maksbotan@gentoo.org>
Diffstat (limited to 'media-gfx/flameshot/files')
-rw-r--r--media-gfx/flameshot/files/flameshot-0.6.0-unbundle-qtsingleapplication.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/media-gfx/flameshot/files/flameshot-0.6.0-unbundle-qtsingleapplication.patch b/media-gfx/flameshot/files/flameshot-0.6.0-unbundle-qtsingleapplication.patch
new file mode 100644
index 000000000000..7973aa1d06c8
--- /dev/null
+++ b/media-gfx/flameshot/files/flameshot-0.6.0-unbundle-qtsingleapplication.patch
@@ -0,0 +1,47 @@
+diff -ruN a/flameshot.pro b/flameshot.pro
+--- a/flameshot.pro 2020-05-25 21:16:54.044214597 +0300
++++ b/flameshot.pro 2020-05-25 21:25:03.808676488 +0300
+@@ -18,7 +18,7 @@
+ QT += dbus
+ }
+
+-CONFIG += c++11 link_pkgconfig
++CONFIG += c++11 link_pkgconfig qtsingleapplication
+
+ #CONFIG += packaging # Enables "make install" for packaging paths
+
+@@ -63,7 +63,6 @@
+
+ DEFINES += QT_DEPRECATED_WARNINGS
+
+-include(src/third-party/singleapplication/singleapplication.pri)
+ include(src/third-party/Qt-Color-Widgets//color_widgets.pri)
+
+ DEFINES += QAPPLICATION_CLASS=QApplication
+diff -ruN a/src/main.cpp b/src/main.cpp
+--- a/src/main.cpp 2020-05-25 21:16:54.055215952 +0300
++++ b/src/main.cpp 2020-05-25 21:25:35.095744395 +0300
+@@ -16,13 +16,13 @@
+ // along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
+
+ #include "src/core/controller.h"
+-#include "singleapplication.h"
+ #include "src/utils/filenamehandler.h"
+ #include "src/utils/confighandler.h"
+ #include "src/cli/commandlineparser.h"
+ #include "src/utils/systemnotification.h"
+ #include "src/utils/pathinfo.h"
+ #include "src/core/capturerequest.h"
++#include <QtSingleApplication>
+ #include <QApplication>
+ #include <QTranslator>
+ #include <QTextStream>
+@@ -44,7 +44,7 @@
+
+ // no arguments, just launch Flameshot
+ if (argc == 1) {
+- SingleApplication app(argc, argv);
++ QtSingleApplication app(argc, argv);
+
+ QTranslator translator;
+ QStringList trPaths = PathInfo::translationsPaths();