aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/yacas.rb
blob: 5e5d09dcd4d77e938e72eb9d9839cfcfd3420e91 (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
30
31
class Yacas < Formula
  homepage "http://yacas.sourceforge.net"
  url "https://downloads.sourceforge.net/project/yacas/yacas-source/1.3/yacas-1.3.4.tar.gz"
  sha1 "c166fe92eaf3dd4218e4b10ac752457b980ae6e2"

  bottle do
    revision 1
    sha1 "7613703c3bc41a2897e0cf8a70e4210efbbe71ba" => :yosemite
    sha1 "5626da72853a063aaf4f568b62b3c0c3898a3e1b" => :mavericks
    sha1 "81376d90f1e74a797202f214c08e8f8fafae77b2" => :mountain_lion
  end

  option "with-server", "Build the network server version"

  def install
    args = ["--disable-silent-rules",
            "--disable-dependency-tracking",
            "--prefix=#{prefix}",
           ]

    args << "--enable-server" if build.with? "server"

    system "./configure", *args
    system "make", "install"
    system "make", "test"
  end

  test do
    system "#{bin}/yacas", "--version"
  end
end