forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbutterflow.rb
32 lines (27 loc) · 1.22 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 fluid slow motion and motion interpolated videos"
homepage "https://github.com/dthpham/butterflow"
url "http://srv.dthpham.me/butterflow/butterflow-0.2.2.tar.gz"
sha256 "8facea495812fdc7da77c207a4adda95dabab6de36e8461e645b5aa8ea4e44ed"
bottle do
cellar :any
sha256 "2976b91ae42f8c3f8a66829e236f1e8342a21e079a39446574383747792fbdf8" => :sierra
sha256 "8963341697e99b066aa5b2f3f31f23328f33835bc14ce4f765d31b77f59cd866" => :el_capitan
sha256 "acde10bce6ea15c27db27bdc59a366eb7922466f512a25d04bb32e073f5f9ada" => :yosemite
end
# To satisfy OpenCL 1.2 requirement
depends_on :macos => :mavericks
depends_on "ffmpeg"
depends_on "opencv" => ["with-ffmpeg"]
def install
ENV.prepend_path "PYTHONPATH", Formula["numpy"].opt_lib/"python2.7/site-packages"
ENV.prepend_path "PYTHONPATH", Formula["opencv"].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