homebrew-core/Formula/vapoursynth.rb
2016-10-16 07:18:58 -07:00

45 lines
1.5 KiB
Ruby

class Vapoursynth < Formula
include Language::Python::Virtualenv
desc "Video processing framework with simplicity in mind"
homepage "http://www.vapoursynth.com"
url "https://github.com/vapoursynth/vapoursynth/archive/R34.tar.gz"
sha256 "d1d3154c7076ab25ad46de5a2385d47ba48fe9fcbe44e75cd3c33ff2e06dd465"
head "https://github.com/vapoursynth/vapoursynth.git"
bottle do
sha256 "9ef983dd2deff9a28b78877aa7e4a4b18a1d6d8c0420218d40b61d5cdc681df7" => :sierra
sha256 "246063708e469e23ded3a6369441ef5b6de958213c61002b44258b8e412df5af" => :el_capitan
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "yasm" => :build
depends_on "libass"
depends_on :macos => :el_capitan # due to zimg dependency
depends_on :python3
depends_on "tesseract"
depends_on "zimg"
resource "Cython" do
url "https://files.pythonhosted.org/packages/c6/fe/97319581905de40f1be7015a0ea1bd336a756f6249914b148a17eefa75dc/Cython-0.24.1.tar.gz"
sha256 "84808fda00508757928e1feadcf41c9f78e9a9b7167b6649ab0933b76f75e7b9"
end
def install
venv = virtualenv_create(buildpath/"cython", "python3")
venv.pip_install "Cython"
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--with-cython=#{buildpath}/cython/bin/cython"
system "make", "install"
end
test do
system bin/"vspipe", "--version"
system "python3", "-c", "import vapoursynth"
end
end