homebrew-core/Formula/atdtool.rb
2018-08-26 17:30:22 +02:00

28 lines
1.1 KiB
Ruby

class Atdtool < Formula
desc "Command-line interface for After the Deadline language checker"
homepage "https://github.com/lpenz/atdtool"
url "https://github.com/lpenz/atdtool/archive/upstream/1.3.3.tar.gz"
sha256 "3e928721388cf6f58b7e663ebc5508f26d180b1c07d5b8119212356c66e57fe8"
bottle do
cellar :any_skip_relocation
sha256 "f46618b97d24a264a5d2ffbc9c4b27ec20e2b0b146cc10f7adb7db540ec3fa40" => :mojave
sha256 "c1c1b8c7468e0b649ba93da43344eaed88f3e8db4e09bd656398f91b6ebaeef4" => :high_sierra
sha256 "c1c1b8c7468e0b649ba93da43344eaed88f3e8db4e09bd656398f91b6ebaeef4" => :sierra
sha256 "c1c1b8c7468e0b649ba93da43344eaed88f3e8db4e09bd656398f91b6ebaeef4" => :el_capitan
end
depends_on "python@2"
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
system "python", *Language::Python.setup_install_args(libexec)
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
prefix.install libexec/"share"
end
test do
system "#{bin}/atdtool", "--help"
end
end