aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/irrtoolset.rb
blob: 928af534a28b4e8914da494a52587b02bae91dc2 (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
require 'formula'

class Irrtoolset < Formula
  homepage 'http://irrtoolset.isc.org/'
  url 'http://ftp.isc.org/isc/IRRToolSet/IRRToolSet-5.0.1/irrtoolset-5.0.1.tar.gz'
  sha1 '19510275f5f64608e4a683c744c14f8e900ea19e'

  head do
    url 'svn://irrtoolset.isc.org/trunk'

    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  depends_on 'pkg-config' => :build

  def install
    if build.head?
      system "glibtoolize"
      system "autoreconf -i"
    end

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

  test do
    system "#{bin}/peval", "ANY"
  end
end