Ticket #35818: Portfile.diff

File Portfile.diff, 2.2 KB (added by lockhart (Thomas Lockhart), 12 years ago)

Patch to select the proper version of python and to install into /opt/local/Library rather than into /opt/local/lib. Default to python-2.4 per Ryan.

  • Portfile

    old new  
    66
    77name                py-omniORBpy
    88version             3.6
    9 revision            0
     9revision            1
    1010categories-append   devel
    1111license             LGPL-2.1
    1212platforms           darwin
    1313supported_archs     i386 x86_64
    1414
    1515maintainers         stromnov openmaintainer
    16 
    1716description         Python bindings for omniORB
    18 
    1917long_description    omniORB is a robust high performance CORBA ORB for C++ and \
    2018                    Python. omniORB is largely CORBA 2.6 compliant.
    21 
    22                     homepage            http://omniorb.sourceforge.net/
     19homepage            http://omniorb.sourceforge.net/
    2320master_sites        sourceforge:project/omniorb/omniORBpy/omniORBpy-${version}
    2421
    2522distname            omniORBpy-${version}
     
    4845
    4946    patchfiles          patch-dir.mk
    5047
     48    use_configure       yes
     49
     50    # Exactly the same as the post-patch for omniORB
    5151    post-patch {
    52         # python libraries (PYTHON_PREFIX)
     52        reinplace "s|\\(\$(CXXLINKOPTIONS)\\)|\\1 [get_canonical_archflags cc]|g" \
     53            ${worksrcpath}/mk/beforeauto.mk.in
     54
     55        # reinplace "s|,prefix=\'\$PYTHON_PREFIX\'||g" ${worksrcpath}/configure
    5356        reinplace "s|get_python_lib(0,\[^)\]*)|get_python_lib()|g" \
    5457            ${worksrcpath}/configure
    55         # compiled libraries to support python (PYTHON_EXEC_PREFIX)
     58        # reinplace "s|,prefix=\'\$PYTHON_EXEC_PREFIX\'||g" ${worksrcpath}/configure
    5659        reinplace "s|get_python_lib(1,\[^)\]*)|get_python_lib()|g" \
    5760            ${worksrcpath}/configure
     61        if {[variant_isset universal]} {
     62#             system "cd ${worksrcpath} && ed - ./include/omniconfig.h.in < ${filespath}/include_omniconfig.h.in.ed"
     63        }
    5864    }
    5965
    60     use_configure       yes
     66    configure.args-append PYTHON=${python.bin}
    6167
    6268    build.type          gnu
    6369    build.cmd           make
     
    7379        configure.args-append   --with-openssl
    7480        depends_lib-append      port:openssl
    7581    }
    76 
    7782    livecheck.type      none
    7883} else {
    7984    livecheck.type      regex