Skip to content

Instantly share code, notes, and snippets.

@tdsmith
Created July 13, 2014 17:58
Show Gist options
  • Save tdsmith/2a73730e960ff72f5e7b to your computer and use it in GitHub Desktop.
Save tdsmith/2a73730e960ff72f5e7b to your computer and use it in GitHub Desktop.
require "formula"
class Vpython < Formula
url "https://downloads.sourceforge.net/project/vpythonwx/6.10-release/vpython-wx-src.6.10.tgz"
sha1 "d51ca07dad92a1ae9a3d5cc57af48b180f457228"
head "https://github.com/BruceSherwood/vpython-wx.git"
homepage "http://vpython.org/"
# no python3 support from Homebrew boost yet
depends_on :python
depends_on "numpy"
depends_on "wxpython"
boost_args = ["with-python"]
boost_args << "c++11" if MacOS.version < :mavericks
depends_on "boost" => boost_args
needs :cxx11
def install
ENV.cxx11
system "python", "setup.py", "install", "--prefix=#{prefix}", "--single-version-externally-managed",
"--record=installed.txt"
end
test do
system "python", "-c", "import visual"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment