From d3f35542992c4978525b1eaaa0255c92f1e830e0 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 20 Feb 2012 22:04:21 -0800 Subject: Use "cd" instead of "Dir.chdir" * And "mkdir" isntead of "Dir.mkdir" * And "Dir[]" instead of "Dir.glob" * Also style fixes and nitpicks --- Library/Formula/metalua.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Library/Formula/metalua.rb') diff --git a/Library/Formula/metalua.rb b/Library/Formula/metalua.rb index b631bf4b1..6b8295e59 100644 --- a/Library/Formula/metalua.rb +++ b/Library/Formula/metalua.rb @@ -1,20 +1,22 @@ require 'formula' class Metalua < Formula - head 'https://github.com/fab13n/metalua.git' - url 'https://github.com/fab13n/metalua/tarball/0.5-rc2' homepage 'http://metalua.luaforge.net/' - md5 'c841976b3a2fe9b7322aaca16927c9e2' + url 'https://github.com/fab13n/metalua/tarball/0.5-rc2' version '0.5-rc2' + md5 'c841976b3a2fe9b7322aaca16927c9e2' + + head 'https://github.com/fab13n/metalua.git' depends_on 'lua' def install - Dir.chdir "src" - ENV["INSTALL_BIN"] = bin - ENV["INSTALL_LIB"] = lib + cd "src" do + ENV["INSTALL_BIN"] = bin + ENV["INSTALL_LIB"] = lib - system "./make.sh" - system "./make-install.sh" + system "./make.sh" + system "./make-install.sh" + end end end -- cgit v1.2.3