Skip to content

Commit

Permalink
gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Jul 18, 2011
1 parent 8bcd0ee commit 6d94af8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/gunicorn/formula.rb
@@ -0,0 +1,24 @@
class GUnicorn < DebianFormula
url 'https://github.com/benoitc/gunicorn.git', :tag => '0.12.2'

name 'gunicorn'
version '0.12.2'
section 'python'
description 'Green Unicorn: a WSGI HTTP Server for UNIX'

build_depends 'python', 'python-setuptools'
depends 'python'

def build
sh 'python', 'setup.py', 'build'
end

def install
ver = `python --version 2>&1`[/(2\.\d)/, 1]
path = prefix/"lib/python#{ver}/site-packages/"

ENV['PYTHONPATH'] = path
path.mkpath
sh 'python', 'setup.py', 'install', "--prefix=#{prefix}"
end
end

0 comments on commit 6d94af8

Please sign in to comment.