homebrew-core/Formula/abcde.rb

37 lines
1.2 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Abcde < Formula
desc "Better CD Encoder"
2016-04-17 19:24:58 +00:00
homepage "https://abcde.einval.com"
url "https://abcde.einval.com/download/abcde-2.9.1.tar.gz"
sha256 "70ec6e06b791115fbe88dee313f58f691f9b559ee992f2af5ed64fe6ad2e55d7"
2016-04-17 19:24:58 +00:00
head "https://git.einval.com/git/abcde.git"
2014-11-03 20:58:14 +00:00
bottle do
2015-09-30 18:05:49 +00:00
cellar :any_skip_relocation
2018-03-10 08:04:16 +00:00
sha256 "53f3003b0da0bfb56ef0919818a35345f5499dc6339ccdc85a90bb149e7f32ce" => :high_sierra
sha256 "53f3003b0da0bfb56ef0919818a35345f5499dc6339ccdc85a90bb149e7f32ce" => :sierra
sha256 "53f3003b0da0bfb56ef0919818a35345f5499dc6339ccdc85a90bb149e7f32ce" => :el_capitan
2014-11-03 20:58:14 +00:00
end
depends_on "cd-discid"
depends_on "cdrtools"
depends_on "id3v2"
depends_on "mkcue"
depends_on "flac" => :optional
depends_on "lame" => :optional
depends_on "vorbis-tools" => :optional
depends_on "glyr" => :optional
def install
# Fixes MD5SUM being set to nonexistent md5sum
# Reported upstream 2017-03-18 18:03 GMT
# https://abcde.einval.com/bugzilla/show_bug.cgi?id=59
inreplace "abcde", "OSFLAVOUR=OSX", "MD5SUM=md5\n\tOSFLAVOUR=OSX"
system "make", "install", "prefix=#{prefix}", "sysconfdir=#{etc}"
end
test do
assert_match version.to_s, shell_output("#{bin}/abcde -v")
end
end