2010-08-19 21:24:04 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Pdsh < Formula
2010-08-19 21:24:04 +00:00
homepage 'https://computing.llnl.gov/linux/pdsh.html'
2012-11-25 11:34:59 +00:00
url 'http://pdsh.googlecode.com/files/pdsh-2.28.tar.bz2'
sha1 'd83612e357b00566623e668fb24e93836de89fec'
option " with-genders " , " Compile with genders support. "
option " without-dshgroups " , " Compile without dshgroups which conflicts with genders. The option should be specified to load genders module first instead of dshgroups. "
2010-08-19 21:24:04 +00:00
2012-11-11 03:12:26 +00:00
depends_on 'readline'
2012-11-25 11:34:59 +00:00
depends_on 'genders' = > :optional if build . include? 'with-genders'
2010-08-19 21:24:04 +00:00
def install
2012-11-25 11:34:59 +00:00
args = [ " --prefix= #{ prefix } " ,
" --mandir= #{ man } " ,
" --with-ssh " ,
" --without-rsh " ,
" --with-nodeupdown " ,
" --with-readline " ,
" --without-xcpu " ]
args << '--with-genders' if build . include? 'with-genders'
args << ( ( build . include? 'without-dshgroups' ) ? '--without-dshgroups' : '--with-dshgroups' )
system " ./configure " , * args
2010-08-19 21:24:04 +00:00
system " make install "
end
end