homebrew-core/Formula/pdsh.rb

29 lines
875 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Pdsh < Formula
homepage 'https://code.google.com/p/pdsh/'
url 'http://pdsh.googlecode.com/files/pdsh-2.29.tar.bz2'
sha1 'a3e44ffba151f023d72df67cd7a7d37b4a80c80e'
option "without-dshgroups", "Compile without dshgroups which conflicts with genders. The option should be specified to load genders module first instead of dshgroups."
depends_on 'readline'
2013-01-27 02:47:59 +00:00
depends_on 'genders' => :optional
def install
args = ["--prefix=#{prefix}",
"--mandir=#{man}",
"--with-ssh",
"--without-rsh",
"--with-nodeupdown",
"--with-readline",
"--without-xcpu"]
2013-01-27 02:47:59 +00:00
args << '--with-genders' if build.with? 'genders'
args << ((build.include? 'without-dshgroups') ? '--without-dshgroups' : '--with-dshgroups')
system "./configure", *args
system "make install"
end
end