homebrew-core/Formula/takt.rb

42 lines
1.7 KiB
Ruby

class Takt < Formula
desc "Text-based music programming language"
homepage "https://takt.sourceforge.io"
url "https://downloads.sourceforge.net/project/takt/takt-0.310-src.tar.gz"
sha256 "eb2947eb49ef84b6b3644f9cf6f1ea204283016c4abcd1f7c57b24b896cc638f"
license "GPL-2.0-or-later"
revision 2
bottle do
sha256 arm64_monterey: "1e8949e4e3457701233d4f72fd01e9852dafc3e1373124b9de0eaa08b7f6dca9"
sha256 arm64_big_sur: "910a1325ce07065c113c1efd53e8295a10b8db613ef6fa1e5bfda1abc8fa922d"
sha256 monterey: "4a3a4bf1b60b32d06bd0fd687e1fbb67684432db141aaf0acd0dcf54b8f5f00e"
sha256 big_sur: "fd9dec43c0d9d5634d3bf23f8c6112090429d279243c5c0acd4dbfff8025fdbc"
sha256 catalina: "b5f6d5891f4955b26be88358c37199d9f9b1ebd66eaaa519ccbcfddbfa615780"
sha256 mojave: "c45509b2d6828c514a0397f9c57284f7c4efcca766deddc762ef69cac715d3df"
sha256 high_sierra: "d90177e40185259de89cc259c5cfde419f65161c52571dfeccb18fe52ffeab8f"
sha256 sierra: "d0fd3808c9d7266cd16de123c0f8cc434d594b63b6e2d7d67425f155f1c9d582"
sha256 x86_64_linux: "f448f82ff76bc5ea174cab0648cadca7d547688a783c424ab5e7a68a41fe8839"
end
depends_on "readline"
on_linux do
depends_on "alsa-lib"
end
# Fix -flat_namespace being used on Big Sur and later.
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff"
sha256 "83af02f2aa2b746bb7225872cab29a253264be49db0ecebb12f841562d9a2923"
end
def install
system "./configure", "--prefix=#{prefix}", "--with-lispdir=#{elisp}"
system "make", "install"
end
test do
system bin/"takt", "-o etude1.mid", pkgshare/"examples/etude1.takt"
end
end