47 lines
2.4 KiB
Ruby
47 lines
2.4 KiB
Ruby
class Aldo < Formula
|
|
desc "Morse code learning tool released under GPL"
|
|
homepage "https://www.nongnu.org/aldo/"
|
|
url "https://savannah.nongnu.org/download/aldo/aldo-0.7.7.tar.bz2"
|
|
sha256 "f1b8849d09267fff3c1f5122097d90fec261291f51b1e075f37fad8f1b7d9f92"
|
|
license "GPL-3.0"
|
|
|
|
livecheck do
|
|
url "https://download.savannah.gnu.org/releases/aldo/"
|
|
regex(/href=.*?aldo[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any, arm64_ventura: "0d999e5927c28aec07c5e74d61f3338129c4040bd34c35e12a3da993b0de90c0"
|
|
sha256 cellar: :any, arm64_monterey: "434e524f42b70dd31c05c80d41808af6b68d13875376d38ef86dba496b86b609"
|
|
sha256 cellar: :any, arm64_big_sur: "a0944cbf0df1cccd63c1d18cf758826e8b7621c188b60603153b717ba9d2edbf"
|
|
sha256 cellar: :any, ventura: "e81b0d99b63abac08c7768f017eae3c9d059012fa8867f0ff8d3d5bf76e81b7b"
|
|
sha256 cellar: :any, monterey: "266951db532a823d9241ad3e29d0e07b63f5b7dc5d4fcae3b3dfed117dfd9488"
|
|
sha256 cellar: :any, big_sur: "b6e5c413c1ca391cd040cadd7d2c153e7552ce43677da0d0f1aab1467e92bb3b"
|
|
sha256 cellar: :any, catalina: "2a574bfd1a76ef4733d941234df142dfc87b05cefefaf58d0617113d7af85999"
|
|
sha256 cellar: :any, mojave: "4c510b7da186be5d55c990d97265952de8fad51079ad2fa18058b8a57d8eeebb"
|
|
sha256 cellar: :any, high_sierra: "d30e5e60defc2e2d2110cf52a60898d94ae3331a679f1c228e0d598421a594d9"
|
|
sha256 cellar: :any, sierra: "ad5216c04fce4d1f4da63af2fa4d298a3414073db186991ec4389a942799ddd1"
|
|
sha256 cellar: :any, el_capitan: "0691c4b9b7ae5b6f104c5b5205f731d4348563b8a9a8c3631395f619ce00aabf"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "660548eb8c93e2c78a50b925143a9b24400ee578790b62e7acde1d1aed360a98"
|
|
end
|
|
|
|
depends_on "libao"
|
|
|
|
# Reported upstream:
|
|
# https://savannah.nongnu.org/bugs/index.php?42127
|
|
patch do
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/aldo/0.7.7.patch"
|
|
sha256 "3b6c6cc067fc690b5af4042a2326cee2b74071966e9e2cd71fab061fde6c4a5d"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "Aldo #{version} Main Menu", pipe_output("#{bin}/aldo", "6")
|
|
end
|
|
end
|