blob: 7b5f2a1b3dfed26e1e63d1489ff2ee6d18e699b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  | 
require 'formula'
class Yafc < Formula
  homepage 'http://www.yafc-ftp.com/'
  url 'http://www.yafc-ftp.com/upload/yafc-1.2.5.tar.xz'
  sha1 'b8156689f92a5d9b684180394f1763500a25c1a5'
  depends_on 'xz' => :build
  depends_on 'readline'
  def install
    readline = Formula.factory('readline').opt_prefix
    system "./configure", "--prefix=#{prefix}",
                          "--with-readline=#{readline}"
    system "make", "install"
  end
  test do
    system "#{bin}/yafc", "-V"
  end
end
  |