Graphviz-oldgui version 16 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    graphviz-oldgui  most recent diff


    version 16

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


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

      PortSystem 1.0

      Name: graphviz-oldgui
      conflicts graphviz-gui graphviz-gui-devel
      Version: 16
      Category: graphics
      Maintainers: ryandesign
      Homepage: http://www.pixelglow.com/graphviz/
      Master Sites: http://www.pixelglow.com/downloads/
      Platform: macosx
      use_parallel_build no
      dist_subdir graphviz
      distname graphviz-1.13-v${version}
      extract.suffix .tgz
      universal_variant no

      Description: Mac OS X Aqua GUI for viewing and exporting Graphviz graphs

      Long Description: ${description}.

      Checksums: md5 a3278f993ef3ce021043a17b16a9fd5f sha1 87ee05a99088a98aef4937d72c3bb6cf488e3074 rmd160 35eac7c7013bddc0d1f107fcaf8e9c7d1e078231

      depends_build port:pkgconfig port:libiconv

      depends_lib path:bin/dot:graphviz

      pre-fetch {
      if {${os.major} >= 9} {
      set newport graphviz-gui
      if {[expr [lindex [split [exec ${prefix}/bin/pkg-config --modversion libgvc] .] 1] % 2]} {
      set newport graphviz-gui-devel
      }
      ui_msg "Consider installing ${newport} instead of ${name}."
      }
      }

      post-extract {
      # Rename worksrcpath so it doesn't contain spaces; some phases have problems otherwise.
      move "${workpath}/Graphviz 1.13 (v16)" ${worksrcpath}
      # The frameworks are v1.13 frameworks that aren't applicable anymore.
      delete ${worksrcpath}/Graphviz.app/Contents/Frameworks
      # Remove the .DS_Store files that we don't really want to install.
      fs-traverse item ${worksrcpath} {
      if {".DS_Store" == [file tail ${item}] && [file isfile ${item}]} {
      delete ${item}
      }
      }
      # Convert the strings from UTF-16 to UTF-8 so that we can patch them.
      system "cd ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj && ${prefix}/bin/iconv -f utf-16 -t utf-8 InfoPlist.strings > InfoPlist.strings.utf8"
      }

      Patch Files: patch-version.diff patch-gv-extension.diff

      post-patch {
      # Convert the strings back to UTF-16 which is what Mac OS X expects.
      system "cd ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj && ${prefix}/bin/iconv -f utf-8 -t utf-16 InfoPlist.strings.utf8 > InfoPlist.strings"
      delete ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj/InfoPlist.strings.utf8
      }

      use_configure no

      build {
      # Replace the v1.13 executables with symlinks to a wrapper script that
      # calls the new executables in ${prefix}/bin. The wrapper is necessary
      # to emulate the -Tepdf option which was specific to Pixelglow's fork.
      set dispatcher graphviz-dispatcher.php
      set macospath ${worksrcpath}/Graphviz.app/Contents/MacOS
      xinstall -m 755 ${filespath}/${dispatcher}.in ${macospath}/${dispatcher}
      reinplace "s% PREFIX %${prefix}%g" ${macospath}/${dispatcher}
      foreach prog {acyclic bcomps ccomps circo cvtgxl dijkstra dot gc gvcolor gvpack gvpr neato nop sccmap tred twopi unflatten} {
      delete ${macospath}/${prog}
      ln -s ${dispatcher} ${macospath}/${prog}
      }
      }

      destroot {
      set apppath ${destroot}${applications_dir}
      xinstall -d ${apppath}
      copy ${worksrcpath}/Graphviz.app ${apppath}
      }

      livecheck.type none

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.