Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2018 07:26:02 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r476393 - head/graphics/klatexformula/files
Message-ID:  <201808050726.w757Q2MN044126@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Sun Aug  5 07:26:01 2018
New Revision: 476393
URL: https://svnweb.freebsd.org/changeset/ports/476393

Log:
  graphics/klatexformula:
  - Add patch to fix build with clang 6
  
  PR:		228393
  Approved by:	maintainer timeout (hrs)

Added:
  head/graphics/klatexformula/files/
  head/graphics/klatexformula/files/patch-src_klftools_klfutil.cpp   (contents, props changed)

Added: head/graphics/klatexformula/files/patch-src_klftools_klfutil.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/klatexformula/files/patch-src_klftools_klfutil.cpp	Sun Aug  5 07:26:01 2018	(r476393)
@@ -0,0 +1,20 @@
+--- src/klftools/klfutil.cpp.orig	2014-07-28 22:23:49 UTC
++++ src/klftools/klfutil.cpp
+@@ -853,7 +853,7 @@ KLF_EXPORT QVariant klfLoadVariantFromTe
+ 		 //                       3
+ 		 "(?:" RX_COORD_SEP "|\\s*([+])\\s*)"
+ 		 //4                                5         6
+-		 "(" RX_INT ")(?:"RX_COORD_SEP"|\\s*([x])\\s*)(" RX_INT ")\\s*\\)?");
++		 "(" RX_INT ")(?:" RX_COORD_SEP "|\\s*([x])\\s*)(" RX_INT ")\\s*\\)?");
+   static const int RECTRX_X1 = 1, RECTRX_Y1 = 2, RECTRX_MIDDLESEP_PLUS = 3,
+     RECTRX_X2orW = 4, RECTRX_LASTSEP_X = 5, RECTRX_Y2orH = 6;
+ 
+@@ -866,7 +866,7 @@ KLF_EXPORT QVariant klfLoadVariantFromTe
+   //                                       1                                2                     3
+   QRegExp brushrx("^(?:q?brush)?\\(?\\s*(?:([A-Za-z_]\\w*)" RX_COORD_SEP ")?(\\d+)" RX_COORD_SEP "(\\d+)"
+ 		  //            4         5               6
+-		  RX_COORD_SEP "(\\d+)"  "("RX_COORD_SEP "(\\d+))?" "\\s*\\)?", Qt::CaseInsensitive);
++		  RX_COORD_SEP "(\\d+)"  "(" RX_COORD_SEP "(\\d+))?" "\\s*\\)?", Qt::CaseInsensitive);
+   static const int BRUSHRX_STYLE = 1, BRUSHRX_R = 2, BRUSHRX_G = 3, BRUSHRX_B = 4, BRUSHRX_A = 6;
+ 
+   //               1           2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808050726.w757Q2MN044126>