Clearsilver version 0.10.5 - How to Download and Install on Mac OS X
Saturday the 13th of March, 2010

    clearsilver  most recent diff


    version 0.10.5

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


      The clearsilver Portfile 58775 2009-10-05 05:45:19Z jmr macports.org $

      PortSystem 1.0

      Name: clearsilver
      Version: 0.10.5
      Revision: 1
      Category: www python perl
      Platform: darwin
      Maintainers: nomaintainer
      Description: Language-neutral template system.
      Long Description: Clearsilver is a fast, powerful, and language-neutral HTML template system. In both static content sites and dynamic HTML applications, it provides a separation between presentation code and application logic which makes working with your project easier.

      Homepage: http://www.clearsilver.net
      Master Sites: ${homepage}/downloads

      Checksums: md5 b8c0c7fbe0ef5e06e0c935f134304d44 sha1 138865dc91e27328fe29fcaaac1bc6558f19dd75 rmd160 bd5c616f326b544df8a74eec71a98a474b408249

      Patch Files: patch-rules.mk.in.diff

      depends_lib port:python25 path:bin/perl:perl5 port:zlib port:gettext

      configure.args --disable-apache --disable-java --disable-ruby --disable-csharp --with-python=${prefix}/bin/python2.5 --with-perl=${prefix}/bin/perl --enable-gettext --mandir=${prefix}/share/man

      pre-configure {
      set PYTHON_PATH ${prefix}/lib/python2.5

      reinplace "s|PYTHON_SITE=`.*|PYTHON_SITE=${PYTHON_PATH}/site-packages|g" ${worksrcpath}/configure

      reinplace "s|/usr/local/bin/python|${prefix}/bin/python2.5|g" ${worksrcpath}/scripts/document.py
      reinplace "s|/usr/bin/python|${prefix}/bin/python2.5|g" ${worksrcpath}/scripts/cs_lint.py
      reinplace "s|/neo/opt/bin/python|${prefix}/bin/python2.5|g" ${worksrcpath}/scripts/ChangeLog.py
      reinplace "s|/usr/bin/python|${prefix}/bin/python2.5|g" ${worksrcpath}/scripts/commitlog.py

      reinplace "s|\$(PERL) Makefile.PL|\$(PERL) Makefile.PL installdirs=vendor|g" ${worksrcpath}/Makefile
      }

      post-configure {
      reinplace "s|#include ||g" ${worksrcpath}/cgi/cgiwrap.c
      }

      # Workaround for #17998
      post-destroot {
      move ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5 ${destroot}${prefix}/lib/python2.5
      }

      ## stolen from perl5 group code
      post-destroot {
      foreach packlist [exec find ${destroot} -name .packlist] {
      ui_info "Fixing packlist ${packlist}"
      reinplace "s|${destroot}||" ${packlist}
      }
      foreach badfile [exec find ${destroot} -name perllocal.pod] {
      ui_info "Removing ${badfile}"
      file delete ${badfile}
      }
      }

      livecheck.type regex
      livecheck.url ${homepage}/downloads
      livecheck.regex {clearsilver-([0-9.]+)\.tar\.gz}

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.