Skip to content

Instantly share code, notes, and snippets.

@rambo
Created April 7, 2017 20:51
Show Gist options
  • Save rambo/5703b67017d6f5bc0bb5ec71459f63f4 to your computer and use it in GitHub Desktop.
Save rambo/5703b67017d6f5bc0bb5ec71459f63f4 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 = `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