aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mp3val.rb
blob: 2ccab009c2f0b3e7d4dce13418a2ea220728f1f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Mp3val < Formula
  homepage "http://mp3val.sourceforge.net/"
  url "https://downloads.sourceforge.net/mp3val/mp3val-0.1.8-src.tar.gz"
  sha1 "19f7506d387f72def2861ec271c5cb4135bd8f5e"

  bottle do
    cellar :any
    sha1 "a6fbb7ba9e3138c0badf0f4c8448193b4136b5a0" => :yosemite
    sha1 "0b07e20f77de64a0071899f49e329bf11fb29367" => :mavericks
    sha1 "997a608c91946b239e878c830a4be6336dbc5cb9" => :mountain_lion
  end

  def install
    system "gnumake", "-f", "Makefile.gcc"
    bin.install "mp3val.exe" => "mp3val"
  end

  test do
    mp3 = test_fixtures("test.mp3")
    assert_match(/Done!$/, shell_output("#{bin}/mp3val -f #{mp3}"))
  end
end