homebrew-core/Formula/pastebinit.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

23 lines
771 B
Ruby

class Pastebinit < Formula
desc "Send things to pastebin from the command-line"
homepage "https://launchpad.net/pastebinit"
url "https://launchpad.net/pastebinit/trunk/1.4.1/+download/pastebinit-1.4.1.tar.gz"
sha256 "39e3dcb98d2aa9d65f86c648c375ca75fa312fc773e568963e9aefffea0c9bf7"
depends_on "python3"
depends_on "docbook2x" => :build
def install
inreplace "pastebinit", "/usr/bin/python3", Formula["python3"].opt_bin + "python3"
inreplace "pastebinit", "/usr/local/etc/pastebin.d", etc + "pastebin.d"
system "docbook2man", "pastebinit.xml"
bin.install "pastebinit"
etc.install "pastebin.d"
man1.install "PASTEBINIT.1" => "pastebinit.1"
libexec.install "po", "utils"
end
test do
system "date | pastebinit"
end
end