aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fsh.rb
blob: 523a93a3a76c7f94c140185bf29530a7ae23964d (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
class Fsh < Formula
  homepage "https://www.lysator.liu.se/fsh/"
  url "https://www.lysator.liu.se/fsh/fsh-1.2.tar.gz"
  sha1 "c2f1e923076d368fbb5504dcd1d33c74024b0d1b"

  bottle do
    cellar :any
    sha1 "0032ffd126903008825b9f3d1d7a6a261da8411e" => :yosemite
    sha1 "fa0639c0b04a59327078f3c56fd416530ecf48ee" => :mavericks
    sha1 "4cb087d1b5b153e22cf726c6e986615620551273" => :mountain_lion
  end

  def install
    # FCNTL was deprecated and needs to be changed to fcntl
    inreplace "fshcompat.py", "FCNTL", "fcntl"

    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--infodir=#{info}"
    system "make", "install"
  end

  test do
    system "fsh", "-V"
  end
end