2013-10-14 13:09:04 +00:00
|
|
|
class Dateutils < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Tools to manipulate dates with a focus on financial data"
|
2015-01-01 16:01:20 +00:00
|
|
|
homepage "http://www.fresse.org/dateutils/"
|
|
|
|
url "https://bitbucket.org/hroptatyr/dateutils/downloads/dateutils-0.2.5.tar.xz"
|
|
|
|
sha1 "47f2ba469daff7586d47473f54a77848b724ba45"
|
2013-10-14 13:09:04 +00:00
|
|
|
|
2015-01-01 16:31:30 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "bcacbd417ff8109bd9bd73aaa0397e7738cda974" => :yosemite
|
|
|
|
sha1 "aea972b1c122db46172d6e37fbfd3fd015fa7bdc" => :mavericks
|
|
|
|
sha1 "628ce464741daf92af6dd31d8c93bb012324ae87" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-10-14 13:09:04 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
2015-01-01 16:01:20 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal "2012-03-01-00", shell_output("#{bin}/dconv 2012-03-04 -f \"%Y-%m-%c-%w\"").strip
|
|
|
|
end
|
2013-10-14 13:09:04 +00:00
|
|
|
end
|