2011-12-04 11:21:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Jcal < Formula
|
2012-02-14 05:45:51 +00:00
|
|
|
homepage 'http://savannah.nongnu.org/projects/jcal/'
|
2011-12-04 11:21:18 +00:00
|
|
|
url 'http://download.savannah.gnu.org/releases/jcal/jcal-0.4.1.tar.gz'
|
|
|
|
md5 'd4f94ee612494cd0ab0cf1f537aaa33b'
|
|
|
|
|
2012-02-28 15:39:22 +00:00
|
|
|
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
|
|
|
|
|
2011-12-04 11:21:18 +00:00
|
|
|
def install
|
|
|
|
system "/bin/sh autogen.sh"
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/jcal", "-y"
|
2012-02-14 05:45:51 +00:00
|
|
|
system "#{bin}/jdate"
|
2011-12-04 11:21:18 +00:00
|
|
|
end
|
|
|
|
end
|