2012-01-01 18:17:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pcal < Formula
|
|
|
|
homepage 'http://pcal.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/pcal/pcal/pcal-4.11.0/pcal-4.11.0.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '214bcb4c4b7bc986ae495c96f2ab169233a7f973'
|
2012-01-01 18:17:25 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-01-01 18:17:25 +00:00
|
|
|
system "#{bin}/pcal"
|
|
|
|
end
|
|
|
|
end
|