aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rcssserver.rb
blob: 40a1625a6a94056b39e67e9ab29eb76121d96d88 (plain)
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
require "formula"

class Rcssserver < Formula
  homepage "http://sserver.sourceforge.net/"
  url "https://downloads.sourceforge.net/sserver/rcssserver/15.2.2/rcssserver-15.2.2.tar.gz"
  sha1 "43012eb5301716e457e93ec42c0c00727e600c84"

  bottle do
    cellar :any
    sha1 "72e049b25605887a54b941a388ad16bd50baad69" => :mavericks
    sha1 "9a398073a7e711b49ba39b2da09c0f7a29ed19af" => :mountain_lion
    sha1 "ab94f23eae47b48ce2f9ed3d94e727f2d7387289" => :lion
  end

  depends_on "flex" => :build
  depends_on "pkg-config" => :build
  depends_on "boost"

  def install
    ENV.j1

    system "./configure", "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    system "#{bin}/rcssserver help | head -1 | grep 'rcssserver-#{version}'"
  end
end