homebrew-core/Formula/jcal.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

25 lines
613 B
Ruby

require 'formula'
class Jcal < Formula
homepage 'http://savannah.nongnu.org/projects/jcal/'
url 'http://download.savannah.gnu.org/releases/jcal/jcal-0.4.1.tar.gz'
sha1 '23710a685515e1e824494890d6befac9edf04143'
depends_on :autoconf
depends_on :automake
depends_on :libtool
def install
system "/bin/sh autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking"
system "make"
system "make install"
end
test do
system "#{bin}/jcal", "-y"
system "#{bin}/jdate"
end
end