aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pth.rb
blob: f661bf129f8dd7d043ffeab82297a05c250efa37 (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 Pth < Formula
  homepage "http://www.gnu.org/software/pth/"
  url "http://ftpmirror.gnu.org/pth/pth-2.0.7.tar.gz"
  mirror "http://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz"
  sha1 "9a71915c89ff2414de69fe104ae1016d513afeee"

  bottle do
    cellar :any
    revision 1
    sha1 "7453010be4970e6ac7a15becaeab7ce324307c9b" => :yosemite
    sha1 "1b5d53c617906cd9417bb462fd5b8c93da3c3f66" => :mavericks
    sha1 "4c286bdadd1d6f3ad49f6df0012f252bbbd8a512" => :mountain_lion
  end

  def install
    ENV.deparallelize
    # Note: shared library will not be build with --disable-debug, so don't add that flag
    system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
    system "make"
    system "make", "test"
    system "make", "install"
  end

  test do
    system "#{bin}/pth-config", "--all"
  end
end