aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-03-20 14:05:17 -0500
committerJack Nagel2014-03-20 14:05:17 -0500
commit6ccf5cd4877a49d7af5e71ef99b525a463c9f370 (patch)
tree2e47c5803cca6ce30ec00600315ac773c4108642
parent8b559d3e85e897d293c4676af95ead4cfeab5a2f (diff)
downloadhomebrew-6ccf5cd4877a49d7af5e71ef99b525a463c9f370.tar.bz2
portmidi: use patch DSL
-rw-r--r--Library/Formula/portmidi.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/portmidi.rb b/Library/Formula/portmidi.rb
index 4a92124db..da2cd6ff0 100644
--- a/Library/Formula/portmidi.rb
+++ b/Library/Formula/portmidi.rb
@@ -11,11 +11,9 @@ class Portmidi < Formula
depends_on :python => :optional
depends_on 'Cython' => :python if build.with? 'python'
- def patches
- # Avoid that the Makefile.osx builds the java app and fails because: fatal error: 'jni.h' file not found
- # Since 217 the Makefile.osx includes pm_common/CMakeLists.txt wich builds the Java app
- DATA if build.without? "java"
- end
+ # Avoid that the Makefile.osx builds the java app and fails because: fatal error: 'jni.h' file not found
+ # Since 217 the Makefile.osx includes pm_common/CMakeLists.txt wich builds the Java app
+ patch :DATA if build.without? "java"
def install
inreplace 'pm_mac/Makefile.osx', 'PF=/usr/local', "PF=#{prefix}"