Skip to content

Commit

Permalink
py-pyqwt: add patch to update for modern SIP
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelld committed Feb 22, 2019
1 parent 7e2c425 commit bfaaee1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/py-pyqwt/Portfile
Expand Up @@ -39,8 +39,12 @@ if {${name} ne ${subport}} {
port:py${python.version}-numpy \
port:py${python.version}-sip

worksrcdir ${worksrcdir}/configure

patchfiles patch-sip_qwt5qt4_QwtModule.sip.diff

pre-configure {
worksrcdir ${worksrcdir}/configure
}

configure.cmd ${prefix}/bin/python${python.branch} configure.py
configure.pre_args -I ${prefix}/include -I ${prefix}/include/qwt -I ${prefix}/include/python${python.branch} -L ${prefix}/lib --disable-numarray --disable-numeric
configure.universal_args-delete --disable-dependency-tracking
Expand Down
31 changes: 31 additions & 0 deletions python/py-pyqwt/files/patch-sip_qwt5qt4_QwtModule.sip.diff
@@ -0,0 +1,31 @@
--- sip/iqt5qt4/IQtModule.sip.orig
+++ sip/iqt5qt4/IQtModule.sip
@@ -29,7 +29,7 @@
// PyQwt becomes a free plug-in for a non-free program.


-%Module PyQt4.Qwt5._iqt 0
+%Module(name=PyQt4.Qwt5._iqt)

%ModuleCode
#include <qcoreapplication.h>
--- sip/qwt5qt4/QwtModule.sip.orig
+++ sip/qwt5qt4/QwtModule.sip
@@ -29,7 +29,7 @@
// PyQwt becomes a free plug-in for a non-free program.


-%Module PyQt4.Qwt5.Qwt 0
+%Module(name=PyQt4.Qwt5.Qwt)

%Timeline {Qwt_5_0_0 Qwt_5_0_1 Qwt_5_0_3 Qwt_5_1_0 Qwt_5_1_1 Qwt_5_2_0}

@@ -49,7 +49,7 @@
%End // HAS_QWT_SVG


-%Include QwtTypes.sip
+ // %Include QwtTypes.sip

%ModuleHeaderCode
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)

0 comments on commit bfaaee1

Please sign in to comment.