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/"
|
2015-08-17 17:59:57 +00:00
|
|
|
url "https://bitbucket.org/hroptatyr/dateutils/downloads/dateutils-0.3.3.tar.xz"
|
|
|
|
mirror "https://github.com/hroptatyr/dateutils/releases/download/v0.3.3/dateutils-0.3.3.tar.xz"
|
|
|
|
sha256 "3eb0b1dbf4519c86bc890a12c78cc85eae2cc10c20ff894a90ed55140efeee7a"
|
2013-10-14 13:09:04 +00:00
|
|
|
|
2015-01-01 16:31:30 +00:00
|
|
|
bottle do
|
2015-08-17 18:35:25 +00:00
|
|
|
sha256 "c74ecda07d3a64ca6d7df955952b63eb5666a6fbb3292ba60effa57bba44e98b" => :yosemite
|
|
|
|
sha256 "ae5de247bc72823fc9568c8592ba44850388883068b702ed3ef81e1439c2e4f5" => :mavericks
|
|
|
|
sha256 "1d1f07a896893e1b2440067835c8de442b423a0fbaec66630740024bb790f1ef" => :mountain_lion
|
2015-01-01 16:31:30 +00:00
|
|
|
end
|
|
|
|
|
2015-08-17 17:59:57 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/hroptatyr/dateutils.git"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2013-10-14 13:09:04 +00:00
|
|
|
def install
|
2015-08-17 17:59:57 +00:00
|
|
|
system "autoreconf", "-iv" if build.head?
|
2013-10-14 13:09:04 +00:00
|
|
|
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
|