[109950] trunk/dports/python/py-pyqwt/Portfile
michaelld at macports.org
michaelld at macports.org
Thu Aug 22 12:19:12 PDT 2013
Revision: 109950
https://trac.macports.org/changeset/109950
Author: michaelld at macports.org
Date: 2013-08-22 12:19:12 -0700 (Thu, 22 Aug 2013)
Log Message:
-----------
py*-pyqwt:
* fix to use the right compiler;
* (temporary?) fix with sip 4.15.0_0 which generates extra interface
code for a hidden overloaded virtual function;
* correct -universal compiling when Python is installed with +universal;
* fix livecheck.
Modified Paths:
--------------
trunk/dports/python/py-pyqwt/Portfile
Modified: trunk/dports/python/py-pyqwt/Portfile
===================================================================
--- trunk/dports/python/py-pyqwt/Portfile 2013-08-22 18:19:57 UTC (rev 109949)
+++ trunk/dports/python/py-pyqwt/Portfile 2013-08-22 19:19:12 UTC (rev 109950)
@@ -6,7 +6,7 @@
name py-pyqwt
version 5.2.0
-revision 5
+revision 6
platforms macosx
categories-append devel
@@ -55,9 +55,45 @@
# does not work with Qwt 6 (any longer; not sure if it ever did).
depends_lib-append path:lib/libqwt.5.dylib:qwt52
- livecheck.type none
-} else {
- livecheck.type regex
- livecheck.url ${homepage}
- livecheck.regex {PyQwt-([0-9\.]+)\.tar\.gz}
+ post-configure {
+
+ # fix compiler
+
+ reinplace "s at CC = .*@CC = ${configure.cc}@" ${worksrcpath}/qwt5qt4/Makefile
+ reinplace "s at CXX = .*@CXX = ${configure.cxx}@" ${worksrcpath}/qwt5qt4/Makefile
+ reinplace "s at LINK = .*@LINK = ${configure.cxx}@" ${worksrcpath}/qwt5qt4/Makefile
+ reinplace "s at CC = .*@CC = ${configure.cc}@" ${worksrcpath}/iqt5qt4/Makefile
+ reinplace "s at CXX = .*@CXX = ${configure.cxx}@" ${worksrcpath}/iqt5qt4/Makefile
+ reinplace "s at LINK = .*@LINK = ${configure.cxx}@" ${worksrcpath}/iqt5qt4/Makefile
+
+ # if not universal, try removing all arch flags from the
+ # Makefiles. If Python is installed as +universal, these will
+ # do the trick; if Python is installed as -universal, then
+ # these will do no harm.
+
+ if {![variant_isset universal]} {
+ reinplace "s at -arch \[^ \]*@@g" ${worksrcpath}/qwt5qt4/Makefile
+ reinplace "s at -arch \[^ \]*@@g" ${worksrcpath}/iqt5qt4/Makefile
+ }
+
+ # fix issue with sip 4.15.0_0 which generates extra interface
+ # code for a hidden overloaded virtual function.
+
+ reinplace "s@\\(.*void.*move.const\\)@#if 0\\
+\\1 at 1" ${worksrcpath}/qwt5qt4/sipQwtQwtPlotZoomer.cpp
+
+ reinplace "s@\\(.*void.*move.const\\)@#if 0\\
+\\1 at 1" ${worksrcpath}/tmp-qwt5qt4/sipQwtQwtPlotZoomer.cpp
+
+ reinplace "s@\\(.*void.*append.const\\)@#endif\\
+\\1 at 1" ${worksrcpath}/qwt5qt4/sipQwtQwtPlotZoomer.cpp
+
+ reinplace "s@\\(.*void.*append.const\\)@#endif\\
+\\1 at 1" ${worksrcpath}/tmp-qwt5qt4/sipQwtQwtPlotZoomer.cpp
+
+ }
}
+
+livecheck.type regex
+livecheck.url ${homepage}
+livecheck.regex PyQwt-(\[0-9\.\]+)\.tar\.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130822/7d710f3a/attachment.html>
More information about the macports-changes
mailing list