diff options
| author | Adam Vandenberg | 2013-06-27 20:38:12 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-27 20:38:12 -0700 |
| commit | f7e5d272de3665cb7d4e90012e457b5fafea6110 (patch) | |
| tree | d492ac64b15527b272b368b51e6cd94d6a578c12 /Library/Formula | |
| parent | 47d9f0e44ac43cbd3f2384506537ed2b6c216d1a (diff) | |
| download | homebrew-f7e5d272de3665cb7d4e90012e457b5fafea6110.tar.bz2 | |
aubio: fix audit
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/aubio.rb | 13 |
1 files changed, 6 insertions, 7 deletions
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" |
