homebrew-core/Formula/reclass.rb

30 lines
902 B
Ruby
Raw Normal View History

require "formula"
class Reclass < Formula
homepage "http://reclass.pantsfullofunix.net/"
head "https://github.com/madduck/reclass.git"
2014-11-01 00:37:19 +00:00
url "https://github.com/madduck/reclass/archive/reclass-1.4.1.tar.gz"
sha1 "43e38a484437c82a376a57d87b7af6674f1b97fd"
2014-07-06 16:23:00 +00:00
bottle do
cellar :any
2014-11-01 02:14:50 +00:00
sha1 "4c055763f00605f006fb585f34ccae585b514dc8" => :yosemite
sha1 "bf1b1acdd4475d3271f8b27eb41b0f414dac6147" => :mavericks
sha1 "4d1a4805aef3db3858c6d6fa01e982eae3a8cd1b" => :mountain_lion
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