aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexis Hildebrandt2015-01-06 20:49:13 +0100
committerJack Nagel2015-01-12 21:08:29 -0500
commit94258e0e6e790ea172ac3d004d65c1a98a1758d2 (patch)
treea41dc73064e18b186f4aa528cc61328e3d484008 /Library
parent55c20cebc69cd62f9bde65fc2dd9d73857453e07 (diff)
downloadhomebrew-94258e0e6e790ea172ac3d004d65c1a98a1758d2.tar.bz2
wyrd: modernize
* Remove obsolete require 'formula' * Replace single quotes with double quotes * Split system argument string * Add test Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/wyrd.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Formula/wyrd.rb b/Library/Formula/wyrd.rb
index 5500efa64..4cf5d40f5 100644
--- a/Library/Formula/wyrd.rb
+++ b/Library/Formula/wyrd.rb
@@ -1,9 +1,7 @@
-require 'formula'
-
class Wyrd < Formula
- homepage 'http://pessimization.com/software/wyrd/'
- url 'http://pessimization.com/software/wyrd/wyrd-1.4.6.tar.gz'
- sha1 'aaeca29b844825f45aadcf5207f4d1c875e4dc82'
+ homepage "http://pessimization.com/software/wyrd/"
+ url "http://pessimization.com/software/wyrd/wyrd-1.4.6.tar.gz"
+ sha1 "aaeca29b844825f45aadcf5207f4d1c875e4dc82"
bottle do
sha1 "dde6d73145bc484a9f0f62c909c20b26f5029e8d" => :yosemite
@@ -11,9 +9,9 @@ class Wyrd < Formula
sha1 "dc2c60f856f3a7b7751a169c4c1ad2e860612af7" => :mountain_lion
end
- depends_on 'remind'
- depends_on 'objective-caml' => :build
- depends_on 'camlp4' => :build
+ depends_on "remind"
+ depends_on "objective-caml" => :build
+ depends_on "camlp4" => :build
def install
ENV.deparallelize
@@ -21,6 +19,10 @@ class Wyrd < Formula
"--prefix=#{prefix}",
"--enable-utf8"
system "make"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ assert_equal "REM Jan 1 2015 AT 00:01 MSG Happy New Year!\n", shell_output("#{bin}/wyrd --add 'Happy New Year! on 2015-01-1 at 00:01' /dev/stdout")
end
end