3346f4ba6b
Closes #6323. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
45 lines
1.5 KiB
Ruby
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 "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/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
|