37 lines
1.1 KiB
Ruby
37 lines
1.1 KiB
Ruby
class Unoconv < Formula
|
|
desc "Convert between any document format supported by OpenOffice"
|
|
homepage "http://dag.wiee.rs/home-made/unoconv/"
|
|
url "https://files.pythonhosted.org/packages/ab/40/b4cab1140087f3f07b2f6d7cb9ca1c14b9bdbb525d2d83a3b29c924fe9ae/unoconv-0.9.0.tar.gz"
|
|
sha256 "308ebfd98e67d898834876348b27caf41470cd853fbe2681cc7dacd8fd5e6031"
|
|
license "GPL-2.0"
|
|
revision 1
|
|
head "https://github.com/dagwieers/unoconv.git"
|
|
|
|
livecheck do
|
|
url :stable
|
|
end
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "b8926bf449026133df038d3f6fa221803173193765a1de2de70da7b1e9ea4c7a" => :catalina
|
|
sha256 "b8926bf449026133df038d3f6fa221803173193765a1de2de70da7b1e9ea4c7a" => :mojave
|
|
sha256 "b8926bf449026133df038d3f6fa221803173193765a1de2de70da7b1e9ea4c7a" => :high_sierra
|
|
end
|
|
|
|
depends_on "python@3.8"
|
|
|
|
def install
|
|
system "make", "install", "prefix=#{prefix}"
|
|
end
|
|
|
|
def caveats
|
|
<<~EOS
|
|
In order to use unoconv, a copy of LibreOffice between versions 3.6.0.1 - 4.3.x must be installed.
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
assert_match /office installation/, pipe_output("#{bin}/unoconv 2>&1")
|
|
end
|
|
end
|