closure-linter: add mirror, HEAD

Closes Homebrew/homebrew#41133.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Alex Dunn 2015-06-27 10:40:49 -07:00 committed by Dominyk Tiller
parent 64e7027272
commit ec27eb6871

View file

@ -1,10 +1,11 @@
require "formula"
class ClosureLinter < Formula
desc "Check JavaScript files for style and documentation"
homepage "https://developers.google.com/closure/utilities/"
url "https://closure-linter.googlecode.com/files/closure_linter-2.3.13.tar.gz"
sha1 "71763adfd097dbf2d456db3b1b77ebeb0ba60664"
mirror "https://mirrors.kernel.org/debian/pool/main/c/closure-linter/closure-linter_2.3.13.orig.tar.gz"
sha256 "7a1131389855a26be3449ba483ec3af59572859786b06b5ef8b9396440658f5a"
head "https://github.com/google/closure-linter.git"
bottle do
cellar :any
@ -17,17 +18,17 @@ class ClosureLinter < Formula
resource "python-gflags" do
url "https://pypi.python.org/packages/source/p/python-gflags/python-gflags-2.0.tar.gz"
sha1 "1529a1102da2fc671f2a9a5e387ebabd1ceacbbf"
sha256 "0dff6360423f3ec08cbe3bfaf37b339461a54a21d13be0dd5d9c9999ce531078"
end
def install
ENV["PYTHONPATH"] = libexec+"lib/python2.7/site-packages"
resources.each do |r|
r.stage { system "python", "setup.py", "install", "--prefix=#{libexec}", "--single-version-externally-managed", "--record=install.txt" }
r.stage { system "python", *Language::Python.setup_install_args(libexec) }
end
system "python", "setup.py", "install", "--prefix=#{libexec}", "--single-version-externally-managed", "--record=install.txt"
system "python", *Language::Python.setup_install_args(libexec)
bin.install Dir[libexec/"bin/*js*"]
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])