forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
butterflow.rb
33 lines (28 loc) · 1.17 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
33
class Butterflow < Formula
desc "Makes fluid slowmo and motion interpolated videos"
homepage "https://github.com/dthpham/butterflow"
url "http://srv.dthpham.me/butterflow-0.1.9.tar.gz"
sha256 "9f62960bb1a58c7fd7b67e7260d32a51e95ef5c7ff9f0811307463c1f1f338cf"
revision 1
bottle do
root_url "https://homebrew.bintray.com/bottles-science"
cellar :any
sha256 "c3424c90e217cee45c461747545da5a4999967bbfed7f977312808ed7f6c79db" => :yosemite
sha256 "0b5be6c1f6ff5df7659b213ba250784bfd53d4f1ef5c4fa03f5221c21497a80b" => :mavericks
end
# To satisfy OpenCL 1.1 requirement
depends_on :macos => :mavericks
depends_on "pkg-config" => :build
depends_on "ffmpeg" => ["with-libvorbis", "with-libass"]
depends_on "opencv" => "with-ffmpeg"
def install
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