aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pcal.rb
blob: eadddd861961e95425043289bf94dff232df974e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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'
  md5 '0ed7e9bec81fe3bdd62f8af283bef704'

  skip_clean :all

  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


  def test
    system "#{bin}/pcal"
  end
end