diff options
| author | Samuel John | 2013-07-18 10:31:21 +0200 |
|---|---|---|
| committer | Samuel John | 2013-07-19 13:38:01 +0200 |
| commit | e0967b818ed6ac465d71da6e81c132c72a49e80c (patch) | |
| tree | c1215d686ced6b2a52f89cd2ca5aa2b531258fae /Library/Formula/portmidi.rb | |
| parent | 019ccbe3f5fe9032d85aff1fca1686a9cc4b6274 (diff) | |
| download | homebrew-e0967b818ed6ac465d71da6e81c132c72a49e80c.tar.bz2 | |
portmidi: Tab.for_formula -> Tab.for_name
Diffstat (limited to 'Library/Formula/portmidi.rb')
| -rw-r--r-- | Library/Formula/portmidi.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Formula/portmidi.rb b/Library/Formula/portmidi.rb index 8f95d25a9..d24661f06 100644 --- a/Library/Formula/portmidi.rb +++ b/Library/Formula/portmidi.rb @@ -8,8 +8,7 @@ class Portmidi < Formula option 'with-java', 'Build java based app and bindings. You need the Java SDK for this.' depends_on 'cmake' => :build - depends_on :python => :optional - depends_on 'Cython' => :python if build.with? 'python' + depends_on :python => [:optional, 'Cython'] def patches # Avoid that the Makefile.osx builds the java app and fails because: fatal error: 'jni.h' file not found @@ -43,8 +42,8 @@ class Portmidi < Formula end end - def test - if build.with?('python') || Tab.for_formula('portmidi').with?('python') + test do + if build.with?('python') || Tab.for_name('portmidi').with?('python') system "python", "-c", "import pyportmidi; pyportmidi.init()" end end |
