2013-09-24 14:39:18 +00:00
|
|
|
class GitCal < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GitHub-like contributions calendar but on the command-line"
|
2015-06-14 07:41:55 +00:00
|
|
|
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"
|
2013-09-24 14:39:18 +00:00
|
|
|
|
2015-06-14 08:25:01 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "0ceb50d8f6038f54709422700ca0347e5758880b3256193059fef826c02370ea" => :yosemite
|
|
|
|
sha256 "06054ffa5848f289225e3bcd9978bfcfd1238e0e0de5a060b4c680a66b44fa51" => :mavericks
|
|
|
|
sha256 "7d6308aa47d99e203173fa12896f24bb11b9a9aba91c89de9199fed0a1f6db74" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-09-24 14:39:18 +00:00
|
|
|
def install
|
2015-06-14 07:41:55 +00:00
|
|
|
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
2013-09-24 14:39:18 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2013-10-16 06:59:43 +00:00
|
|
|
# git-cal fails when run outside of a git repo.
|
|
|
|
HOMEBREW_REPOSITORY.cd do
|
|
|
|
system "#{bin}/git-cal"
|
|
|
|
end
|
2013-09-24 14:39:18 +00:00
|
|
|
end
|
|
|
|
end
|