C2html version 1.1.0 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 1.1.0

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


      The c2html Portfile 49948 2009-04-20 18:27:21Z toby macports.org $

      PortSystem 1.0

      Name: c2html
      Version: 1.1.0
      Category: textproc
      Maintainers: toby
      Description: c2html converts C source files to highlighted html
      Long Description: c2html is a program which converts C source files to highlighted html files. The produced file can be used for creating technical manuals. A highlighted source code listing is usually much easier to read.
      Homepage: http://c2html.sourceforge.net/
      Platform: darwin

      Master Sites: sourceforge
      distname ${name}_${version}
      Checksums: md5 819e263c4b8712ac1b7026ae8fc88d29 sha1 bc9fe51875ec5d1b517f318c47429fdd00de18ee rmd160 d00543035f753f7f5edb67d275cc0b6f62cc04ac

      worksrcdir ${name}

      Patch Files: patch-Makefile patch-makefile.default patch-check_begin.c patch-error.c

      configure {
      reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/Makefile
      reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/Makefile
      reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/makefile.default
      }

      destroot {
      xinstall -m 755 ${worksrcpath}/c2html ${destroot}${prefix}/bin
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 "${worksrcpath}/User manual.pdf" ${destroot}${prefix}/share/doc/${name}
      }

      livecheck.regex ${name} ${name} (\.*) released

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.