29 lines
933 B
Ruby
29 lines
933 B
Ruby
class GitCal < Formula
|
|
desc "GitHub-like contributions calendar but on the command-line"
|
|
homepage "https://github.com/k4rthik/git-cal"
|
|
url "https://github.com/k4rthik/git-cal/archive/v0.9.1.tar.gz"
|
|
sha256 "783fa73197b349a51d90670480a750b063c97e5779a5231fe046315af0a946cd"
|
|
|
|
head "https://github.com/k4rthik/git-cal.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
revision 1
|
|
sha256 "8f928d65dc3414900ace5751d9e93bc712f03ffcabfefeb0d659e18db3998622" => :el_capitan
|
|
sha256 "d61d27644f236dd221d2ea15aea7ee088afaf08c305217084b63fb85cb0d7dba" => :yosemite
|
|
sha256 "2f09af33dd202d56be91b6bb7ead320cbc322332e411a7b712879a9198364e64" => :mavericks
|
|
end
|
|
|
|
def install
|
|
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
# git-cal fails when run outside of a git repo.
|
|
HOMEBREW_REPOSITORY.cd do
|
|
system "#{bin}/git-cal"
|
|
end
|
|
end
|
|
end
|