aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/odt2txt.rb
blob: 6a73a500a85b313a566e5b95954825f7a6c5e23d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require "formula"

class Odt2txt < Formula
  homepage "https://github.com/dstosberg/odt2txt/"
  url "https://github.com/dstosberg/odt2txt/archive/v0.5.tar.gz"
  sha1 "deac1995f02d3b907843dd99a975b201a5f55177"

  bottle do
    cellar :any
    sha1 "21e4d5f82d941a5ba13f191b6c4011aa456b5c7e" => :yosemite
    sha1 "0bc3eb54110df5ba74f18f0b89dfe6819e7e3b75" => :mavericks
    sha1 "064b2423089db500bf5d850f97b95e32bc947cab" => :mountain_lion
  end

  def install
    system "make", "install"
  end

  resource "sample" do
    url "https://github.com/Turbo87/odt2txt/raw/samples/samples/sample-1.odt"
    sha1 "0f29df4fd772c407d7d7b105281cd926f0204b17"
  end

  test do
    resource("sample").stage do |r|
      system "odt2txt", r.cached_download
    end
  end
end