2011-03-10 05:11:03 +00:00
|
|
|
class Ddate < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Converts boring normal dates to fun Discordian Date"
|
2014-06-07 15:14:49 +00:00
|
|
|
homepage "https://github.com/bo0ts/ddate"
|
|
|
|
url "https://github.com/bo0ts/ddate/archive/v0.2.2.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "d53c3f0af845045f39d6d633d295fd4efbe2a792fd0d04d25d44725d11c678ad"
|
2010-08-30 21:03:03 +00:00
|
|
|
|
2014-06-20 16:57:59 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "af6bacba82ac71f204e915ae669b98cd202e79ad" => :mavericks
|
|
|
|
sha1 "8df50f3601d86819e0b491f7508f6267c3252aa0" => :mountain_lion
|
|
|
|
sha1 "7c4699766bea102425380bde8914c95e53fa99ff" => :lion
|
|
|
|
end
|
|
|
|
|
2010-08-30 21:03:03 +00:00
|
|
|
def install
|
2010-10-22 14:16:35 +00:00
|
|
|
system ENV.cc, "ddate.c", "-o", "ddate"
|
2014-06-07 15:14:49 +00:00
|
|
|
bin.install "ddate"
|
|
|
|
man1.install "ddate.1"
|
2010-08-30 21:03:03 +00:00
|
|
|
end
|
2014-06-20 21:28:59 +00:00
|
|
|
|
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
output = shell_output("#{bin}/ddate 20 6 2014").strip
|
|
|
|
assert_equal "Sweetmorn, Confusion 25, 3180 YOLD", output
|
2014-06-20 21:28:59 +00:00
|
|
|
end
|
2010-08-30 21:03:03 +00:00
|
|
|
end
|