Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/mxcl/homebrew into powerpc
Browse files Browse the repository at this point in the history
  • Loading branch information
robert914 committed Feb 28, 2012
2 parents 8968b45 + 2559c5f commit f5ba675
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Library/Formula/aplus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def patches
end

if MacOS.xcode_version >= "4.3"
depends_on "automake"
depends_on "libtool"
depends_on "automake" => :build
depends_on "libtool" => :build
end

def install
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/autoconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def patches
end

def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "./configure", "--prefix=#{prefix}"
system "make install"
end

Expand Down
5 changes: 2 additions & 3 deletions Library/Formula/automake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ class Automake < Formula
mirror 'http://ftp.gnu.org/gnu/automake/automake-1.11.3.tar.gz'
md5 '93ecb319f0365cb801990b00f658d026'

depends_on "autoconf"
depends_on "autoconf" => :build

if MacOS.xcode_version.to_f < 4.3 or File.file? "/usr/bin/automake"
keg_only "Xcode (up to and including 4.2) provides (a rather old) Automake."
end

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "./configure", "--prefix=#{prefix}"
system "make install"

(share/"aclocal/dirlist").write <<-EOS.undent
Expand Down
4 changes: 2 additions & 2 deletions Library/Formula/fuse4x.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class Fuse4x < Formula
depends_on 'fuse4x-kext'

if MacOS.xcode_version >= "4.3"
depends_on "automake"
depends_on "libtool"
depends_on "automake" => :build
depends_on "libtool" => :build
end

def install
Expand Down
4 changes: 2 additions & 2 deletions Library/Formula/libdnet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class Libdnet < Formula
md5 '9253ef6de1b5e28e9c9a62b882e44cc9'

if ARGV.build_head? and MacOS.xcode_version >= "4.3"
depends_on "automake"
depends_on "libtool"
depends_on "automake" => :build
depends_on "libtool" => :build
end

def install
Expand Down
4 changes: 2 additions & 2 deletions Library/Formula/libimobiledevice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Libimobiledevice < Formula
depends_on 'gnutls'

if MacOS.xcode_version >= "4.3" and ARGV.build_head?
depends_on 'libtool'
depends_on 'autoconf'
depends_on 'libtool' => :build
depends_on 'autoconf' => :build
end

def install
Expand Down
4 changes: 2 additions & 2 deletions Library/Formula/libmikmod.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def patches
end

if MacOS.xcode_version >= "4.3"
depends_on "automake"
depends_on "libtool"
depends_on "automake" => :build
depends_on "libtool" => :build
end

def install
Expand Down
5 changes: 3 additions & 2 deletions Library/Formula/libtool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ class Libtool < Formula
end

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--program-prefix=g",
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--program-prefix=g",
"--enable-ltdl-install"
system "make install"
end
Expand Down
4 changes: 2 additions & 2 deletions Library/Formula/sleuthkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class Sleuthkit < Formula
depends_on 'libewf' => :optional

if ARGV.build_head? and MacOS.xcode_version >= "4.3"
depends_on "automake"
depends_on "libtool"
depends_on "automake" => :build
depends_on "libtool" => :build
end

def install
Expand Down
4 changes: 3 additions & 1 deletion Library/Homebrew/cmd/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def audit_formula_text name, text
end

# build tools should be flagged properly
if text =~ /depends_on ['"](boost-build|cmake|imake|pkg-config|scons|smake)['"]$/
build_deps = %w{autoconf automake boost-build cmake
imake libtool pkg-config scons smake}
if text =~ /depends_on ['"](#{build_deps*'|'})['"]$/
problems << " * #{$1} dependency should be \"depends_on '#{$1}' => :build\""
end

Expand Down

0 comments on commit f5ba675

Please sign in to comment.