forked from swrede/homebrew-formulas
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathspread.rb
More file actions
28 lines (21 loc) · 778 Bytes
/
spread.rb
File metadata and controls
28 lines (21 loc) · 778 Bytes
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
require 'formula'
class Spread < Formula
homepage 'http://www.spread.org/'
url 'http://www.spread.org/download/spread-src-4.4.0.tar.gz?name=McTester&company=homebrew&email=foo@example.org&FILE=spread-src-4.4.0.tar.gz'
sha256 '5beb09fe27cdb8332075847af0b9288e58ba8cdcf5c7cc685fd57c6b65680f4d'
version '4.4.0'
option :universal
def install
ENV.deparallelize
ENV.universal_binary if build.universal?
system "./configure", "--prefix=#{prefix}"
system "make"
# Even though we specified HOMEBREW_PREFIX for configure,
# we still want to install it in the Cellar location.
system "make", "-j1", "install", "prefix=#{prefix}"
File.symlink("#{prefix}/sbin/spread", "#{prefix}/bin/spread")
end
def test
system "spuser"
end
end