homebrew-core/Formula/pcal.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

20 lines
509 B
Ruby

require 'formula'
class Pcal < Formula
homepage 'http://pcal.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/pcal/pcal/pcal-4.11.0/pcal-4.11.0.tgz'
sha1 '214bcb4c4b7bc986ae495c96f2ab169233a7f973'
def install
ENV.deparallelize
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
# Install manually; easier than fixing paths in makefile
bin.install 'exec/pcal'
man1.install gzip('doc/pcal.man') => 'pcal.1.gz'
end
test do
system "#{bin}/pcal"
end
end