blob: 5f52fdc5688bdaf25e0ff56cf4d8161f4b2481b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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
|