Slang2 version ${milestone}.${patchlevel} - How to Download and Install on Mac OS X
Saturday the 20th of March, 2010

    version ${milestone}.${patchlevel}

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


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

      PortSystem 1.0

      Name: slang2
      set my_name slang
      set milestone 2.1
      set patchlevel 4
      Version: ${milestone}.${patchlevel}
      Category: lang devel
      Platform: darwin
      Maintainers: nomaintainer
      Description: multi-platform programmer's library

      Long Description: S-Lang is a multi-platform programmer's library designed to allow a developer to create robust multi-platform software. It provides facilities required by interactive applications such as display/screen management, keyboard input, keymaps, and so on. The most exciting feature of the library is the slang interpreter that may be easily embedded into a program to make it extensible.

      Homepage: http://www.s-lang.org/
      Master Sites: ftp://space.mit.edu/pub/davis/slang/v${milestone}/ ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${milestone}/ ftp://ftp.ntua.gr/pub/lang/slang/slang/v${milestone}/ ftp://ftp.plig.org/pub/slang/v${milestone}/
      distname ${my_name}-${version}
      use_bzip2 yes

      Checksums: md5 1299d5d3317e2aa7e2d75c8ce889474c sha1 8670420f870f3f5b92e72ec5962aefa52fd546a5 rmd160 394d6b6d4d770b6f006355772c159aa6ad5cde79

      depends_lib port:libiconv port:libpng port:pcre port:zlib

      test.run yes
      test.target check

      destroot.args install_doc_dir=${prefix}/share/doc/${my_name}-${version} SLSH_DOC_DIR=${prefix}/share/doc/slsh-${version}

      post-destroot {
      foreach {lib} [eval list [glob -type f ${destroot}${prefix}/lib/*.dylib] [glob ${destroot}${prefix}/lib/slang/v2/modules/*.so]] {
      file attributes ${lib} -permissions 0755
      }
      }

      livecheck.type regex
      livecheck.url [lindex ${master_sites} 0]
      livecheck.regex {LATEST_IS_(\d+(?:\.\d+)*)}


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.