From f7e5d272de3665cb7d4e90012e457b5fafea6110 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 27 Jun 2013 20:38:12 -0700 Subject: aubio: fix audit --- Library/Formula/aubio.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/aubio.rb b/Library/Formula/aubio.rb index f7cc2814b..6d2692bbd 100644 --- a/Library/Formula/aubio.rb +++ b/Library/Formula/aubio.rb @@ -6,12 +6,15 @@ class Aubio < Formula sha1 '8ef7ccbf18a4fa6db712a9192acafc9c8d080978' depends_on :macos => :lion + depends_on :python + depends_on 'pkg-config' => :build depends_on :libtool => :build depends_on 'swig' => :build - depends_on 'libsndfile' - depends_on 'libsamplerate' + depends_on 'fftw' + depends_on 'libsamplerate' + depends_on 'libsndfile' # get rid of -Wno-long-double in configure. otherwise, breaks with modern xcode. # updates for py2.6+ compatibility (with is now a keyword) @@ -29,14 +32,10 @@ class Aubio < Formula def caveats; <<-EOS.undent For non-homebrew Python, you need to amend your PYTHONPATH like so: - export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/#{which_python}/site-packages:$PYTHONPATH + export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/#{python.xy}/site-packages:$PYTHONPATH EOS end - def which_python - "python" + `python -c 'import sys;print(sys.version[:3])'`.strip - end - def test # this will blow up if not everything went right system "#{bin}/aubiocut" -- cgit v1.2.3