aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-11-12 20:46:19 -0800
committerAdam Vandenberg2013-11-12 21:42:49 -0800
commit6d5d887750abc9526cf3a8dab7377d53589013fb (patch)
tree37ffa10251b75446093a95d482c5755e3897f354 /Library
parent8e38767b6440942e4cb6838df273333040375cce (diff)
downloadhomebrew-6d5d887750abc9526cf3a8dab7377d53589013fb.tar.bz2
normalize/num-utils conflict
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/normalize.rb2
-rw-r--r--Library/Formula/num-utils.rb10
2 files changed, 8 insertions, 4 deletions
diff --git a/Library/Formula/normalize.rb b/Library/Formula/normalize.rb
index f2e29a81b..a0e24feb4 100644
--- a/Library/Formula/normalize.rb
+++ b/Library/Formula/normalize.rb
@@ -9,6 +9,8 @@ class Normalize < Formula
depends_on 'mad' => :recommended
+ conflicts_with 'num-utils', :because => 'both install `normalize` binaries'
+
def install
args = %W[
--disable-debug
diff --git a/Library/Formula/num-utils.rb b/Library/Formula/num-utils.rb
index 117683e5c..070e13f02 100644
--- a/Library/Formula/num-utils.rb
+++ b/Library/Formula/num-utils.rb
@@ -5,11 +5,13 @@ class NumUtils < Formula
url "http://suso.suso.org/programs/num-utils/downloads/num-utils-0.5.tar.gz"
sha1 '3fc6130874129fe1e98db6db8b3dc43f0e1a89ac'
+ conflicts_with 'normalize', :because => 'both install `normalize` binaries'
+
def install
- %w(average bound interval normalize numgrep numprocess numsum random range round).each do |program|
- system "pod2man", program, "#{program}.1"
- bin.install program
- man1.install "#{program}.1"
+ %w(average bound interval normalize numgrep numprocess numsum random range round).each do |p|
+ system "pod2man", p, "#{p}.1"
+ bin.install p
+ man1.install "#{p}.1"
end
end
end