aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/when.rb23
1 files changed, 16 insertions, 7 deletions
diff --git a/Library/Formula/when.rb b/Library/Formula/when.rb
index cb7054fb8..41e6876ca 100644
--- a/Library/Formula/when.rb
+++ b/Library/Formula/when.rb
@@ -1,12 +1,21 @@
-require 'formula'
-
class When < Formula
- homepage 'http://www.lightandmatter.com/when/when.html'
- url 'http://ftp.de.debian.org/debian/pool/main/w/when/when_1.1.33.orig.tar.gz'
- sha1 'e314a64d74f79be07da1ade6d39a1fc51205f81d'
+ homepage "http://www.lightandmatter.com/when/when.html"
+ url "https://mirrors.kernel.org/debian/pool/main/w/when/when_1.1.34.orig.tar.gz"
+ mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/w/when/when_1.1.34.orig.tar.gz"
+ sha256 "ce0540bde96b361d6d0770803901364a687d971ffedd33e36f8f8bef32b19600"
+ head "https://github.com/bcrowell/when.git"
def install
- bin.install 'when'
- man1.install 'when.1'
+ system "make", "prefix=#{prefix}", "install"
+ end
+
+ test do
+ temp_home = Pathname(ENV["HOME"])
+ (temp_home/".when/preferences").write <<-EOS.undent
+ calendar = #{testpath}/calendar
+ EOS
+
+ (testpath/"calendar").write "2015 April 1, stay off the internet"
+ system bin/"when", "i"
end
end