<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7172ce31b7275b102edfb925e707ab16cef55ad7">https://github.com/macports/macports-ports/commit/7172ce31b7275b102edfb925e707ab16cef55ad7</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7172ce31b7275b102edfb925e707ab16cef55ad7
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri Nov 3 19:56:46 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> qscintilla: prefer configure.args to patchfiles
</span>---
devel/qscintilla/Portfile | 20 +++++++-------------
devel/qscintilla/files/patch-add_debug.diff | 13 +------------
2 files changed, 8 insertions(+), 25 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/qscintilla/Portfile b/devel/qscintilla/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6562530..eda998b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/qscintilla/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/qscintilla/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,9 +34,7 @@ long_description QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ e
</span> distname QScintilla_gpl-${version}
master_sites sourceforge:pyqt
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# fix up QMake .pro files for +debug, if selected; also fixed up the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# library and header paths to include .. and ../Qt4 before others;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# also, don't include qscintilla2 via CONFIG, instead do it directly
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# don't include qscintilla2 via CONFIG, instead do it directly
</span> # to avoid linking against an already-installed library.
patchfiles-append patch-add_debug.diff
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,17 +44,13 @@ configure.cxxflags-append -std=c++11
</span> # respect configure.cxx_stdlib when linking
configure.ldflags-append -stdlib=${configure.cxx_stdlib}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # fix up .pro files to handle debug and release
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set build_type "release"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_isset debug]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set build_type "debug_and_release build_all"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s/@BUILD_TYPE@/${build_type}/" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/designer-Qt4Qt5/designer.pro
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s/@BUILD_TYPE@/${build_type}/" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/Qt4Qt5/qscintilla.pro
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset debug]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append CONFIG+="debug_and_release build_all"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append CONFIG+=release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span> # drop in a simple QMake file, for easy building
copy ${filespath}/Qsci.pro ${worksrcpath}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/qscintilla/files/patch-add_debug.diff b/devel/qscintilla/files/patch-add_debug.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 17cc224..a2416cb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/qscintilla/files/patch-add_debug.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/qscintilla/files/patch-add_debug.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@
</span> TARGET = qscintillaplugin
-CONFIG += plugin qscintilla2
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+CONFIG += plugin @BUILD_TYPE@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CONFIG += plugin
</span>
greaterThan(QT_MAJOR_VERSION, 4) {
QT += designer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,14 +25,3 @@
</span> +
+INCLUDEPATH += ../Qt4Qt5
+LIBS += -L../Qt4Qt5 -l$$QSCI_LIB
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- Qt4Qt5/qscintilla.pro.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ Qt4Qt5/qscintilla.pro
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -23,7 +23,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- !win32:VERSION = 13.0.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- TEMPLATE = lib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--CONFIG += qt warn_off thread exceptions hide_symbols
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+CONFIG += qt warn_off thread exceptions hide_symbols @BUILD_TYPE@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CONFIG(debug, debug|release) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mac: {
</span></pre><pre style='margin:0'>
</pre>