forked from codedreality/homebrew-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pypcap.rb
22 lines (18 loc) · 778 Bytes
/
pypcap.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'
class Pypcap < Formula
homepage 'http://code.google.com/p/pypcap/'
# url 'http://pypcap.googlecode.com/files/pypcap-1.1.tar.gz'
# sha1 '966f62deca16d5086e2ef6694b0c795f273da15c'
# We use the url of this forked version as the googlecode project was
# last updated on 2007
url 'https://github.com/hellais/pypcap/archive/v1.1.1.tar.gz'
sha1 '8e1669da927c3cdaa03204d4afa9a88707a19756'
depends_on :python
depends_on 'Pyrex' => :python
def install
inreplace "setup.py", /^for d in dirs/,
"dirs = ['#{MacOS.sdk_path}/usr', '#{HOMEBREW_PREFIX}']\nfor d in dirs"
system "python", 'setup.py', 'install', "--prefix=#{prefix}",
"--record=installed.txt", "--single-version-externally-managed"
end
end