Ice-python version 3.3.1 - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    ice-python  most recent diff


    version 3.3.1

      View the most recent changes for the ice-python port at: ice-python.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for ice-python.
      The raw portfile for ice-python 3.3.1 is located here:
      http://ice-python.darwinports.com/dports/devel/ice-python/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/ice-python


      The ice-python Portfile 52985 2009-06-27 04:09:34Z blair macports.org $

      PortSystem 1.0

      Name: ice-python
      Version: 3.3.1
      Category: devel python
      Maintainers: blair
      Description: Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP

      Long Description: The Internet Communications Engine (Ice) is a modern alternative to object middleware such as CORBA or COM/DCOM/COM+, with support for C++, C#, Java, PHP, Python, Ruby and Visual Basic. Ice consists of the following packages. Slice: The Specification Language for Ice. Slice establishes a contract between clients and servers, and is also used to describe persistent data. Slice Compilers: Slice specifications are compiled into various programming languages. Ice supports C++, Java, C#, Visual Basic, PHP, Python and Ruby. Ice clients and servers work together, regardless of the programming language. Ice: The Ice core library manages all the communication tasks using a highly efficient protocol (including protocol compression and support for both TCP and UDP), provides a flexible thread pool for multi-threaded servers. This Port provides the Python bindings that sit on top of the C++ Ice C++ runtime libraries.

      Homepage: http://www.zeroc.com/
      Master Sites: ${homepage}download/Ice/3.3/
      dist_subdir ice-cpp
      distname Ice-${version}
      distfiles ${distname}${extract.suffix}
      Patch Files: patch-py.config.Make.rules.Darwin.diff patch-scripts.TestUtil.py.diff
      Checksums: Ice-${version}.tar.gz md5 1f37dfcec4662fcde030553fb447d064 sha1 08d0f32bdb7d909b4a531d45cccfa97bdde649aa rmd160 d64d52c35640cebe1145e62f57618473d17cbeb5
      Platform: darwin

      depends_lib port:python24 port:ice-cpp

      post-patch {
      reinplace "s/-O2/-g -O2/" ${workpath}/Ice-${version}/py/config/Make.rules.Darwin

      # Prevent name conflicts between libICE.* from xorg-libice and
      # libIce.* from this port by renaming libIce.* to libZeroCIce.*.
      reinplace "s/-lIce /-lZeroCIce /" ${workpath}/Ice-${version}/py/config/Make.rules
      reinplace "s/-lIce /-lZeroCIce /" ${workpath}/Ice-${version}/py/config/Make.rules.Darwin
      }

      use_configure no

      build.dir ${worksrcpath}/py
      build.target prefix="${prefix}" CC="${configure.cc}" CXX="${configure.cxx}" ICE_HOME="${prefix}" PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.4" PYTHON_VERSION=python2.4 OPTIMIZE="yes" all

      test.run yes
      test.dir ${worksrcpath}/py
      test.env ICE_HOME=${prefix}
      test.cmd ${prefix}/bin/python2.4
      test.target allTests.py

      destroot.dir ${worksrcpath}/py
      destroot.target prefix="${destroot}${prefix}" CC="${configure.cc}" CXX="${configure.cxx}" ICE_HOME="${prefix}" PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.4" PYTHON_VERSION=python2.4 OPTIMIZE="yes" install

      post-destroot {
      set sharedir ${destroot}${prefix}/share
      set docdir ${sharedir}/doc/${name}

      delete ${destroot}${prefix}/slice

      xinstall -m 755 -d ${docdir}

      file mkdir ${destroot}${prefix}/lib/python2.4
      file rename ${destroot}${prefix}/python ${destroot}${prefix}/lib/python2.4/site-packages

      set cmd "${prefix}/bin/python2.4 ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py ${destroot}${prefix}/lib/python2.4/site-packages"
      ui_debug ${cmd}
      system ${cmd}

      set cmd "${prefix}/bin/python2.4 -O ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py ${destroot}${prefix}/lib/python2.4/site-packages"
      ui_debug ${cmd}
      system ${cmd}

      file rename ${destroot}${prefix}/ICE_LICENSE ${docdir}
      file rename ${destroot}${prefix}/LICENSE ${docdir}
      foreach f {CHANGES RELEASE_NOTES} {
      file copy ${worksrcpath}/${f} ${docdir}
      }
      file copy ${worksrcpath}/py/INSTALL ${docdir}

      if {[variant_isset demo_source_code]} {
      file copy ${worksrcpath}/py/demo ${docdir}
      }
      }

      Variant: demo_source_code description {Install demonstration Python code} {
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/ice-python
      % sudo port install ice-python
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching ice-python
      ---> Verifying checksum for ice-python
      ---> Extracting ice-python
      ---> Configuring ice-python
      ---> Building ice-python with target all
      ---> Staging ice-python into destroot
      ---> Installing ice-python
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using ice-python with these commands:
      %  man ice-python
      % apropos ice-python
      % which ice-python
      % locate ice-python

     Where to find more information:

    Darwin Ports



    Lightbox this page.