Ticket #43150: patch-wxPerl.diff

File patch-wxPerl.diff, 1.7 KB (added by mojca (Mojca Miklavec), 11 years ago)

patch for p5-wx and p5-alien-wxwidgets to fall back to wxWidgets 2.9.4

  • p5-alien-wxwidgets/Portfile

     
    2222checksums           rmd160  3a0e7e312ca2c141d20b66ae123af53b1602fad4 \
    2323                    sha256  b4772a319d78cd3c933e90d7bd2f766cd57216c5234abdfd2c43a10ba83c8f40
    2424
    25 # version 0.64 officially supports just wxWidgets versions up to 2.9.4
    26 # but this only seems to be related to patching (when fetching files on the fly)
    27 wxWidgets.use       wxWidgets-3.0
    2825# this is needed to use Build.Pl instead of Makefile.PL - the proper way (per author)
    2926# (else --wxWidgets-build=0 doesn't work)
    3027perl5.use_module_build
    3128
    3229if {${perl5.major} != ""} {
     30    # https://trac.macports.org/ticket/43150
     31    if {(${os.major} >= 13 && ${perl5.major} <= 5.16) || ${perl5.major} <= 5.14} {
     32        wxWidgets.use   wxPerl-3.0
     33    } else {
     34        wxWidgets.use   wxWidgets-3.0
     35    }
     36
    3337    depends_lib-append  port:${wxWidgets.port}
    3438
    3539    # author says that Makefile.PL shouldn't be there
  • p5-wx/Portfile

     
    2323                    sha256  93e974c7d5ae2c66fe2f3de14988d372cea5b9b5e3da6798776aa90efe7442c9
    2424
    2525if {${perl5.major} != ""} {
    26     wxWidgets.use       wxWidgets-3.0
     26    # https://trac.macports.org/ticket/43150
     27    if {(${os.major} >= 13 && ${perl5.major} <= 5.16) || ${perl5.major} <= 5.14} {
     28        wxWidgets.use   wxPerl-3.0
     29    } else {
     30        wxWidgets.use   wxWidgets-3.0
     31    }
    2732
    2833    depends_build-append \
    2934                        port:p${perl5.major}-extutils-xspp