homebrew-core/Formula/gcal.rb

25 lines
869 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Gcal < Formula
desc "Gcal is a program for calculating and printing calendars"
homepage "https://www.gnu.org/software/gcal/"
2015-09-10 19:59:25 +00:00
url "http://ftpmirror.gnu.org/gcal/gcal-4.tar.xz"
mirror "https://ftp.gnu.org/gnu/gcal/gcal-4.tar.xz"
sha256 "59c5c876b12ec70649d90e2ce76afbe2f4ed93503d49ec39e5c575b3aef8ff6e"
2015-07-16 04:50:59 +00:00
bottle do
cellar :any
2015-09-11 00:59:41 +00:00
sha256 "bf90b61c3f45eb4e01381e4de84dfc72025966945fcf0bc3040af1ced2de5105" => :yosemite
sha256 "845e43c2673d6e39d862f08de0dda0182c7d32cbf9f79afa90880d8d0cdfd83c" => :mavericks
sha256 "dbdab2dbae31f459ded85d2ed50f6340930fdd9b7d42dac6df15213ace98d7a7" => :mountain_lion
2015-07-16 04:50:59 +00:00
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make", "install"
end
test do
date = shell_output("date +%Y")
assert_match date, shell_output("#{bin}/gcal")
end
end