2013-11-11 11:27:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cookiecutter < Formula
|
|
|
|
homepage 'https://github.com/audreyr/cookiecutter'
|
|
|
|
url 'https://pypi.python.org/packages/source/c/cookiecutter/cookiecutter-0.7.0.tar.gz'
|
|
|
|
sha1 '2685e3288a348a04f5dd2e0f4462ad869e7fdc32'
|
|
|
|
|
|
|
|
depends_on :python
|
|
|
|
|
|
|
|
def install
|
2014-01-04 13:03:55 +00:00
|
|
|
ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages'
|
|
|
|
system "python", "setup.py", "install", "--prefix=#{libexec}"
|
2013-11-11 11:27:07 +00:00
|
|
|
|
2014-01-04 13:03:55 +00:00
|
|
|
bin.install Dir[libexec/'bin/*']
|
|
|
|
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
|
2013-11-11 11:27:07 +00:00
|
|
|
end
|
|
|
|
end
|