From 82a45025682e6b7338ed46897fdd02f5d19ee756 Mon Sep 17 00:00:00 2001 From: jnozsc Date: Sat, 26 Oct 2019 13:09:46 -0700 Subject: [PATCH] mpv 0.30 Closes #45854. Signed-off-by: Mike McQuaid --- Formula/mpv.rb | 53 +++++++++++++++++++++++++++++++++++++++++++++ tap_migrations.json | 1 - 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 Formula/mpv.rb diff --git a/Formula/mpv.rb b/Formula/mpv.rb new file mode 100644 index 0000000000..b389ad696d --- /dev/null +++ b/Formula/mpv.rb @@ -0,0 +1,53 @@ +class Mpv < Formula + desc "Media player based on MPlayer and mplayer2" + homepage "https://mpv.io" + url "https://github.com/mpv-player/mpv/archive/v0.30.0.tar.gz" + sha256 "33a1bcb7e74ff17f070e754c15c52228cf44f2cefbfd8f34886ae81df214ca35" + head "https://github.com/mpv-player/mpv.git" + + depends_on "docutils" => :build + depends_on "pkg-config" => :build + depends_on "python" => :build + + depends_on "ffmpeg" + depends_on "jpeg" + depends_on "libarchive" + depends_on "libass" + depends_on "little-cms2" + depends_on "lua@5.1" + + depends_on "mujs" + depends_on "uchardet" + depends_on "vapoursynth" + depends_on "youtube-dl" + + def install + # LANG is unset by default on macOS and causes issues when calling getlocale + # or getdefaultlocale in docutils. Force the default c/posix locale since + # that's good enough for building the manpage. + ENV["LC_ALL"] = "C" + + args = %W[ + --prefix=#{prefix} + --enable-html-build + --enable-javascript + --enable-libmpv-shared + --enable-lua + --enable-libarchive + --enable-uchardet + --confdir=#{etc}/mpv + --datadir=#{pkgshare} + --mandir=#{man} + --docdir=#{doc} + --zshdir=#{zsh_completion} + ] + + system "./bootstrap.py" + system "python3", "waf", "configure", *args + system "python3", "waf", "install" + end + + test do + system bin/"mpv", "--ao=null", test_fixtures("test.wav") + end +end diff --git a/tap_migrations.json b/tap_migrations.json index a4e5ac5e97..bcc57c18e6 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -21,7 +21,6 @@ "jsl": "homebrew/cask", "keybase": "homebrew/cask", "meld": "homebrew/cask", - "mpv": "homebrew/cask", "osxfuse": "homebrew/cask", "phantomjs": "homebrew/cask", "quassel": "homebrew/cask",