portmidi: always build python extension

This commit is contained in:
Tim D. Smith 2017-05-24 06:30:24 -07:00
parent 758e9cd8b3
commit 81353a9cb0

View file

@ -3,6 +3,7 @@ class Portmidi < Formula
homepage "https://sourceforge.net/projects/portmedia/"
url "https://downloads.sourceforge.net/project/portmedia/portmidi/217/portmidi-src-217.zip"
sha256 "08e9a892bd80bdb1115213fb72dc29a7bf2ff108b378180586aa65f3cfd42e0f"
revision 1
bottle do
cellar :any
@ -14,10 +15,8 @@ class Portmidi < Formula
option "with-java", "Build Java-based app and bindings."
deprecated_option "with-python" => "with-cython"
depends_on "cmake" => :build
depends_on "cython" => [:build, :optional]
depends_on "cython" => :build
depends_on :java => :optional
# Avoid that the Makefile.osx builds the java app and fails because: fatal error: 'jni.h' file not found
@ -40,7 +39,6 @@ class Portmidi < Formula
system "make", "-f", "pm_mac/Makefile.osx"
system "make", "-f", "pm_mac/Makefile.osx", "install"
if build.with? "cython"
cd "pm_python" do
# There is no longer a CHANGES.txt or TODO.txt.
inreplace "setup.py" do |s|
@ -55,7 +53,6 @@ class Portmidi < Formula
system "python", *Language::Python.setup_install_args(prefix)
end
end
end
end
__END__