Py-htmlgen version 2.2 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    py-htmlgen  most recent diff


    version 2.2

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


      The py-htmlgen Portfile 57229 2009-09-07 21:56:00Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup python24 1.0

      Name: py-htmlgen
      Version: 2.2
      Revision: 1
      Category: python textproc
      Platform: darwin
      Maintainers: nomaintainer
      Description: python class library for the generation of HTML documents
      Long Description: HTMLgen is a class library for the generation of HTML documents with Python scripts. It's used when you want to create HTML pages containing information which changes from time to time. For example, you might want to have a page which provides an overall system summary of data collected nightly. Or maybe you have a catalog of data and images that you would like formed into a spiffy set of web pages for the world to browse. Python is a great scripting language for these tasks and with HTMLgen it is very straightforward to construct objects which are rendered out into consistently structured web pages. Of course, CGI scripts written in Python can take advantage of these classes as well.

      Homepage: http://starship.python.net/crew/friedrich/
      Master Sites: freebsd
      distname HTMLgen
      Checksums: md5 cd20f8b63d3215e57289ddbf56c97f48

      post-extract {
      file copy ${filespath}/setup.py ${worksrcpath}
      file delete ${worksrcpath}/installp.py ${worksrcpath}/HTMLtest.py
      reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
      }

      post-destroot {
      file delete -force ${destroot}${prefix}/share/doc/${name}
      file copy ${worksrcpath}/html ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath} ChangeLog README ${destroot}${prefix}/share/doc/${name}
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.