aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/reclass.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/reclass.rb b/Library/Formula/reclass.rb
new file mode 100644
index 000000000..6f5f57c22
--- /dev/null
+++ b/Library/Formula/reclass.rb
@@ -0,0 +1,22 @@
+require "formula"
+
+class Reclass < Formula
+ homepage "http://reclass.pantsfullofunix.net/"
+ head "https://github.com/madduck/reclass.git"
+ url "https://github.com/madduck/reclass/archive/reclass-1.3.tar.gz"
+ sha1 "eaa8eb1fd22aa040fa7a57c613c6223706904578"
+
+ depends_on :python
+
+ 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