homebrew-core/Formula/cookiecutter.rb
Ben Lopatin 096a60b0ab cookiecutter 0.7.1
Closes .

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2014-08-03 19:33:47 -07:00

21 lines
643 B
Ruby

require 'formula'
class Cookiecutter < Formula
homepage 'https://github.com/audreyr/cookiecutter'
url 'https://pypi.python.org/packages/source/c/cookiecutter/cookiecutter-0.7.1.tar.gz'
sha1 '278a615977a4b29cead14cc9ede07a8c7452864a'
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}/cookiecutter", "--help"
end
end