homebrew-core/Formula/cookiecutter.rb
BrewTestBot 085360742c cookiecutter: add 0.7.2 bottle.
Closes Homebrew/homebrew#33237.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-17 09:50:51 +01:00

28 lines
875 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.2.tar.gz'
sha1 '127b3f755edfb022c4634483666cf5f9d085fa71'
bottle do
cellar :any
sha1 "f0ac7ce389eedcdc2e4b67a5e2fb71747c45adf7" => :mavericks
sha1 "c8425e83e01c889d090cc6596b5c9900fe53d4bb" => :mountain_lion
sha1 "d20dd767a6fec5a5e305d31eef2f91cf1182ced3" => :lion
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}/cookiecutter", "--help"
end
end