41 lines
1.5 KiB
Ruby
41 lines
1.5 KiB
Ruby
class TranslateToolkit < Formula
|
|
include Language::Python::Virtualenv
|
|
|
|
desc "Toolkit for localization engineers"
|
|
homepage "https://toolkit.translatehouse.org/"
|
|
url "https://github.com/translate/translate/archive/2.3.1.tar.gz"
|
|
sha256 "0b2d79f0023ce545c6240829624ce1e1ce54ea7bc7913428880345ff423fd999"
|
|
head "https://github.com/translate/translate.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "655232d6bfccf14a3be633b36f89f3cc29bc804c788436124c8c9e11214d5b75" => :mojave
|
|
sha256 "c54103dd3a9194ddaa950425a5788fee88980eb108802f4bf84c8f8ef17b6d20" => :high_sierra
|
|
sha256 "f03d495e61d79fae702eaa31e1043b23ba00ed9845438de6705b2cc3a2336c92" => :sierra
|
|
end
|
|
|
|
depends_on "python"
|
|
|
|
resource "argparse" do
|
|
url "https://files.pythonhosted.org/packages/18/dd/e617cfc3f6210ae183374cd9f6a26b20514bbb5a792af97949c5aacddf0f/argparse-1.4.0.tar.gz"
|
|
sha256 "62b089a55be1d8949cd2bc7e0df0bddb9e028faefc8c32038cc84862aefdd6e4"
|
|
end
|
|
|
|
resource "diff-match-patch" do
|
|
url "https://files.pythonhosted.org/packages/22/82/46eaeab04805b4fac17630b59f30c4f2c8860988bcefd730ff4f1992908b/diff-match-patch-20121119.tar.gz"
|
|
sha256 "9dba5611fbf27893347349fd51cc1911cb403682a7163373adacc565d11e2e4c"
|
|
end
|
|
|
|
resource "six" do
|
|
url "https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz"
|
|
sha256 "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
|
|
end
|
|
|
|
def install
|
|
virtualenv_install_with_resources
|
|
end
|
|
|
|
test do
|
|
system bin/"pretranslate", "-h"
|
|
end
|
|
end
|