class When < Formula desc "Tiny personal calendar" homepage "http://www.lightandmatter.com/when/when.html" url "https://mirrors.ocf.berkeley.edu/debian/pool/main/w/when/when_1.1.37.orig.tar.gz" sha256 "475e4b5070b383d2ad610e6610f8d2ff7995feab96e5d4de8d676063ad204733" head "https://github.com/bcrowell/when.git" bottle do cellar :any_skip_relocation sha256 "5f1858e4c42591c1c30c54f4bf1fecd1961b1fc2a6990f45289720ebc1ad4892" => :high_sierra sha256 "5f1858e4c42591c1c30c54f4bf1fecd1961b1fc2a6990f45289720ebc1ad4892" => :sierra sha256 "5f1858e4c42591c1c30c54f4bf1fecd1961b1fc2a6990f45289720ebc1ad4892" => :el_capitan 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