homebrew-core/Formula/reclass.rb

31 lines
1.1 KiB
Ruby
Raw Normal View History

class Reclass < Formula
desc "Recursive external node classification"
homepage "http://reclass.pantsfullofunix.net/"
2014-11-01 00:37:19 +00:00
url "https://github.com/madduck/reclass/archive/reclass-1.4.1.tar.gz"
sha256 "48271fcd3b37d8945047ed70c478b387f87ffef2fd209fe028761724ed2f97fb"
2016-03-19 20:26:56 +00:00
head "https://github.com/madduck/reclass.git"
2014-07-06 16:23:00 +00:00
bottle do
2016-03-19 20:55:55 +00:00
cellar :any_skip_relocation
2016-10-01 01:49:13 +00:00
rebuild 1
sha256 "0c381ac12c60fa23c9069f670cf262ce1068d346fe1e577ecb28ee566aa3fe51" => :sierra
2016-03-19 20:55:55 +00:00
sha256 "92c143420d36d71d49ecde69eca47da2a46f1ae6d37e0f7522cb95a9d19735e7" => :el_capitan
sha256 "7be55ff36c5e4b02e3bf2c6ea297e8a3248452dc6b15c1e6fd77633373ff3bb3" => :yosemite
sha256 "7c63989f940dc69a54c8e1eebb1d14a1ea04141a4a806354ed1ad338c8d4ea6b" => :mavericks
2014-07-06 16:23:00 +00:00
end
depends_on :python if MacOS.version <= :snow_leopard
def install
ENV.prepend_create_path "PYTHONPATH", "#{libexec}/lib/python2.7/site-packages"
system "python", "setup.py", "install", "--prefix=#{libexec}"
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
system "#{bin}/reclass", "--version"
end
end