2014-03-11 15:35:44 +00:00
|
|
|
class Reclass < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Recursive external node classification"
|
2014-03-11 15:35:44 +00:00
|
|
|
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"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "48271fcd3b37d8945047ed70c478b387f87ffef2fd209fe028761724ed2f97fb"
|
2016-03-19 20:26:56 +00:00
|
|
|
head "https://github.com/madduck/reclass.git"
|
2014-03-11 15:35:44 +00:00
|
|
|
|
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
|
|
|
|
|
2014-06-17 13:11:41 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2014-03-11 15:35:44 +00:00
|
|
|
|
|
|
|
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/*"]
|
2016-09-24 15:45:48 +00:00
|
|
|
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
2014-03-11 15:35:44 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/reclass", "--version"
|
|
|
|
end
|
|
|
|
end
|