Created
April 7, 2017 20:51
-
-
Save rambo/5703b67017d6f5bc0bb5ec71459f63f4 to your computer and use it in GitHub Desktop.
Edited spuce formula to fix compile problems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Spuce < Formula | |
desc "A C++ library for DSP filters" | |
homepage "http://pyspuc.com" | |
head "https://github.com/audiofilter/spuce.git" | |
url "https://github.com/audiofilter/spuce/archive/0.4.3.tar.gz" | |
version "0.4.3" | |
sha256 "5688e107b57640ba0485790d64eb16bff855f54f6fa5b2fdab568ee91f6dc687" | |
depends_on "cmake" => :build | |
depends_on :python | |
def install | |
mkdir "build" do | |
py_prefix = `python-config --prefix`.chomp | |
system "cmake", "..", "-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5", "-DPYTHON_LIBRARY=#{py_prefix}/Python", "-DPYTHON_INCLUDE_DIR=#{py_prefix}/Headers", *std_cmake_args | |
system "make", "install" # if this fails, try separate make/make install steps | |
end | |
end | |
test do | |
system "false" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment