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

    version 1.9.4.19

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


      The fsharp Portfile 40948 2008-10-18 20:05:04Z ryandesign macports.org $

      PortSystem 1.0
      Name: fsharp
      Version: 1.9.4.19
      Category: lang
      Maintainers: landonf openmaintainer
      Description: F# is a typed functional programming language.
      Long Description: F# is a typed functional programming language for the .NET Framework. It combines the succinctness, expressivity, and compositionality of typed functional programming with the runtime support, libraries, interoperability, tools and object model of .NET. F# stems from the ML family of languages and has a core language compatible with that of OCaml, though also draws from C# and Haskell.
      Homepage: http://research.microsoft.com/fsharp/fsharp.aspx
      Platform: darwin

      use_zip yes

      Master Sites: ftp://ftp.research.microsoft.com/downloads/6f48a466-4294-4973-9e15-25e0ddff422f
      Checksums: md5 d51c93d29599540a957f94ff387e65fa sha1 655a790fd98f7b68c19722b0a29e9d1048c39e0f

      depends_lib port:mono

      worksrcdir FSharp-${version}

      use_configure no

      post-patch {
      reinplace "s|gacutil -i|gacutil -i -root ${destroot}/${prefix}/lib/|g" ${worksrcpath}/install-mono.sh
      reinplace "s|^echo.*||g" ${worksrcpath}/install-mono.sh
      }

      build {
      }

      destroot {
      # Install the assemblies
      system "cd ${worksrcpath} && bash install-mono.sh"

      # Copy the entire lot to ${prefix}/share
      set sharedir ${prefix}/share/fsharp-${version}
      file copy ${worksrcpath} ${destroot}/${sharedir}

      # Create launchers for the binaries
      foreach binary [glob -dir ${worksrcpath}/bin *.exe] {
      # fsc is a windows binary
      if {[file tail $binary] == "fsc.exe"} {
      continue
      }

      set destfile [file join "${destroot}/${prefix}/bin/" [file tail [file rootname $binary]]]
      set linkdest [file join ${sharedir}/bin/ [file tail $binary]]

      # Write the launcher script
      set fd [open ${destfile} "w"]
      puts $fd "#/bin/sh"
      puts $fd "if \[ -z \$DYLD_FALLBACK_LIBRARY_PATH \]; then"
      puts $fd " export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:${prefix}/lib"
      puts $fd "fi"
      puts $fd "exec ${prefix}/bin/mono ${linkdest} \$\*"
      close $fd

      system "chmod +x ${destfile}"
      }
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.