aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/luvit.rb
blob: 73c3ce0dc1d7c15f9149f8ee4d5d98ecb424ef29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Luvit < Formula
  homepage 'http://luvit.io'
  url 'http://luvit.io/dist/latest/luvit-0.8.2.tar.gz'
  sha1 '0e53fa128eb48d429134435f15653c80b8c9485c'

  head 'https://github.com/luvit/luvit.git'

  depends_on 'pkg-config' => :build
  depends_on 'luajit'

  def install
    ENV['USE_SYSTEM_SSL'] = '1'
    ENV['USE_SYSTEM_LUAJIT'] = '1'
    ENV['PREFIX'] = prefix
    system 'make'
    system 'make', 'install'
  end
end