2013-07-15 19:34:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Checkbashisms < Formula
|
|
|
|
homepage 'http://manpages.ubuntu.com/manpages/natty/man1/checkbashisms.1.html'
|
2013-10-24 08:36:51 +00:00
|
|
|
# Get upgrades at https://launchpad.net/ubuntu/+source/devscripts/
|
|
|
|
url 'https://launchpad.net/ubuntu/+archive/primary/+files/devscripts_2.13.4.tar.xz'
|
|
|
|
sha1 '94e7225c2f9f9062cea35c8010e984ae98834c28'
|
2013-07-15 19:34:21 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace 'scripts/checkbashisms.pl', '###VERSION###', "#{version}ubuntu1"
|
|
|
|
bin.install 'scripts/checkbashisms.pl' => 'checkbashisms'
|
2013-10-24 08:35:32 +00:00
|
|
|
man1.install 'scripts/checkbashisms.1'
|
2013-07-15 19:34:21 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/checkbashisms --version | grep #{version}"
|
|
|
|
end
|
|
|
|
end
|