aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanboubird2012-11-25 20:34:59 +0900
committerAdam Vandenberg2012-11-25 12:28:38 -0800
commita4ae2c76ca46ff704dbb9f3eccfa20a0cb46895b (patch)
treed6ede69eb2c617641c9981a4c8a2b5377ae896de
parent158b8ac3bfaccc46cd1ec15c445d610360974e9b (diff)
downloadhomebrew-a4ae2c76ca46ff704dbb9f3eccfa20a0cb46895b.tar.bz2
pdsh 2.28
* add genders options Closes #16220. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/pdsh.rb28
1 files changed, 18 insertions, 10 deletions
diff --git a/Library/Formula/pdsh.rb b/Library/Formula/pdsh.rb
index d073a7d32..7315e2d90 100644
--- a/Library/Formula/pdsh.rb
+++ b/Library/Formula/pdsh.rb
@@ -2,20 +2,28 @@ require 'formula'
class Pdsh < Formula
homepage 'https://computing.llnl.gov/linux/pdsh.html'
- url 'http://sourceforge.net/projects/pdsh/files/pdsh/pdsh-2.26/pdsh-2.26.tar.bz2'
- sha1 'bdcec89760b93bd12107d8a785ca2710853cde75'
+ 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."
depends_on 'readline'
+ depends_on 'genders' => :optional if build.include? 'with-genders'
def install
- system "./configure", "--prefix=#{prefix}",
- "--mandir=#{man}",
- "--with-ssh",
- "--without-rsh",
- "--with-dshgroups",
- "--with-nodeupdown",
- "--with-readline",
- "--without-xcpu"
+ 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
system "make install"
end
end