Download and Install expat version 2.0.1 on Mac OS X
Thursday the 3rd of July, 2008

    expat  most recent diff


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



      # $Id: Portfile 30485 2007-10-29 06:09:58Z ryandesign macports.org $

      PortSystem 1.0
      Name: expat
      Version: 2.0.1
      Category: textproc devel
      Maintainers: ryandesign
      Description: XML 1.0 parser written in C
      Long Description: Expat is an XML parser library written in C. It is a stream-oriented parser in which an application registers handlers for things the parser might find in the XML document (like start tags).
      Platform: darwin freebsd
      Homepage: http://expat.sourceforge.net/
      master_sites sourceforge

      checksums md5 ee8b492592568805593f81f8cdf2a04c sha1 663548c37b996082db1f2f2c32af060d7aa15c2d rmd160 d31bcb152adaff9e358968be1ea901e1b4ed3b2f

      configure.args --mandir=${prefix}/share/man
      build.type gnu

      set docdir ${prefix}/share/doc/${name}-${version}

      pre-test {
      copy -force ${worksrcpath}/lib/expat.h ${worksrcpath}/lib/expat_external.h ${worksrcpath}/tests
      }
      # extract from tests/README.txt: "Expat must be built and installed
      # before "make check" can be executed."
      test.run yes
      test.target check

      post-destroot {
      xinstall -m 0755 -d ${destroot}${docdir}/html
      xinstall -m 0644 -W ${worksrcpath} COPYING Changes README ${destroot}${docdir}
      eval xinstall -m 0644 [glob ${worksrcpath}/doc/*] ${destroot}${docdir}/html

      system "cd ${destroot}${prefix}/lib &&
      ln -s libexpat.1.dylib libexpat.0.dylib"
      }

      Variant: no_static description {Do not build static libraries} {
      configure.args-append --disable-static
      }

      Variant: examples description {Install examples} {
      post-destroot {
      set examplesdir ${docdir}/examples
      xinstall -m 0755 -d ${destroot}${examplesdir}
      xinstall -m 0644 -W ${worksrcpath}/examples elements.c outline.c ${destroot}${examplesdir}
      }
      }

      livecheck.check sourceforge

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

     Where to find more information:

    Darwin Ports



    image test