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

class Zshdb < Formula
  homepage 'https://github.com/rocky/zshdb'
  url 'https://downloads.sourceforge.net/project/bashdb/zshdb/0.08/zshdb-0.08.tar.bz2'
  sha1 '29f860d0130debe6a966ee1e12f2f3046c78897b'

  head do
    url 'https://github.com/rocky/zshdb.git'
    depends_on "autoconf" => :build
    depends_on "automake" => :build
  end

  depends_on 'zsh'

  def install
    if build.head?
      system "autoreconf", "-fvi"
      system "autoconf"
    end

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-zsh=#{HOMEBREW_PREFIX}/bin/zsh"
    system "make install"
  end
end