2010-06-18 20:42:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Metalua < Formula
|
2010-06-18 20:42:56 +00:00
|
|
|
homepage 'http://metalua.luaforge.net/'
|
2013-03-29 20:29:20 +00:00
|
|
|
url 'https://github.com/fab13n/metalua/archive/0.5-rc2.tar.gz'
|
2010-08-09 17:35:12 +00:00
|
|
|
version '0.5-rc2'
|
2013-03-29 20:29:20 +00:00
|
|
|
sha1 'ee28c801e9673cc11d1cecd0a9fda87e7d21fd6d'
|
2012-02-21 06:04:21 +00:00
|
|
|
|
|
|
|
head 'https://github.com/fab13n/metalua.git'
|
2010-06-18 20:42:56 +00:00
|
|
|
|
|
|
|
depends_on 'lua'
|
|
|
|
|
|
|
|
def install
|
2012-02-21 06:04:21 +00:00
|
|
|
cd "src" do
|
|
|
|
ENV["INSTALL_BIN"] = bin
|
|
|
|
ENV["INSTALL_LIB"] = lib
|
2010-06-18 20:42:56 +00:00
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
system "./make.sh"
|
|
|
|
system "./make-install.sh"
|
|
|
|
end
|
2010-06-18 20:42:56 +00:00
|
|
|
end
|
2014-04-19 02:29:10 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
output = `#{bin}/metalua -e "for i=0,9 do io.write(i) end"`
|
|
|
|
assert_equal "0123456789", output
|
|
|
|
assert_equal 0, $?.exitstatus
|
|
|
|
end
|
2010-06-18 20:42:56 +00:00
|
|
|
end
|