Skip to content
This repository
Browse code

Add more autoconf deps where appropriate

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit e98d63ad26c49af92fcd8ae6eef1d15d188bd3a0 1 parent e459d51
Jack Nagel authored May 15, 2012
3  Library/Formula/asciidoc.rb
@@ -6,10 +6,11 @@ class Asciidoc < Formula
6 6
   head 'https://code.google.com/p/asciidoc/', :using => :hg
7 7
   homepage 'http://www.methods.co.nz/asciidoc'
8 8
 
  9
+  depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3 and ARGV.build_head?
9 10
   depends_on 'docbook'
10 11
 
11 12
   def install
12  
-    system "autoconf" if ARGV.build_head? and not File.exists? "./configure"
  13
+    system "autoconf" if ARGV.build_head?
13 14
     system "./configure", "--prefix=#{prefix}"
14 15
 
15 16
     # otherwise OS X's xmllint bails out
2  Library/Formula/bash-completion.rb
@@ -6,7 +6,7 @@ class BashCompletion < Formula
6 6
   md5 'a1262659b4bbf44dc9e59d034de505ec'
7 7
   head 'git://git.debian.org/git/bash-completion/bash-completion.git'
8 8
 
9  
-  depends_on "automake" if ARGV.build_head? and MacOS.xcode_version >= "4.3"
  9
+  depends_on "automake" => :build if ARGV.build_head? and MacOS.xcode_version.to_f >= 4.3
10 10
 
11 11
   def install
12 12
     inreplace "bash_completion" do |s|
4  Library/Formula/bulk_extractor.rb
@@ -8,8 +8,8 @@ class BulkExtractor < Formula
8 8
   depends_on 'afflib' => :optional
9 9
   depends_on 'exiv2' => :optional
10 10
   depends_on 'libewf' => :optional
11  
-  depends_on 'autoconf' if MacOS.xcode_version >= "4.3"
12  
-  depends_on 'automake' if MacOS.xcode_version >= "4.3"
  11
+  depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3
  12
+  depends_on 'automake' => :build if MacOS.xcode_version.to_f >= 4.3
13 13
 
14 14
   def install
15 15
     system "autoreconf", "-i"
2  Library/Formula/cdparanoia.rb
@@ -5,6 +5,8 @@ class Cdparanoia < Formula
5 5
   homepage 'http://www.xiph.org/paranoia/'
6 6
   md5 'b304bbe8ab63373924a744eac9ebc652'
7 7
 
  8
+  depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3
  9
+
8 10
   fails_with :llvm do
9 11
     build 2326
10 12
     cause '"File too small" error while linking'
2  Library/Formula/ctags.rb
@@ -7,6 +7,8 @@ class Ctags < Formula
7 7
 
8 8
   head 'https://ctags.svn.sourceforge.net/svnroot/ctags/trunk'
9 9
 
  10
+  depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3
  11
+
10 12
   fails_with :llvm do
11 13
     build 2335
12 14
     cause "Resulting executable generates erroneous tag files"
2  Library/Formula/dash.rb
@@ -7,7 +7,7 @@ class Dash < Formula
7 7
 
8 8
   head 'https://git.kernel.org/pub/scm/utils/dash/dash.git'
9 9
 
10  
-  depends_on "automake" if MacOS.xcode_version >= "4.3" and ARGV.build_head?
  10
+  depends_on "automake" => :build if MacOS.xcode_version >= "4.3" and ARGV.build_head?
11 11
 
12 12
   def install
13 13
     if ARGV.build_head?
4  Library/Formula/fish.rb
@@ -8,8 +8,8 @@ class Fish < Formula
8 8
   head 'git://gitorious.org/fish-shell/fish-shell.git'
9 9
 
10 10
   # Indeed, the head build always builds documentation
11  
-  depends_on 'doxygen' if ARGV.build_head?
12  
-
  11
+  depends_on 'doxygen' => :build if ARGV.build_head?
  12
+  depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3 and ARGV.build_head?
13 13
   depends_on 'readline'
14 14
   skip_clean 'share/doc'
15 15
 
2  Library/Formula/libagg.rb
@@ -5,9 +5,9 @@ class Libagg < Formula
5 5
   url 'http://www.antigrain.com/agg-2.5.tar.gz'
6 6
   md5 '0229a488bc47be10a2fee6cf0b2febd6'
7 7
 
  8
+  depends_on "automake" => :build if MacOS.xcode_version >= "4.3"
8 9
   depends_on 'pkg-config' => :build
9 10
   depends_on 'sdl'
10  
-  depends_on "automake" if MacOS.xcode_version >= "4.3"
11 11
 
12 12
   def install
13 13
     ENV.x11 # For freetype
2  Library/Formula/pcb.rb
@@ -8,6 +8,7 @@ class Pcb < Formula
8 8
 
9 9
   head 'git://git.gpleda.org/pcb.git'
10 10
 
  11
+  depends_on "automake" => :build if MacOS.xcode_version >= "4.3"
11 12
   depends_on 'pkg-config' => :build
12 13
   depends_on 'intltool'
13 14
   depends_on 'gettext'
@@ -15,7 +16,6 @@ class Pcb < Formula
15 16
   depends_on 'gd'
16 17
   depends_on 'glib'
17 18
   depends_on 'gtkglext'
18  
-  depends_on "automake" if MacOS.xcode_version >= "4.3"
19 19
 
20 20
   # See comments in intltool formula
21 21
   depends_on 'XML::Parser' => :perl
2  Library/Formula/recode.rb
@@ -6,7 +6,7 @@ class Recode < Formula
6 6
   md5 'f82e9a6ede9119268c13493c9add2809'
7 7
 
8 8
   depends_on "gettext"
9  
-  depends_on "libtool" if MacOS.xcode_version >= "4.3"
  9
+  depends_on "libtool" => :build if MacOS.xcode_version.to_f >= 4.3
10 10
 
11 11
   # Patches from MacPorts
12 12
   # No reason for patch given, no link to patches given. Someone shoot that guy :P
2  Library/Formula/sound-touch.rb
@@ -5,6 +5,8 @@ class SoundTouch < Formula
5 5
   homepage 'http://www.surina.net/soundtouch/'
6 6
   md5 '5456481d8707d2a2c27466ea64a099cb'
7 7
 
  8
+  depends_on 'autoconf' => :build unless MacOS.xcode_version.to_f >= 4.3
  9
+
8 10
   def install
9 11
     # SoundTouch has a small amount of inline assembly. The assembly has two labeled
10 12
     # jumps. When compiling with gcc optimizations the inline assembly is duplicated
1  Library/Formula/sshfs.rb
@@ -9,7 +9,6 @@ class Sshfs < Formula
9 9
   depends_on 'pkg-config' => :build
10 10
   depends_on 'fuse4x'
11 11
   depends_on 'glib'
12  
-  depends_on "automake" if MacOS.xcode_version >= "4.3"
13 12
 
14 13
   if MacOS.xcode_version >= "4.3"
15 14
     # remove the autoreconf if possible, no comment provided about why it is there
1  Library/Formula/urweb.rb
@@ -7,7 +7,6 @@ class Urweb < Formula
7 7
   head 'http://hg.impredicative.com/urweb', :using => :hg
8 8
 
9 9
   depends_on 'mlton'
10  
-  depends_on "automake" if MacOS.xcode_version >= "4.3"
11 10
 
12 11
   if MacOS.xcode_version >= "4.3"
13 12
     # remove the autoreconf if possible, no comment provided about why it is there

0 notes on commit e98d63a

Please sign in to comment.
Something went wrong with that request. Please try again.