aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAustin2014-07-27 14:22:54 -0400
committerMike McQuaid2014-07-28 10:05:24 +0100
commit849199f9e11fa1403f45022e72f94f7f16748d4a (patch)
treebbac5dd14a872cc08c573d9ba14b5dddbd9a56b8 /Library/Formula
parent7dbdaeff25cf2cf6c80f307a584a48fed30b8434 (diff)
downloadhomebrew-849199f9e11fa1403f45022e72f94f7f16748d4a.tar.bz2
doitlive 2.2.0 (new formula)
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/doitlive.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/doitlive.rb b/Library/Formula/doitlive.rb
new file mode 100644
index 000000000..8c77c757b
--- /dev/null
+++ b/Library/Formula/doitlive.rb
@@ -0,0 +1,21 @@
+require "formula"
+
+class Doitlive < Formula
+ homepage "http://doitlive.readthedocs.org/en/latest/"
+ url "https://pypi.python.org/packages/source/d/doitlive/doitlive-2.2.0.tar.gz"
+ sha1 "00d9f4fa2e25cc6ac14d6d9a1e14c9214c29ff48"
+
+ 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}/doitlive", "themes", "--preview"
+ end
+end