aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-01 20:41:35 +0100
committerJack Nagel2015-01-03 21:36:30 -0500
commit14c9a1dc3baf7598cbf452f58baf6e7a3d3ccc2f (patch)
treed5f7da27df15b6806e19108238a7833c448bbf0b /Library
parent87100410514221bbd1c695b31854ab65f61d4056 (diff)
downloadhomebrew-14c9a1dc3baf7598cbf452f58baf6e7a3d3ccc2f.tar.bz2
mp3val: modernize + test added
Closes #35429. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mp3val.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/Library/Formula/mp3val.rb b/Library/Formula/mp3val.rb
index 0e2698523..b60e2fca8 100644
--- a/Library/Formula/mp3val.rb
+++ b/Library/Formula/mp3val.rb
@@ -1,12 +1,15 @@
-require 'formula'
-
class Mp3val < Formula
- homepage 'http://mp3val.sourceforge.net/'
- url 'https://downloads.sourceforge.net/mp3val/mp3val-0.1.8-src.tar.gz'
- sha1 '19f7506d387f72def2861ec271c5cb4135bd8f5e'
+ homepage "http://mp3val.sourceforge.net/"
+ url "https://downloads.sourceforge.net/mp3val/mp3val-0.1.8-src.tar.gz"
+ sha1 "19f7506d387f72def2861ec271c5cb4135bd8f5e"
def install
- system "gnumake -f Makefile.gcc"
+ 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