aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jcal.rb
blob: 8962b17d6b91d7e5c11543b715a75587a8956727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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'
  md5 'd4f94ee612494cd0ab0cf1f537aaa33b'

  if MacOS.xcode_version >= "4.3"
    # when and if the tarball provides configure, remove autogen.sh and these deps
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  def install
    system "/bin/sh autogen.sh"
    system "./configure", "--prefix=#{prefix}",
                          "--disable-debug",
                          "--disable-dependency-tracking"
    system "make"
    system "make install"
  end

  def test
    system "#{bin}/jcal", "-y"
    system "#{bin}/jdate"
  end
end