aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlex Dunn2015-04-01 00:08:42 -0700
committerMike McQuaid2015-04-02 11:26:57 +0100
commite178cd5c8dd2d2c32547b48f8b92c384c9b16b52 (patch)
treee6cdd0c9cd34c18bc68d25894ea412c256d45b62 /Library
parent5ed2d79a66ef0fba2968c6cfaed9d502940fd86c (diff)
downloadhomebrew-e178cd5c8dd2d2c32547b48f8b92c384c9b16b52.tar.bz2
when 1.1.34
Closes #38258. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-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