forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
butterflow.rb
32 lines (27 loc) · 1.2 KB
/
butterflow.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class Butterflow < Formula
desc "Makes motion interpolated and fluid slow motion videos"
homepage "https://github.com/dthpham/butterflow"
url "http://srv.dthpham.me/butterflow/releases/butterflow-0.2.3.tar.gz"
sha256 "83e3ce52eef57ae2e4f4b3dc98d97ab354621e4a095d9734751bd876c34b755e"
revision 1
bottle do
cellar :any
sha256 "d8a9575b6f6f82dd97fbcbef7decbfe506662c16b0f241cf7d949b7b5a5e4102" => :sierra
sha256 "cdba4c5a27de847adaf9057b538a858aebe6ebd9a3cf8c084a2444a8d04dd52c" => :el_capitan
sha256 "04bad6a26382651b922394d2145914d2aa882e1daaf42b9b174e92fd276290e8" => :yosemite
end
# To satisfy OpenCL 1.2 requirement
depends_on :macos => :mavericks
depends_on "opencv@2"
def install
ENV.prepend_path "PYTHONPATH", Formula["numpy"].opt_lib/"python2.7/site-packages"
ENV.prepend_path "PYTHONPATH", Formula["opencv@2"].opt_lib/"python2.7/site-packages"
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
system "python", *Language::Python.setup_install_args(libexec)
bin.install Dir["#{libexec}/bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
system "#{bin}/butterflow", "-d"
end
end