29 lines
1.2 KiB
Ruby
29 lines
1.2 KiB
Ruby
class When < Formula
|
|
desc "Tiny personal calendar"
|
|
homepage "http://www.lightandmatter.com/when/when.html"
|
|
url "https://github.com/bcrowell/when/archive/1.1.40.tar.gz"
|
|
sha256 "1363d48c32c4bb528514abf012ae0a61e7c686504a047ce870e72e791447c3d1"
|
|
head "https://github.com/bcrowell/when.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "cdde93a2d4051259f3b693d3ef55b11f52765bb789b592e0622ae7b42e1e7100"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "c92678460a5deb08ee3c85dc76650914f691a3cd2e43ccb7424ba62882489947"
|
|
sha256 cellar: :any_skip_relocation, catalina: "88a5d4653d7062e0ac6d9913d35390126c1739fe04f0f458624f0199046d0fcd"
|
|
sha256 cellar: :any_skip_relocation, mojave: "18c0460162e7dcb98d499fb8622a471162897a91f4f844fe46f42a52182cc69e"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "a0623fd31e458f82217956bd98e72964634f5d632025336386e824a27fe654ae"
|
|
end
|
|
|
|
def install
|
|
system "make", "prefix=#{prefix}", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/".when/preferences").write <<~EOS
|
|
calendar = #{testpath}/calendar
|
|
EOS
|
|
|
|
(testpath/"calendar").write "2015 April 1, stay off the internet"
|
|
system bin/"when", "i"
|
|
end
|
|
end
|