aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2018-08-05 15:26:01 +0800
committermakc <makc@FreeBSD.org>2018-08-05 15:26:01 +0800
commit8a6b61620d135d8405367816f3e76b40a3626557 (patch)
tree3a34b1e8f12ef94b66b475da8300e2f0671d1369 /graphics
parentfc018db799e718c01bfc31ba16e9ae40e1e95c87 (diff)
downloadfreebsd-ports-gnome-8a6b61620d135d8405367816f3e76b40a3626557.tar.gz
freebsd-ports-gnome-8a6b61620d135d8405367816f3e76b40a3626557.tar.zst
freebsd-ports-gnome-8a6b61620d135d8405367816f3e76b40a3626557.zip
graphics/klatexformula:
- Add patch to fix build with clang 6 PR: 228393 Approved by: maintainer timeout (hrs)
Diffstat (limited to 'graphics')
-rw-r--r--graphics/klatexformula/files/patch-src_klftools_klfutil.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/klatexformula/files/patch-src_klftools_klfutil.cpp b/graphics/klatexformula/files/patch-src_klftools_klfutil.cpp
new file mode 100644
index 000000000000..193587336150
--- /dev/null
+++ b/graphics/klatexformula/files/patch-src_klftools_klfutil.cpp
@@ -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