aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libtecla.rb
blob: 8c3801f132f5ffb48ce8bcb73c6ba7363a708d1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require "formula"

class Libtecla < Formula
  homepage "http://www.astro.caltech.edu/~mcs/tecla/index.html"
  url "http://www.astro.caltech.edu/~mcs/tecla/libtecla-1.6.2.tar.gz"
  sha1 "2eae391d29ee02d921e73c4acc78350c9b03d618"

  bottle do
    cellar :any
    sha1 "d9e5da2740a39ddb9ef8a98b8c4cf0f779ab5741" => :yosemite
    sha1 "e2bd07ac82c62735da70bdd7126f7afef8f7da95" => :mavericks
    sha1 "cfe81b793c6a6f7a42b438862acd4f2872d21e27" => :mountain_lion
  end

  def install
    ENV.j1
    system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
    # Emailed upstream with this fix on 31st October 2014.
    inreplace "Makefile", "libgcc.a", ""
    system "make", "install"
  end
end