summaryrefslogtreecommitdiff
path: root/dev-util/cutter/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-04-05 21:17:31 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-04-05 21:17:31 +0100
commitdc7cbdfa65fd814b3b9aa3c56257da201109e807 (patch)
treec85d72f6f31f21f178069c9d41d41a7c1ff4b362 /dev-util/cutter/files
parent0706fc6986773f4e4d391deff4ad5143c464ea4e (diff)
gentoo resync : 05.04.2019
Diffstat (limited to 'dev-util/cutter/files')
-rw-r--r--dev-util/cutter/files/cutter-1.8.0-python3-config.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-util/cutter/files/cutter-1.8.0-python3-config.patch b/dev-util/cutter/files/cutter-1.8.0-python3-config.patch
new file mode 100644
index 000000000000..e2ab05564721
--- /dev/null
+++ b/dev-util/cutter/files/cutter-1.8.0-python3-config.patch
@@ -0,0 +1,31 @@
+diff -Naur cutter-1.8.0-orig/src/Cutter.pro cutter-1.8.0/src/Cutter.pro
+--- cutter-1.8.0-orig/src/Cutter.pro 2019-03-27 12:14:42.436446303 -0400
++++ cutter-1.8.0/src/Cutter.pro 2019-03-27 12:16:26.971448895 -0400
+@@ -118,10 +118,6 @@
+ # Libraries
+ include(lib_radare2.pri)
+
+-!win32 {
+- CONFIG += link_pkgconfig
+-}
+-
+ CUTTER_ENABLE_PYTHON {
+ win32 {
+ PYTHON_EXECUTABLE = $$system("where python", lines)
+@@ -140,10 +136,13 @@
+ LIBS += -F$$PYTHON_FRAMEWORK_DIR -framework Python
+ DEFINES += MACOS_PYTHON_FRAMEWORK_BUNDLED
+ } else {
+- !packagesExist(python3) {
+- error("ERROR: Python 3 could not be found. Make sure it is available to pkg-config.")
++ system(type python3-config) {
++ LIBS += $$system(python3-config --libs)
++ TMP = $$system(python3-config --includes)
++ INCLUDEPATH += $$replace(TMP, "-I", "")
++ } else {
++ error("ERROR: Python 3 could not be found. Make sure it is available to python3-config.")
+ }
+- PKGCONFIG += python3
+ }
+ }
+