47 lines
1.6 KiB
Ruby
47 lines
1.6 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/R38.tar.gz"
|
|
sha256 "6dfd4bb28185fced32e530b5f31e98f535c534abeaf0b900a9b2e9327e12bd4a"
|
|
head "https://github.com/vapoursynth/vapoursynth.git"
|
|
|
|
bottle do
|
|
sha256 "2f4e594a69fc13a455b2e1fd4f0dbce3a4af71d58cd52758f648c2b0bb7d9e84" => :sierra
|
|
sha256 "70cb07c8f48ceec36ece8e3505bb540cc79847e36c37ae07edefa008a4297351" => :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/b7/67/7e2a817f9e9c773ee3995c1e15204f5d01c8da71882016cac10342ef031b/Cython-0.25.2.tar.gz"
|
|
sha256 "f141d1f9c27a07b5a93f7dc5339472067e2d7140d1c5a9e20112a5665ca60306"
|
|
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
|
|
py3 = Language::Python.major_minor_version "python3"
|
|
ENV.prepend_path "PYTHONPATH", lib/"python#{py3}/site-packages"
|
|
system "python3", "-c", "import vapoursynth"
|
|
system bin/"vspipe", "--version"
|
|
end
|
|
end
|