36 lines
1.8 KiB
Ruby
36 lines
1.8 KiB
Ruby
class Id3tool < Formula
|
|
desc "ID3 editing tool"
|
|
homepage "http://nekohako.xware.cx/id3tool/"
|
|
url "http://nekohako.xware.cx/id3tool/id3tool-1.2a.tar.gz"
|
|
sha256 "7908d66c5aabe2a53ae8019e8234f4231485d80be4b2fe72c9d04013cff1caec"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "eec5850fee5d290bad13de2cb4456b2e600560632be7b86309ac5c3f3f03697f"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "7a6a25738f1961b7ebb929fe0e4746a60ef71fd28af06ea305c5f5d95ef10e60"
|
|
sha256 cellar: :any_skip_relocation, catalina: "ec3431bcd97a7852c292f72d45de19ad742a2e18bc8d6830ce5fc6e2351a8d29"
|
|
sha256 cellar: :any_skip_relocation, mojave: "053ce5a2222cac2bdecff1e97e73110af9cfbb199b77441ec5db19b4fc7ef1ae"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "c98d949a63b2d26f6cff9d63d24ecdfbd48196f58111a9a244ec7319d2ea7c21"
|
|
sha256 cellar: :any_skip_relocation, sierra: "2b7bcf184092881638221c606ae50879d02478bf9d433dc946f63dbe2e68368a"
|
|
sha256 cellar: :any_skip_relocation, el_capitan: "b5b4d49b4710a67df5200149873dd8c17131ef4a4eaac722a2095b1445d053ff"
|
|
sha256 cellar: :any_skip_relocation, yosemite: "348a229d26dd699013d8e3372c5382da10b12d02d286304e61d9f2c71ed77101"
|
|
sha256 cellar: :any_skip_relocation, mavericks: "dd989abacf0c1113879b6864a5ca08a59ac766a320897b9c323e5f7eaeeb2e70"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
mp3 = "#{testpath}/test.mp3"
|
|
cp test_fixtures("test.mp3"), mp3
|
|
|
|
system "#{bin}/id3tool", "-t", "Homebrew", mp3
|
|
assert_match(/Song Title:\s+Homebrew/,
|
|
shell_output("#{bin}/id3tool #{mp3}").chomp)
|
|
end
|
|
end
|