From 6ccf5cd4877a49d7af5e71ef99b525a463c9f370 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 20 Mar 2014 14:05:17 -0500 Subject: portmidi: use patch DSL --- Library/Formula/portmidi.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Library/Formula') 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}" -- cgit v1.2.3