Highlight version 2.4.8 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    highlight  most recent diff


    version 2.4.8

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


      The highlight Portfile 50984 2009-05-14 21:08:43Z and.damore macports.org $

      PortSystem 1.0

      Name: highlight
      Version: 2.4.8
      Category: textproc devel
      Platform: darwin
      Maintainers: groovie.org:pjenvey
      Description: converts source code to formatted text with syntax highlighting
      Long Description: ${description}

      Homepage: http://www.andre-simon.de
      Master Sites: ${homepage}/zip/
      Checksums: sha1 091689fde96c9f4e3de75ea1b7c1838e8d25708c
      use_bzip2 yes

      configure {
      reinplace "s|/usr/share/highlight/|${prefix}/share/${name}/|g" ${worksrcpath}/highlight/datadir.cpp
      reinplace "s|/etc/highlight/|${prefix}/etc/highlight/|g" ${worksrcpath}/highlight/datadir.cpp
      }

      # Avoid stripping the binary (-s flag) during linking as this corrupts the executable.
      # Strip after building
      platform darwin 8 { build.args LDFLAGS="" }

      set conf_file "filetypes.conf"
      set old_conf_files { "scriptre.conf" "extensions.conf" }
      destroot {
      xinstall -m 755 ${worksrcpath}/highlight/highlight ${destroot}${prefix}/bin

      xinstall -m 755 -d ${destroot}${prefix}/etc/${name}
      xinstall -m 644 ${worksrcpath}/${conf_file} ${destroot}${prefix}/etc/${name}/${conf_file}.sample

      xinstall -m 755 -d ${destroot}${prefix}/share/${name}
      foreach dir { "langDefs" "themes" "indentSchemes" "helpmsg" } {
      file copy ${worksrcpath}/${dir} ${destroot}${prefix}/share/${name}
      system "chmod 644 ${destroot}${prefix}/share/${name}/${dir}/*"
      }

      xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
      xinstall -m 644 ${worksrcpath}/man/highlight.1.gz ${destroot}${prefix}/share/man/man1

      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      foreach file { "AUTHORS" "README" "README_DE" "README_INDENT" "ChangeLog" "COPYING" "INSTALL" } {
      xinstall -m 644 ${worksrcpath}/${file} ${destroot}${prefix}/share/doc/${name}
      }

      file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
      }

      post-activate {
      # copy over the sample conf file if necessary
      if { ![file exists ${prefix}/etc/${name}/${conf_file}] } {
      file copy ${prefix}/etc/${name}/${conf_file}.sample ${prefix}/etc/${name}/${conf_file}
      }

      # warn the user of deprecated conf files
      set deprecated_conf_files {}
      foreach file $old_conf_files {
      if { [file exists ${prefix}/etc/${name}/${file}] } {
      file rename ${prefix}/etc/${name}/${file} ${prefix}/etc/${name}/${file}.dport_bak
      lappend deprecated_conf_files ${file}
      }
      }
      if { [llength $deprecated_conf_files] } {
      ui_msg "\nWarning: Old highlight conf files: ${deprecated_conf_files}"
      ui_msg "have been replaced by: ${conf_file}"
      ui_msg "as of highlight-2.4.5."
      ui_msg "\nThe following old conf files have been renamed (and should be"
      ui_msg "removed):\n"
      foreach file $deprecated_conf_files {
      ui_msg "${prefix}/etc/${name}/${file} ->"
      ui_msg "${prefix}/etc/${name}/${file}.dport_bak"
      ui_msg ""
      }
      }
      }


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.