homebrew-core/Formula/vapoursynth.rb
2016-10-27 05:52:17 -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/R35.tar.gz"
sha256 "762cada84d2f975ec925a1eb719dd8a2f40dfaa69d10c358b228184785f64918"
head "https://github.com/vapoursynth/vapoursynth.git"
bottle do
sha256 "3a0e4d6faeb85fc87ade513c354d880c0f8084df0d34be95e21f3be877414a29" => :sierra
sha256 "7e2a1a82c0b8326f23c0912bb62d0d5b81601975e241ac5a1695c0f9e441a4fb" => :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/2f/ae/0bb6ca970b949d97ca622641532d4a26395322172adaf645149ebef664eb/Cython-0.25.1.tar.gz"
sha256 "e0941455769335ec5afb17dee36dc3833b7edc2ae20a8ed5806c58215e4b6669"
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