luvit: fix for system openssl linkage

Various style fixes as well.

Closes Homebrew/homebrew#37448.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Dominyk Tiller 2015-03-06 22:53:43 +00:00 committed by Jack Nagel
parent deac362959
commit 0237111d7d

View file

@ -1,20 +1,23 @@
require 'formula'
class Luvit < Formula class Luvit < Formula
homepage 'http://luvit.io' homepage "https://luvit.io"
url 'http://luvit.io/dist/latest/luvit-0.8.2.tar.gz' url "https://luvit.io/dist/latest/luvit-0.8.2.tar.gz"
sha1 '0e53fa128eb48d429134435f15653c80b8c9485c' sha256 "c2639348d1716c38ac3cd66ea4c4ff1c8a72f4610dbd6e50cf31426d3956c5ff"
head "https://github.com/luvit/luvit.git"
revision 1
head 'https://github.com/luvit/luvit.git' depends_on "pkg-config" => :build
depends_on "luajit"
depends_on 'pkg-config' => :build depends_on "openssl"
depends_on 'luajit'
def install def install
ENV['USE_SYSTEM_SSL'] = '1' ENV["USE_SYSTEM_SSL"] = "1"
ENV['USE_SYSTEM_LUAJIT'] = '1' ENV["USE_SYSTEM_LUAJIT"] = "1"
ENV['PREFIX'] = prefix ENV["PREFIX"] = prefix
system 'make' system "make"
system 'make', 'install' system "make", "install"
end
test do
system bin/"luvit", "--cflags", "--libs"
end end
end end