Python24-doc version 2.4.4 - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    python24-doc  most recent diff


    version 2.4.4

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


      The python24-doc Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: python24-doc
      Version: 2.4.4
      Category: lang
      Platform: darwin freebsd linux
      Maintainers: nomaintainer
      Description: HTML documentation for Python 2.4
      Long Description: HTML documentation for Python 2.4. Use by running 'pydoc2.4 TOPIC', e.g. 'pydoc2.4 NUMBERS'.

      Homepage: http://www.python.org/
      Master Sites: ${homepage}ftp/python/${version}/ ftp://ftp.python.org/pub/python/${version}/
      dist_subdir [lindex [split $name -] 0]
      distname Python-${version}
      Checksums: md5 0ba90c79175c017101100ebf5978e906
      Patch Files: patch-configure patch-Makefile.pre.in patch-Lib-cgi.py patch-Lib-site.py patch-setup.py patch-Include-pyport.h patch-Mac-OSX-Makefile.in patch-Mac-OSX-IDLE-Makefile.in patch-Mac-OSX-PythonLauncher-Makefile.in

      use_bzip2 yes

      depends_lib port:gettext port:python24 port:latex2html

      configure.args --enable-shared --mandir=${prefix}/share/man --bindir=${prefix}/bin --libdir=${prefix}/lib --without-readline --enable-framework=${prefix}/Library/Frameworks --disable-tk --enable-ipv6

      post-patch {
      reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
      reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/site.py
      reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Mac/OSX/Makefile.in
      reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
      }

      build.target html
      build.cmd { cd Doc && make }

      destroot.target frameworkinstall maninstall
      destroot {
      set framewdir ${prefix}/Library/Frameworks/Python.framework
      file mkdir ${destroot}${framewdir}/Versions/2.4/Resources/English.ljproj/Documentation
      system "cd $worksrcpath/Doc/html/ && cp -r * ${destroot}${framewdir}/Versions/2.4/Resources/English.ljproj/Documentation"
      }


      # delete symlinks without version suffix, use python_select instead to choose version

      platform puredarwin {
      configure.args-delete --enable-framework=${prefix}/Library/Frameworks
      configure.args-append --disable-toolbox-glue --disable-framework
      destroot.target install maninstall
      }

      platform darwin 8 {
      configure.args-append --with-cxx=/usr/bin/g++-4.0
      }

      platform darwin 9 {
      configure.cppflags-append -D__DARWIN_UNIX03
      }

      platform freebsd {
      configure.args-delete --enable-framework=${prefix}/Library/Frameworks
      configure.args-append --disable-framework
      build.target all libpython2.4.so
      destroot.target install maninstall
      }

      platform linux {
      configure.args-delete --enable-framework=${prefix}/Library/Frameworks
      configure.args-append --disable-framework
      build.target all libpython2.4.so
      destroot.target install maninstall
      }

      livecheck.type regex
      livecheck.url http://www.python.org/download/releases/
      livecheck.regex Python (2.4.\[0-9\]+)

    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/python24-doc
      % sudo port install python24-doc
      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 python24-doc
      ---> Verifying checksum for python24-doc
      ---> Extracting python24-doc
      ---> Configuring python24-doc
      ---> Building python24-doc with target all
      ---> Staging python24-doc into destroot
      ---> Installing python24-doc
    - 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 python24-doc with these commands:
      %  man python24-doc
      % apropos python24-doc
      % which python24-doc
      % locate python24-doc

     Where to find more information:

    Darwin Ports



    Lightbox this page.