1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

x11-toolkits/py-wxPython30: Fix c++ code, drop gcc requirement

While here, upgrade from version 3.0.0 to 3.0.2
wxPython30 was obligated to build under c++11 standards, but the code
was not compliant.  It now builds on system clang again.

PR:		199403
Submitted by:	matthew (reztec.cz)
Approved by:	blanket (fixes previous "fix")
This commit is contained in:
John Marino 2015-04-14 06:43:09 +00:00
parent 681cec04e9
commit 4040163bd6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=383979
4 changed files with 35 additions and 6 deletions

View File

@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= wxPython
PORTVERSION= 3.0.0.0
PORTREVISION= 3
PORTVERSION= 3.0.2.0
CATEGORIES= x11-toolkits python
MASTER_SITES= SF/wxpython/wxPython/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -16,7 +15,7 @@ DIST_SUBDIR= python
WRKSRC= ${WRKDIR}/${DISTNAME}/wxPython
USES= python tar:bzip2
USES= compiler:c++11-lib python tar:bzip2
.if defined(WITH_WXVERSION_ONLY)
@ -42,7 +41,6 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wxPython-common>0:${PORTSDIR}/x11-toolkits/p
USES+= gettext pkgconfig
USE_WX= 3.0
USE_GCC= yes
WANT_UNICODE= yes
USE_PYTHON= distutils autoplist
PYDISTUTILS_BUILDARGS= WX_CONFIG="${WX_CONFIG}" \

View File

@ -1,2 +1,2 @@
SHA256 (python/wxPython-src-3.0.0.0.tar.bz2) = af88695e820dd914e8375dc91ecb736f6fb605979bb38460ace61bbea494dc11
SIZE (python/wxPython-src-3.0.0.0.tar.bz2) = 57831792
SHA256 (python/wxPython-src-3.0.2.0.tar.bz2) = d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61
SIZE (python/wxPython-src-3.0.2.0.tar.bz2) = 58304944

View File

@ -0,0 +1,20 @@
--- src/gtk/_gdi_wrap.cpp.orig 2015-04-12 18:02:36 UTC
+++ src/gtk/_gdi_wrap.cpp
@@ -3856,7 +3856,7 @@ const wxString& wxPyLocale::GetSingularS
const wxString& domain) const
{
bool found;
- wxString str( _T("error in translation"));
+ static wxString str( _T("error in translation"));
wxPyBlock_t blocked = wxPyBeginBlockThreads();
if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
PyObject* param1 = wx2PyString(origString);
@@ -3878,7 +3878,7 @@ const wxString& wxPyLocale::GetPluralStr
const wxString& domain) const
{
bool found;
- wxString str( _T("error in translation"));
+ static wxString str( _T("error in translation"));
wxPyBlock_t blocked = wxPyBeginBlockThreads();
if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
PyObject* param1 = wx2PyString(origString);

View File

@ -0,0 +1,11 @@
--- src/gtk/propgrid_wrap.cpp.orig 2014-11-27 20:51:32 UTC
+++ src/gtk/propgrid_wrap.cpp
@@ -3639,7 +3639,7 @@ bool PyObject_to_wxPGPropArgCls( PyObjec
}
else if ( input == Py_None )
{
- *v = new wxPGPropArgCls(reinterpret_cast< wxPGProperty * >(NULL));
+ *v = new wxPGPropArgCls(static_cast<wxPGProperty*>(NULL));
}
else
{