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

    spidermonkey  most recent diff


    version 1.7.0

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The spidermonkey Portfile 54402 2009-07-26 19:39:06Z toby macports.org $

      PortSystem 1.0

      Name: spidermonkey
      epoch 1
      Version: 1.7.0
      Revision: 4
      Category: lang
      Platform: darwin
      Maintainers: akitada openmaintainer
      Description: JavaScript-C Engine
      Long Description: ${description}

      Homepage: http://www.mozilla.org/js/spidermonkey/
      Master Sites: http://ftp.mozilla.org/pub/mozilla.org/js/ ftp://ftp.mozilla.org/pub/mozilla.org/js/ http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/ ftp://ftp.mozilla.org/pub/mozilla.org/js/older-packages/
      distname js-${version}
      Checksums: md5 5571134c3863686b623ebe4e6b1f6fe6 sha1 1a99e8e10cb6600a03ea98895583a8ed42136d1f rmd160 6eadf1ac7c10a13b3db3d499856c9e18ddbcdfdb

      depends_build port:readline
      depends_lib port:nspr
      worksrcdir js/src

      Patch Files: spidermonkey-1.5-build.patch spidermonkey-1.5-threadsafe.diff spidermonkey-1.5-header.diff patch-config-Darwin.mk patch-jsprf.c

      post-patch {
      reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile.ref
      reinplace "s|__USER__|${install.user}|g" ${worksrcpath}/Makefile.ref
      reinplace "s|__GROUP__|${install.group}|g" ${worksrcpath}/Makefile.ref
      }

      use_configure no

      use_parallel_build no

      build.args -f Makefile.ref LIBDIR="/lib" SO_SUFFIX=dylib JS_THREADSAFE=1 CC=${configure.cc} DEFINES=-DJS_C_STRINGS_ARE_UTF8

      Variant: fileobject description {add File object support} {
      build.args-append JS_HAS_FILE_OBJECT=1
      }

      post-build {
      system "ranlib ${worksrcpath}/Darwin_OPT.OBJ/libjs.a"
      }

      destroot.args -f Makefile.ref LIBDIR="/lib" SO_SUFFIX=dylib

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.