Ticket #35818: patch-omniORB-pyomniORB-4.2.0.diff

File patch-omniORB-pyomniORB-4.2.0.diff, 3.2 KB (added by pixilla (Bradley Giesbrecht), 10 years ago)
  • devel/omniORB/Portfile

     
    44PortSystem          1.0
    55
    66name                omniORB
    7 version             4.1.6
    8 revision            2
     7version             4.2.0
    98categories          devel
    109platforms           darwin
    1110# executables are GPL, libs are LGPL
     
    2019homepage            http://omniorb.sourceforge.net/
    2120master_sites        sourceforge:omniorb
    2221
    23 checksums           rmd160  a0ba42721a1932d29abeb37dff0dc3ea7a9ddce6 \
    24                     sha256  749c5e615130c804e40f4028104c1f98469613ff32a7f81562d06e669ba0b2c1
     22checksums           rmd160  0f9c18c95df9718d3a3b960cf24e1732a851a23d \
     23                    sha256  74c273fc997c2881b128feb52182dbe067acfecc4cf37475f43c104338eba8bc
    2524
    2625use_bzip2           yes
    2726
  • python/py-omniORBpy/Portfile

     
    55PortGroup           python 1.0
    66
    77name                py-omniORBpy
    8 version             3.6
    9 revision            0
     8version             4.2.0
    109categories-append   devel
    1110license             LGPL-2.1
    1211platforms           darwin
     
    2423
    2524distname            omniORBpy-${version}
    2625
    27 checksums           rmd160  96b73cfcac7f2b8df2894c93b3e422bd85412251 \
    28                     sha256  b845eef13b56dfb47c98d65636ede5155ed4b84b2a64e35831b94668878af7c7
     26checksums           rmd160  4359c1723126e74f06fadf9f24bc884819de7f85 \
     27                    sha256  c82b3bafacbb93cfaace41765219155f2b24eb3781369bba0581feb1dc50fe5e
    2928
    3029use_bzip2           yes
    3130
     
    3635# Ugly but it works.
    3736
    3837python.versions     24 25 26 27
    39 python.default_version 24
     38python.default_version 27
    4039
    4140if {${name} ne ${subport}} {
     41
     42    PortGroup           active_variants 1.1
     43    require_active_variants omniORB python${python.version}
    4244    notes \
    4345"${name} must be compatible with the corresponding omniORB installation.
    4446Ensure that the same python version has been specified for the omniORB variant."
     
    4850
    4951    patchfiles          patch-dir.mk
    5052
     53    use_configure       yes
     54
     55    # Exactly the same as the post-patch for omniORB
    5156    post-patch {
    52         # python libraries (PYTHON_PREFIX)
     57        reinplace "s|\\(\$(CXXLINKOPTIONS)\\)|\\1 [get_canonical_archflags cc]|g" \
     58            ${worksrcpath}/mk/beforeauto.mk.in
     59
     60        # reinplace "s|,prefix=\'\$PYTHON_PREFIX\'||g" ${worksrcpath}/configure
    5361        reinplace "s|get_python_lib(0,\[^)\]*)|get_python_lib()|g" \
    5462            ${worksrcpath}/configure
    55         # compiled libraries to support python (PYTHON_EXEC_PREFIX)
     63        # reinplace "s|,prefix=\'\$PYTHON_EXEC_PREFIX\'||g" ${worksrcpath}/configure
    5664        reinplace "s|get_python_lib(1,\[^)\]*)|get_python_lib()|g" \
    5765            ${worksrcpath}/configure
     66        if {[variant_isset universal]} {
     67#             system "cd ${worksrcpath} && ed - ./include/omniconfig.h.in < ${filespath}/include_omniconfig.h.in.ed"
     68        }
    5869    }
    5970
    60     use_configure       yes
     71    configure.args-append PYTHON=${python.bin}
    6172
    6273    build.type          gnu
    6374    build.cmd           make