summaryrefslogtreecommitdiff
path: root/app-text/highlight/files/highlight-3.42-qmake-fix.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/highlight/files/highlight-3.42-qmake-fix.patch
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/highlight/files/highlight-3.42-qmake-fix.patch')
-rw-r--r--app-text/highlight/files/highlight-3.42-qmake-fix.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/app-text/highlight/files/highlight-3.42-qmake-fix.patch b/app-text/highlight/files/highlight-3.42-qmake-fix.patch
new file mode 100644
index 000000000000..31970057d9a6
--- /dev/null
+++ b/app-text/highlight/files/highlight-3.42-qmake-fix.patch
@@ -0,0 +1,32 @@
+From 8464afed560fa1096d37aa82aef99c00819fec87 Mon Sep 17 00:00:00 2001
+From: Chris Mayo <aklhfex@gmail.com>
+Date: Fri, 2 Mar 2018 19:15:35 +0000
+Subject: [PATCH] fix directories passed to qmake being ignored
+
+contains() matches the whole value, add regular expressions for the path
+components.
+---
+ src/gui-qt/highlight.pro | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/gui-qt/highlight.pro b/src/gui-qt/highlight.pro
+index bae8d7c..0380a90 100644
+--- a/src/gui-qt/highlight.pro
++++ b/src/gui-qt/highlight.pro
+@@ -43,13 +43,13 @@ unix {
+ PKGCONFIG += lua
+
+ # to make it run within Qt Creator
+- !contains(DEFINES, DATA_DIR) {
++ !contains(DEFINES, DATA_DIR.*) {
+ DEFINES+=DATA_DIR=\\\"/usr/share/highlight/\\\"
+ }
+- !contains(DEFINES, CONFIG_DIR) {
++ !contains(DEFINES, CONFIG_DIR.*) {
+ DEFINES+=CONFIG_DIR=\\\"/etc/highlight/\\\"
+ }
+- !contains(DEFINES, DOC_DIR) {
++ !contains(DEFINES, DOC_DIR.*) {
+ DEFINES+=DOC_DIR=\\\"/usr/share/doc/highlight/\\\"
+ }
+ }