2014-11-18 11:08:17 +00:00
|
|
|
class Odt2txt < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Convert OpenDocument files to plain text"
|
2014-11-18 11:08:17 +00:00
|
|
|
homepage "https://github.com/dstosberg/odt2txt/"
|
|
|
|
url "https://github.com/dstosberg/odt2txt/archive/v0.5.tar.gz"
|
2015-05-18 14:02:53 +00:00
|
|
|
sha256 "23a889109ca9087a719c638758f14cc3b867a5dcf30a6c90bf6a0985073556dd"
|
|
|
|
|
|
|
|
resource "sample" do
|
|
|
|
url "https://github.com/Turbo87/odt2txt/raw/samples/samples/sample-1.odt"
|
|
|
|
sha256 "78a5b17613376e50a66501ec92260d03d9d8106a9d98128f1efb5c07c8bfa0b2"
|
|
|
|
end
|
2014-11-18 11:08:17 +00:00
|
|
|
|
2014-11-21 10:21:24 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-05-18 20:59:11 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "dd54432a555e848fdb86e99cc4ad26b41e50ba52f045cd56056e630e6d83ac9b" => :yosemite
|
|
|
|
sha256 "a24f4fdd461b5d25014b52abcfa4dcaba0504d60fba396582aa677af381349c3" => :mavericks
|
|
|
|
sha256 "534b840b69bee074b4192d1d3c89a805f5647df4d9b12bddd0923bbdeedd8f9f" => :mountain_lion
|
2014-11-21 10:21:24 +00:00
|
|
|
end
|
|
|
|
|
2014-11-18 11:08:17 +00:00
|
|
|
def install
|
2015-05-18 14:02:53 +00:00
|
|
|
system "make", "install", "DESTDIR=#{prefix}"
|
2014-11-18 11:08:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
resource("sample").stage do |r|
|
|
|
|
system "odt2txt", r.cached_download
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|