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

class NinjaIde < Formula
  homepage 'http://ninja-ide.org/'
  url 'https://github.com/ninja-ide/ninja-ide/archive/v2.3.tar.gz'
  sha1 '64ccbbf8521a8fbef43c3d57cf616b7f8b466460'

  depends_on :python
  depends_on 'fsevents' => :python
  depends_on 'pyqt'

  def install
    system "python", "setup.py", "install", "--prefix=#{prefix}",
                     "--single-version-externally-managed", "--record=installed.txt"
    bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
  end

  test do
    system "ninja-ide", "-h"
  end
end