2012-11-16 00:51:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Normalize < Formula
|
|
|
|
homepage 'http://normalize.nongnu.org/'
|
|
|
|
url 'http://savannah.nongnu.org/download/normalize/normalize-0.7.7.tar.gz'
|
|
|
|
sha1 '1509ca998703aacc15f6098df58650b3c83980c7'
|
|
|
|
|
|
|
|
option 'without-mad', 'Compile without MP3 support'
|
|
|
|
|
2013-02-02 22:31:14 +00:00
|
|
|
depends_on 'mad' => :recommended
|
2012-11-16 00:51:04 +00:00
|
|
|
|
2013-11-13 04:46:19 +00:00
|
|
|
conflicts_with 'num-utils', :because => 'both install `normalize` binaries'
|
|
|
|
|
2012-11-16 00:51:04 +00:00
|
|
|
def install
|
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--mandir=#{man}
|
|
|
|
]
|
2013-02-02 22:31:14 +00:00
|
|
|
args << "--without-mad" if build.without? "mad"
|
2012-11-16 00:51:04 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/normalize"
|
|
|
|
end
|
|
|
|
end
|