2013-11-11 11:27:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cookiecutter < Formula
|
|
|
|
homepage 'https://github.com/audreyr/cookiecutter'
|
2014-11-01 08:12:47 +00:00
|
|
|
url 'https://pypi.python.org/packages/source/c/cookiecutter/cookiecutter-0.8.0.tar.gz'
|
|
|
|
sha1 'f8d68f73b5a36540a8798c0aee4eebda028653c5'
|
2013-11-11 11:27:07 +00:00
|
|
|
|
2014-10-17 08:46:34 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-11-01 08:21:00 +00:00
|
|
|
sha1 "ddaf7d11f1fcc1c8843cabd041f074764725a0f0" => :yosemite
|
|
|
|
sha1 "90a6ae68fd96ceab215f2dfaab0cc3ac9525908d" => :mavericks
|
|
|
|
sha1 "4c69f62dfffca5508feb0a5753dd0d4b7efb8ebe" => :mountain_lion
|
2014-10-17 08:46:34 +00:00
|
|
|
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
|