aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMichael Joseph2013-11-11 13:27:07 +0200
committerAdam Vandenberg2013-11-13 08:01:10 -0800
commit06c6ba4808a7e0357de5609ab3711cf9a3ece0b2 (patch)
treeaab1c730e35afd80108511f0392050feee534a0a /Library/Formula
parent4c889a0471c467421aac0b6eddff9155bfcf4928 (diff)
downloadhomebrew-06c6ba4808a7e0357de5609ab3711cf9a3ece0b2.tar.bz2
cookiecutter 0.7.0 - cli to create projects
A command-line utility that creates projects from cookiecutters (project templates). E.g. Python package projects, jQuery plugin projects. Closes #24170. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cookiecutter.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/cookiecutter.rb b/Library/Formula/cookiecutter.rb
new file mode 100644
index 000000000..1e39d9539
--- /dev/null
+++ b/Library/Formula/cookiecutter.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Cookiecutter < Formula
+ homepage 'https://github.com/audreyr/cookiecutter'
+ url 'https://pypi.python.org/packages/source/c/cookiecutter/cookiecutter-0.7.0.tar.gz'
+ sha1 '2685e3288a348a04f5dd2e0f4462ad869e7fdc32'
+
+ depends_on :python
+
+ def install
+ python do
+ system python, "setup.py", "install", "--prefix=#{prefix}"
+ end
+ end
+
+ def caveats
+ python.standard_caveats if python
+ end
+end