Skip to content

Commit

Permalink
portmidi: use patch DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Mar 20, 2014
1 parent dc68191 commit af80d63
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Formula/portmidi.rb
Expand Up @@ -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}"
Expand Down

0 comments on commit af80d63

Please sign in to comment.