svn commit: r532922 - in head/editors/calligra: . files
Tobias C. Berner
tcberner at FreeBSD.org
Sat Apr 25 08:25:51 UTC 2020
Author: tcberner
Date: Sat Apr 25 08:25:50 2020
New Revision: 532922
URL: https://svnweb.freebsd.org/changeset/ports/532922
Log:
editors/calligra: add upstream patch to get rid of some (harmless) Qt warnings
Added:
head/editors/calligra/files/
head/editors/calligra/files/patch-git_f155131 (contents, props changed)
Modified:
head/editors/calligra/Makefile
Modified: head/editors/calligra/Makefile
==============================================================================
--- head/editors/calligra/Makefile Sat Apr 25 08:16:34 2020 (r532921)
+++ head/editors/calligra/Makefile Sat Apr 25 08:25:50 2020 (r532922)
@@ -2,6 +2,7 @@
PORTNAME= calligra
DISTVERSION= 3.2.0
+PORTREVISION= 1
CATEGORIES= editors kde
MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}
DIST_SUBDIR= KDE/${PORTNAME}
Added: head/editors/calligra/files/patch-git_f155131
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/calligra/files/patch-git_f155131 Sat Apr 25 08:25:50 2020 (r532922)
@@ -0,0 +1,99 @@
+From f155131434718951e1c4517eedce15a1a9d142a2 Mon Sep 17 00:00:00 2001
+From: David Faure <faure at kde.org>
+Date: Fri, 24 Apr 2020 20:42:09 +0200
+Subject: Fix QCommandLineParser warnings.
+
+KAboutData::setupCommandLine already adds these options, since KF 5.7
+(which is required here so no problem).
+Doing it twice didn't use to warn, but Qt now warns about this.
+---
+ braindump/src/main.cpp | 3 ---
+ extras/calligra/main.cpp | 2 --
+ extras/converter/calligraconverter.cpp | 2 --
+ gemini/main.cpp | 2 --
+ gemini/thumbnailhelper.cpp | 2 --
+ libs/main/KoApplication.cpp | 2 --
+ 6 files changed, 13 deletions(-)
+
+diff --git a/braindump/src/main.cpp b/braindump/src/main.cpp
+index 5fd3fb4..aed544f 100644
+--- braindump/src/main.cpp
++++ braindump/src/main.cpp
+@@ -58,9 +58,6 @@ int main(int argc, char **argv)
+ KAboutData::setApplicationData(about);
+
+ QCommandLineParser parser;
+-
+- parser.addVersionOption();
+- parser.addHelpOption();
+ about.setupCommandLine(&parser);
+
+ parser.process(app);
+diff --git a/extras/calligra/main.cpp b/extras/calligra/main.cpp
+index fcdc19b..7c633f5 100644
+--- extras/calligra/main.cpp
++++ extras/calligra/main.cpp
+@@ -186,8 +186,6 @@ int main( int argc, char **argv )
+
+ QCommandLineParser parser;
+ aboutData.setupCommandLine(&parser);
+- parser.addHelpOption();
+- parser.addVersionOption();
+
+ parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("apps"), i18n("Lists names of all available Calligra applications")));
+ parser.addPositionalArgument(QStringLiteral("[FILE(S)]"), i18n("Files to open"));
+diff --git a/extras/converter/calligraconverter.cpp b/extras/converter/calligraconverter.cpp
+index cfd604c..3a2cdbf 100644
+--- extras/converter/calligraconverter.cpp
++++ extras/converter/calligraconverter.cpp
+@@ -167,8 +167,6 @@ int main(int argc, char **argv)
+
+ QCommandLineParser parser;
+ aboutData.setupCommandLine(&parser);
+- parser.addHelpOption();
+- parser.addVersionOption();
+
+ parser.addPositionalArgument(QStringLiteral("in"), i18n("Input file"));
+ parser.addPositionalArgument(QStringLiteral("out"), i18n("Output file"));
+diff --git a/gemini/main.cpp b/gemini/main.cpp
+index 9187b66..8cb6df7 100644
+--- gemini/main.cpp
++++ gemini/main.cpp
+@@ -62,8 +62,6 @@ int main( int argc, char** argv )
+
+ QCommandLineParser parser;
+ aboutData.setupCommandLine(&parser);
+- parser.addHelpOption();
+- parser.addVersionOption();
+
+ parser.addPositionalArgument(QStringLiteral("[file(s)]"), i18n("Document to open"));
+ parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("vkb"), i18n("Use the virtual keyboard")));
+diff --git a/gemini/thumbnailhelper.cpp b/gemini/thumbnailhelper.cpp
+index a552cd6..0d878bf 100644
+--- gemini/thumbnailhelper.cpp
++++ gemini/thumbnailhelper.cpp
+@@ -68,8 +68,6 @@ int main( int argc, char** argv )
+
+ QCommandLineParser parser;
+ aboutData.setupCommandLine(&parser);
+- parser.addHelpOption();
+- parser.addVersionOption();
+
+ parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("in"), i18n("Document to thumbnail"), QStringLiteral("local-url")));
+ parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("out"), i18n("The full path for the thumbnail file"), QStringLiteral("local-url")));
+diff --git a/libs/main/KoApplication.cpp b/libs/main/KoApplication.cpp
+index a8416e0..856e8e6 100644
+--- libs/main/KoApplication.cpp
++++ libs/main/KoApplication.cpp
+@@ -207,8 +207,6 @@ bool KoApplication::start()
+ // process commandline parameters
+ QCommandLineParser parser;
+ aboutData.setupCommandLine(&parser);
+- parser.addHelpOption();
+- parser.addVersionOption();
+
+ parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("print"), i18n("Only print and exit")));
+ parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("template"), i18n("Open a new document based on the given template (desktopfile name)")));
+--
+cgit v1.1
+
More information about the svn-ports-all
mailing list