2014-01-02 10:53:59 +00:00
|
|
|
class Atdtool < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Command-line interface for After the Deadline language checker"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://github.com/lpenz/atdtool"
|
|
|
|
url "https://github.com/lpenz/atdtool/archive/upstream/1.3.tar.gz"
|
|
|
|
sha256 "eb634fd9e8a57d5d5e4d8d2ca0dd9692610aa952e28fdf24909fd678a8f39155"
|
2014-01-02 10:53:59 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "txt2tags" => :build
|
2014-01-02 10:53:59 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# Change the PREFIX to match the homebrew one, since there is no way to
|
|
|
|
# pass it as an option for now edit the Makefile
|
|
|
|
# https://github.com/lpenz/atdtool/pull/8
|
2015-08-03 12:55:31 +00:00
|
|
|
inreplace "Makefile", "PREFIX=/usr/local", "PREFIX=#{prefix}"
|
2014-01-02 10:53:59 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/atdtool", "#{prefix}/AUTHORS"
|
|
|
|
end
|
|
|
|
end
|