aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2009-07-29 18:25:18 -0700
committerMax Howell2009-07-31 00:28:38 +0100
commit9688783f0bfe749d184c211cc73a9316763048ac (patch)
tree8dce306ab08809d23dad2e27ce4c28fa73090617 /Library/Formula/python.rb
parentc37b2a079a5b9e42a492451b710ce2a22930430f (diff)
downloadhomebrew-9688783f0bfe749d184c211cc73a9316763048ac.tar.bz2
Basic Python 2.6 recipe.
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
new file mode 100644
index 000000000..2f70d810c
--- /dev/null
+++ b/Library/Formula/python.rb
@@ -0,0 +1,20 @@
+require 'brewkit'
+
+class Python <Formula
+ @url='http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2'
+ @homepage='http://www.python.org/'
+ @md5='245db9f1e0f09ab7e0faaa0cf7301011'
+
+ def install
+ # TODO:
+ # Bring virtualenv along for the ride.
+ # Rename the formula to python26?
+ # -- one feature I plan for homebrew is one can do, eg.
+ # brew install -v2.6
+ # and also, versioning packages in the name sucks :) --mxcl
+
+ system "./configure --prefix='#{prefix}'"
+ system "make"
+ system "make install"
+ end
+end