48 lines
1.7 KiB
Ruby
48 lines
1.7 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/R43.tar.gz"
|
|
sha256 "5c80d583f6891f4f5840edf09bc207c2e71653786b07606fdb4a164fd67470c2"
|
|
head "https://github.com/vapoursynth/vapoursynth.git"
|
|
|
|
bottle do
|
|
sha256 "088826830fbb58149afbb4c525815154b3c5865975851b500542ddb48dd711b0" => :high_sierra
|
|
sha256 "2ec6479c2b942c53eaed6f47adce5e5427eafb8ef58be99672650d3a7cc8b109" => :sierra
|
|
sha256 "7ebb4559feae7e6b7dcd479575d7127cdce2fb9edec62fcaf3087d3b646e2b7d" => :el_capitan
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "nasm" => :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/ee/2a/c4d2cdd19c84c32d978d18e9355d1ba9982a383de87d0fcb5928553d37f4/Cython-0.27.3.tar.gz"
|
|
sha256 "6a00512de1f2e3ce66ba35c5420babaef1fe2d9c43a8faab4080b0dbcc26bc64"
|
|
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
|