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