1 class Ebook2cw < Formula
2 desc "Converts ebooks to morse code"
3 homepage "https://fkurz.net/ham/ebook2cw.html"
4 url "https://fkurz.net/ham/ebook2cw/ebook2cw-0.8.5.tar.gz"
5 sha256 "571f734f12123b4affbad90b55dd4c9630b254afe343fa621fc5114b9bd25fc3"
6 license "GPL-2.0-or-later"
9 url "https://fkurz.net/ham/ebook2cw/"
10 regex(/href=.*?ebook2cw[._-]v?(\d+(?:\.\d+)+)\.t/i)
14 sha256 arm64_sequoia: "8ee60330873ad88bbe4346269b4ce0f1c1598382e98ebfae5a264d8af4474148"
15 sha256 arm64_sonoma: "db414d0d717be52093b787e79f866d82e2f91fbdf7290b89b194ce5da6a2116b"
16 sha256 arm64_ventura: "b489e82a61e8939850597bcfe3a9f550171ee9a60c192677e9d7882d7ab6d9da"
17 sha256 arm64_monterey: "51fa1ee26a03240c46e41a82f8aec2b3c6adb240df22906d2d7515e0c416d766"
18 sha256 arm64_big_sur: "3a135e19472fa1cf7c261704d9b6731c3d7ed11e16146141feac522d6cc9a735"
19 sha256 sonoma: "b2e633fc299f13bcfb391665dc4d2693a5a7bbc9dbbb304c14772c22460bb5a5"
20 sha256 ventura: "eb4f79ba7941e073eb076731d020a3c948b086602b18eaf27dd819e51611d9f5"
21 sha256 monterey: "875f2b989098018048e20711591dfde60aa903c6aaf9a18b7850a4388898c741"
22 sha256 big_sur: "07d3d9f7a7446a9686a1a2052fca0f7fc40e1b111445e2cba1425fbd7afbbb4c"
23 sha256 x86_64_linux: "269994f635db4fc4570e9d0684051e883bbfba824be06bd8bf420ed8189fdf2b"
28 depends_on "libvorbis"
35 depends_on "gettext" => :build # for msgfmt
39 system "make", "DESTDIR=#{prefix}"
40 system "make", "install", "DESTDIR=#{prefix}"
44 pipe_output("#{bin}/ebook2cw -o test", "test mp3 file generation")
45 assert_predicate testpath/"test0000.mp3", :exist?
47 pipe_output("#{bin}/ebook2cw -O -o test", "test ogg file generation")
48 assert_predicate testpath/"test0000.ogg", :exist?