Mochiweb version r${svnrev} - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    mochiweb  most recent diff


    version r${svnrev}

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


      # $Id $

      PortSystem 1.0

      Name: mochiweb

      set svnrev 87

      epoch 20081010
      Version: r${svnrev} ; # project hasn't assigned a version yet

      Category: erlang devel
      Maintainers: febeling openmaintainer
      Description: MochiWeb is an Erlang library for building lightweight HTTP servers.
      Long Description: ${description} It contains a JSON library.
      Homepage: http://code.google.com/p/mochiweb/
      Platform: darwin
      use_configure no
      depends_lib port:erlang
      fetch.type svn
      svn.url http://mochiweb.googlecode.com/svn/trunk/
      svn.revision ${svnrev}
      worksrcdir trunk
      build.target all
      set libdir ${destroot}${prefix}/lib/erlang/lib/${name}
      set privdir ${libdir}/priv
      set ebindir ${libdir}/ebin
      set srcdir ${libdir}/src
      destroot.keepdirs ${privdir}/skel/ebin ${privdir}/skel/include ${privdir}/skel/docs ${privdir}/skel/deps
      destroot {
      xinstall -d -m 0755 ${ebindir}
      eval xinstall -m 0644 [glob ${worksrcpath}/ebin/*.beam] ${ebindir}

      system "find ${worksrcpath} -name .svn -type d -exec rm -rf {} \+"
      xinstall -d -m 0755 ${privdir}
      copy ${worksrcpath}/priv/skel ${privdir}/skel
      copy ${worksrcpath}/src ${srcdir}

      set docdir ${destroot}${prefix}/share/doc/${name}
      xinstall -d -m 0755 ${docdir}
      eval xinstall -m 0644 [glob ${worksrcpath}/doc/*.html] ${docdir}

      xinstall -m 0664 -W ${worksrcpath} LICENSE README ${docdir}

      xinstall -m 0644 ${filespath}/README.MacPorts ${docdir}

      set scriptsdir ${libdir}/scripts
      xinstall -d -m 0755 ${scriptsdir}
      eval xinstall -m 0755 [glob ${worksrcpath}/scripts/*.erl] ${scriptsdir}
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.