Ticket #33241: Portfile.diff

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

New patch using python subports. Tested for the case of python27 on Lion. Needs the corresponding version of omniORB (4.1.6) installed.

  • Portfile

    old new  
    22# $Id: Portfile 63453 2010-02-05 13:13:48Z stromnov@macports.org $
    33
    44PortSystem          1.0
     5PortGroup           python 1.0
    56
    67name                py-omniORBpy
    7 version             3.4
     8version             3.6
     9revision            0
    810categories          python devel
    911maintainers         stromnov openmaintainer
    1012description         Python bindings for omniORB
     
    1618
    1719distname            omniORBpy-${version}
    1820
    19 checksums           md5     d054e99c89c20f86927c52010e9e7449 \
    20                     sha1    e598bd25289d0a2a09da4c7241513202c8b9adb4 \
    21                     rmd160  5b389a31907510800ef0913e2e3855038e6a4cf9
    22 
    23 configure.python    ${prefix}/bin/python2.4
    24 
    25 depends_lib         port:omniORB \
    26                     port:python24
    27 
    28 patchfiles          patch-dir.mk
    29 
    30 variant ssl description {Enable SSL support} {
    31     configure.args-append   --with-openssl
    32     depends_lib-append      port:openssl
     21use_bzip2           yes
     22checksums           md5     a7ab4789b913313f18a1171ff7a140b7 \
     23                    sha1    2def5ded7cd30e8d298113ed450b7bd09eaaf26f \
     24                    rmd160  96b73cfcac7f2b8df2894c93b3e422bd85412251
     25
     26# Use the python subports feature but omniORBpy uses make
     27# rather than setup.py for building since there are compiled libraries.
     28# So the build procedure must unravel the python PortGroup settings
     29# and revert to values compatible with a make environment.
     30# Ugly but it works.
     31
     32python.versions     24 25 26 27
     33python.default_version 27
     34
     35if {$subport != $name} {
     36    depends_lib         port:omniORB \
     37                        port:python${python.version}
     38
     39    patchfiles          patch-dir.mk
     40
     41    use_configure       yes
     42
     43    build.type          gnu
     44    build.cmd           make
     45    build.target        all
     46    build.args          {}
     47
     48    destroot.cmd        ${build.cmd}
     49    destroot.target     install
     50    destroot.args       {}
     51    destroot.destdir    DESTDIR=${destroot}
     52
     53    variant ssl description {Enable SSL support} {
     54        configure.args-append   --with-openssl
     55        depends_lib-append      port:openssl
     56    }
     57    livecheck.type      none
     58} else {
     59    livecheck.type      regex
     60    livecheck.url       http://omniorb.sourceforge.net/releases/
     61    livecheck.regex     "omniORBpy-(\\d+(?:\\.\\d+)*)${extract.suffix}"
    3362}
    34 
    35 livecheck.type      regex
    36 livecheck.url       http://omniorb.sourceforge.net/releases/
    37 livecheck.regex     "omniORBpy-(\\d+(?:\\.\\d+)*)${extract.suffix}"