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

    version 5.0.3

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


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

      PortSystem 1.0

      Name: lua50
      Version: 5.0.3
      Category: lang
      Maintainers: simon openmaintainer
      Description: powerful, light-weight programming language
      Long Description: Lua is a powerful, light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language.
      Platform: darwin
      Homepage: http://www.lua.org
      Master Sites: ${homepage}/ftp/
      Checksums: md5 feee27132056de2949ce499b0ef4c480
      distname lua-${version}

      depends_lib port:readline

      pre-fetch {
      ui_msg "****************************************************************"
      ui_msg "* *"
      ui_msg "* Notice: You can't install both lua and lua50! If you already *"
      ui_msg "* have lua installed, please deactivate it first. *"
      ui_msg "* *"
      ui_msg "****************************************************************"
      }

      Patch Files: patch-config patch-Makefile
      post-patch {
      reinplace s| PREFIX |${prefix}| ${worksrcpath}/config
      reinplace s| DESTROOT |${destroot}| ${worksrcpath}/config
      }

      build.target all dylib dylibbin

      destroot.target install dylibinstall
      post-destroot {
      xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
      xinstall -W ${worksrcpath} -m 0644 README ${destroot}${prefix}/share/doc/${name}
      xinstall -W ${worksrcpath} -m 0644 COPYRIGHT ${destroot}${prefix}/share/doc/${name}
      xinstall -W ${worksrcpath} -m 0644 HISTORY ${destroot}${prefix}/share/doc/${name}
      xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/html
      foreach html [glob doc/*.html doc/*.gif] {
      xinstall -W ${worksrcpath} -m 0644 ${html} ${destroot}${prefix}/share/doc/${name}/html
      }
      xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/test
      foreach test [glob test/README test/*.lua] {
      xinstall -W ${worksrcpath} -m 0644 ${test} ${destroot}${prefix}/share/doc/${name}/test
      }
      }

      test.run yes
      test.env DYLD_LIBRARY_PATH=./lib

      livecheck.type regex
      livecheck.url ${master_sites}
      livecheck.regex "lua-(5.0(?:\\.\\d+)*)${extract.suffix}"

      use_parallel_build no

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.