Created
July 13, 2014 17:58
-
-
Save tdsmith/2a73730e960ff72f5e7b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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