-
Notifications
You must be signed in to change notification settings - Fork 2
/
pacparser.rb
33 lines (27 loc) · 1.13 KB
/
pacparser.rb
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
29
30
31
32
33
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Pacparser < Formula
homepage 'https://code.google.com/p/pacparser/'
url 'https://pacparser.googlecode.com/files/pacparser-1.3.0.tar.gz'
sha256 '8acf0e181ccaddc5d0b13f39944346b56906e76ef1e8ed4b2186366c3d38a3a0'
head 'https://code.google.com/p/pacparser'
depends_on 'python' if build.include? 'with-python'
option 'with-python', 'Build python module'
def install
system "make", "-C", "src"
system "make", "-C", "src", "PREFIX=#{prefix}", "install"
if build.include? 'with-python'
system "make", "-C", "src", "pymod"
system "make", "-C", "src", "PREFIX=#{prefix}", "install-pymod"
end
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test pacparser`.
system "false"
end
end