46 lines
1.5 KiB
Ruby
46 lines
1.5 KiB
Ruby
class Normalize < Formula
|
|
desc "Adjust volume of audio files to a standard level"
|
|
homepage "https://www.nongnu.org/normalize/"
|
|
url "https://savannah.nongnu.org/download/normalize/normalize-0.7.7.tar.gz"
|
|
sha256 "6055a2abccc64296e1c38f9652f2056d3a3c096538e164b8b9526e10b486b3d8"
|
|
license "GPL-2.0"
|
|
|
|
livecheck do
|
|
url "https://download.savannah.gnu.org/releases/normalize/"
|
|
regex(/href=.*?normalize[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any
|
|
rebuild 1
|
|
sha256 "363ac4a56ccb75ff32f3af3ef42a6cf5d74f24b977939bb08c14fddc30ff2ef5" => :catalina
|
|
sha256 "8e1ac6ecbf84164c27a804b158201b75ddaabd3237e5826d7ffc78fbe8ee7377" => :mojave
|
|
sha256 "e4dd195c639807e3e2e25fee6c5c6f3c4263a37a4c7f8f25ab656a96395faeaf" => :high_sierra
|
|
sha256 "1165de2721e8b4d7f373b9ad10f52c2cd49c44a24cd8fddab5ba51983164cefe" => :sierra
|
|
sha256 "052ab2e8b1f6a2aa1e634a30749612d927b5cee5cc9302e057bd02c599a1c256" => :el_capitan
|
|
sha256 "dcb42f107b9674e50d8994215f6d125e0fb9523b1d99b393fd00ee2b827be5e0" => :yosemite
|
|
sha256 "9c12615d384a706feb8ddb693dadacfc5bfc48827e5722dd6476325bbe5e90b9" => :mavericks
|
|
end
|
|
|
|
depends_on "mad"
|
|
|
|
conflicts_with "num-utils", because: "both install `normalize` binaries"
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--mandir=#{man}
|
|
]
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
cp test_fixtures("test.mp3"), testpath
|
|
system "#{bin}/normalize", "test.mp3"
|
|
end
|
|
end
|