homebrew-core/Formula/ccal.rb

19 lines
498 B
Ruby
Raw Normal View History

require 'formula'
class Ccal < Formula
url 'http://ccal.chinesebay.com/ccal/ccal-2.5.3.tar.gz'
desc "Create Chinese calendars for print or browsing"
homepage 'http://ccal.chinesebay.com/ccal'
sha1 'b44d73804ef3ba9129ae196887509f99b508401c'
def install
system "make", "-e", "BINDIR=#{bin}", "install"
system "make", "-e", "MANDIR=#{man}", "install-man"
end
test do
2014-05-04 19:12:41 +00:00
output = shell_output("#{bin}/ccal 2 2014")
assert output.include?("Year JiaWu, Month 1X")
end
end