homebrew-core/Formula/media-info.rb
2017-09-11 16:49:12 +02:00

48 lines
1.5 KiB
Ruby

class MediaInfo < Formula
desc "Unified display of technical and tag data for audio/video"
homepage "https://mediaarea.net/"
url "https://mediaarea.net/download/binary/mediainfo/0.7.99/MediaInfo_CLI_0.7.99_GNU_FromSource.tar.bz2"
version "0.7.99"
sha256 "099c06531bec1ecff18b2ac8626cdd2b64c4652b9aba5d0c869abafdd69e44d5"
bottle do
cellar :any
sha256 "fe19cd2be4ba9f663ca385406374dcefa31088981ab75dcdd55d7f07d4c9a102" => :sierra
sha256 "b696c66c1a07ddd58dfa5ab0dec65a60d1325401b56d703bb2a14a54832bacd6" => :el_capitan
end
depends_on "pkg-config" => :build
def install
cd "ZenLib/Project/GNU/Library" do
args = ["--disable-debug",
"--disable-dependency-tracking",
"--enable-static",
"--enable-shared",
"--prefix=#{prefix}"]
system "./configure", *args
system "make", "install"
end
cd "MediaInfoLib/Project/GNU/Library" do
args = ["--disable-debug",
"--disable-dependency-tracking",
"--with-libcurl",
"--enable-static",
"--enable-shared",
"--prefix=#{prefix}"]
system "./configure", *args
system "make", "install"
end
cd "MediaInfo/Project/GNU/CLI" do
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end
test do
pipe_output("#{bin}/mediainfo", test_fixtures("test.mp3"))
end
end