Skip to content

Instantly share code, notes, and snippets.

@theikkila
Forked from rambo/spuce.rb
Last active April 14, 2017 11:31
Show Gist options
  • Save theikkila/2cc949675931f28f84fb0dc33706539a to your computer and use it in GitHub Desktop.
Save theikkila/2cc949675931f28f84fb0dc33706539a to your computer and use it in GitHub Desktop.
Edited spuce formula to fix compile problems
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 = "/Users/theikkila/.pyenv/versions/3.5.1"
system "cmake", "..", "-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5", "-DBUILD_TESTING=OFF", "-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