blob: a2e9d5c4f81f6f1b85ec6455b8666762cdfcb3c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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'
depends_on 'mad' => :recommended
conflicts_with 'num-utils', :because => 'both install `normalize` binaries'
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
--mandir=#{man}
]
args << "--without-mad" if build.without? "mad"
system "./configure", *args
system "make install"
end
test do
system "#{bin}/normalize"
end
end
|