svn commit: r420650 - in head/graphics/qiviewer: . files

Veniamin Gvozdikov vg at FreeBSD.org
Tue Aug 23 06:57:25 UTC 2016


Author: vg
Date: Tue Aug 23 06:57:24 2016
New Revision: 420650
URL: https://svnweb.freebsd.org/changeset/ports/420650

Log:
  - Add patch to tolerate file:// in command line arg.
  
  PR:		ports/210968
  Submitted by:	Jason Bacon <bacon4000 at gmail.com>

Added:
  head/graphics/qiviewer/files/
  head/graphics/qiviewer/files/patch-main.cpp   (contents, props changed)
Modified:
  head/graphics/qiviewer/Makefile

Modified: head/graphics/qiviewer/Makefile
==============================================================================
--- head/graphics/qiviewer/Makefile	Tue Aug 23 06:17:33 2016	(r420649)
+++ head/graphics/qiviewer/Makefile	Tue Aug 23 06:57:24 2016	(r420650)
@@ -3,7 +3,7 @@
 
 PORTNAME=	qiviewer
 PORTVERSION=	0.5.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	graphics
 MASTER_SITES=	GOOGLE_CODE
 

Added: head/graphics/qiviewer/files/patch-main.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/qiviewer/files/patch-main.cpp	Tue Aug 23 06:57:24 2016	(r420650)
@@ -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());


More information about the svn-ports-all mailing list