aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorvg <vg@FreeBSD.org>2016-08-23 14:57:24 +0800
committervg <vg@FreeBSD.org>2016-08-23 14:57:24 +0800
commitd2867136e088b0f574b46d87bb4c281ff9cc12a1 (patch)
tree4a782259169ca1c82d6c8949d6cd73c18c2edf22 /graphics
parent39d3cee249bb54a0681bd73a312031ca2a34544c (diff)
downloadfreebsd-ports-gnome-d2867136e088b0f574b46d87bb4c281ff9cc12a1.tar.gz
freebsd-ports-gnome-d2867136e088b0f574b46d87bb4c281ff9cc12a1.tar.zst
freebsd-ports-gnome-d2867136e088b0f574b46d87bb4c281ff9cc12a1.zip
- Add patch to tolerate file:// in command line arg.
PR: ports/210968 Submitted by: Jason Bacon <bacon4000@gmail.com>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/qiviewer/Makefile2
-rw-r--r--graphics/qiviewer/files/patch-main.cpp13
2 files changed, 14 insertions, 1 deletions
diff --git a/graphics/qiviewer/Makefile b/graphics/qiviewer/Makefile
index 59bb982c3740..b92d5acf06c7 100644
--- a/graphics/qiviewer/Makefile
+++ b/graphics/qiviewer/Makefile
@@ -3,7 +3,7 @@
PORTNAME= qiviewer
PORTVERSION= 0.5.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= GOOGLE_CODE
diff --git a/graphics/qiviewer/files/patch-main.cpp b/graphics/qiviewer/files/patch-main.cpp
new file mode 100644
index 000000000000..e33b65228af9
--- /dev/null
+++ b/graphics/qiviewer/files/patch-main.cpp
@@ -0,0 +1,13 @@
+--- main.cpp.orig 2011-05-19 03:38:25 UTC
++++ main.cpp
+@@ -115,6 +115,10 @@ int main(int argc, char *argv[])
+
+ else if (next_option == -1)
+ {
++ // Strip file://, added by some file browsers
++ if ( memcmp(argv[1], "file://", 7) == 0 )
++ memmove(argv[1], argv[1]+7, strlen(argv[1]) - 6);
++ puts(argv[1]);
+ MainWindow imageViewer;
+ if (QApplication::arguments().size() > 1)
+ imageViewer.openImageFromCommandLine(QApplication::arguments());