2013-11-11 11:27:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cookiecutter < Formula
|
|
|
|
homepage 'https://github.com/audreyr/cookiecutter'
|
2014-10-16 21:03:56 +00:00
|
|
|
url 'https://pypi.python.org/packages/source/c/cookiecutter/cookiecutter-0.7.2.tar.gz'
|
|
|
|
sha1 '127b3f755edfb022c4634483666cf5f9d085fa71'
|
2013-11-11 11:27:07 +00:00
|
|
|
|
2014-10-17 08:46:34 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "f0ac7ce389eedcdc2e4b67a5e2fb71747c45adf7" => :mavericks
|
|
|
|
sha1 "c8425e83e01c889d090cc6596b5c9900fe53d4bb" => :mountain_lion
|
|
|
|
sha1 "d20dd767a6fec5a5e305d31eef2f91cf1182ced3" => :lion
|
|
|
|
end
|
|
|
|
|
2014-04-30 22:36:35 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2013-11-11 11:27:07 +00:00
|
|
|
|
|
|
|
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
|
2014-04-30 22:36:42 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/cookiecutter", "--help"
|
|
|
|
end
|
2013-11-11 11:27:07 +00:00
|
|
|
end
|