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

    version 2.4.1

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


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

      PortSystem 1.0

      Name: bison
      Version: 2.4.1
      Category: devel
      Maintainers: mww
      license GPLv3
      Description: general-purpose parser generator
      Long Description: Bison is a general-purpose parser generator that converts a grammar description for an LALR context-free grammar into a C program to parse that grammar. Once you are proficient with Bison, you can use it to develop a wide range of language parsers, from those used in simple desk calculators to complex programming languages.

      Homepage: http://www.gnu.org/software/bison/
      Platform: darwin
      Master Sites: gnu
      Checksums: md5 84e80a2a192c1a4c02d43fbf2bcc4ca4 sha1 fc96b28ee4a6a914b18cb1eddb68177d94b83361 rmd160 d194a6e0f586cab2aab137d215d0138336be367c
      use_bzip2 yes

      depends_lib port:gettext port:m4 port:libiconv

      configure.args --infodir=${prefix}/share/info --mandir=${prefix}/share/man --disable-yacc

      test.run yes
      test.target check

      post-destroot {
      set docdir ${prefix}/share/doc/${name}
      xinstall -d ${destroot}${docdir}/examples/calc++
      xinstall -m 0444 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS THANKS TODO ${destroot}${docdir}
      xinstall -m 444 -W ${worksrcpath}/examples/calc++ calc++-driver.cc calc++-driver.hh calc++-parser.cc calc++-parser.hh calc++-parser.stamp calc++-parser.yy calc++-scanner.cc calc++-scanner.ll calc++.cc location.hh position.hh stack.hh test ${destroot}${docdir}/examples/calc++
      delete ${destroot}${prefix}/lib/charset.alias
      # yacc manpage gets installed even with '--disable-yacc'
      if {! [variant_isset yacc]} {
      delete ${destroot}${prefix}/share/man/man1/yacc.1
      }
      }

      livecheck.type regex
      livecheck.url http://ftp.gnu.org/gnu/bison/?C=M&O=D
      livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)

      Variant: yacc description "enable yacc compatibility" {
      configure.args-delete --disable-yacc
      }



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

     Where to find more information:

    Darwin Ports



    Lightbox this page.