Changeset 37863


Ignore:
Timestamp:
Jun 26, 2008, 10:05:17 PM (12 years ago)
Author:
blair@…
Message:

Now that MacPorts has a framework Python 2.5 build, the Ice bindings
to them can be built.

Location:
trunk/dports/devel/ice-python25
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/ice-python25/Portfile

    r37862 r37863  
    33PortSystem 1.0
    44
    5 name            ice-python
     5name            ice-python25
    66version         3.3.0
    7 revision        1
    87categories      devel python
    98maintainers     blair
     
    3837platforms       darwin
    3938
    40 depends_lib     port:python24 \
     39depends_lib     port:python25 \
    4140                port:ice-cpp
    4241
     
    4544
    4645post-patch {
    47         reinplace "s#python Client.py#${prefix}/bin/python2.4 Client.py#" \
     46        reinplace "s#python Client.py#${prefix}/bin/python2.5 Client.py#" \
    4847                ${worksrcpath}/py/test/Slice/keyword/run.py
    4948}
     
    5453build.target    prefix="${prefix}" \
    5554                ICE_HOME="${prefix}" \
    56                 PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.4" \
    57                 PYTHON_VERSION=python2.4 \
     55                PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.5" \
     56                PYTHON_VERSION=python2.5 \
    5857                OPTIMIZE="yes" \
    5958                all
     
    6261test.dir        ${worksrcpath}/py
    6362test.env        ICE_HOME=${prefix}
    64 test.cmd        ${prefix}/bin/python2.4
     63test.cmd        ${prefix}/bin/python2.5
    6564test.target     allTests.py
    6665
     
    6867destroot.target prefix="${destroot}${prefix}" \
    6968                ICE_HOME="${prefix}" \
    70                 PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.4" \
    71                 PYTHON_VERSION=python2.4 \
     69                PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.5" \
     70                PYTHON_VERSION=python2.5 \
    7271                OPTIMIZE="yes" \
    7372                install
     
    8180        xinstall -m 755 -d ${docdir}
    8281
    83         file mkdir ${destroot}${prefix}/lib/python2.4
    84         file rename ${destroot}${prefix}/python ${destroot}${prefix}/lib/python2.4/site-packages
     82        file mkdir ${destroot}${prefix}/lib/python2.5
     83        file rename ${destroot}${prefix}/python ${destroot}${prefix}/lib/python2.5/site-packages
    8584
    86         set cmd "${prefix}/bin/python2.4 \
    87                 ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py \
    88                 ${destroot}${prefix}/lib/python2.4/site-packages"
     85        set cmd "${prefix}/bin/python2.5 \
     86                ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/compileall.py \
     87                ${destroot}${prefix}/lib/python2.5/site-packages"
    8988        ui_debug ${cmd}
    9089        system ${cmd}
    9190
    92         set cmd "${prefix}/bin/python2.4 -O \
    93                 ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py \
    94                 ${destroot}${prefix}/lib/python2.4/site-packages"
     91        set cmd "${prefix}/bin/python2.5 -O \
     92                ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/compileall.py \
     93                ${destroot}${prefix}/lib/python2.5/site-packages"
    9594        ui_debug ${cmd}
    9695        system ${cmd}
Note: See TracChangeset for help on using the changeset viewer.