48 lines
1.9 KiB
Ruby
48 lines
1.9 KiB
Ruby
class Ecasound < Formula
|
|
desc "Multitrack-capable audio recorder and effect processor"
|
|
homepage "https://ecasound.seul.org/ecasound/"
|
|
url "https://ecasound.seul.org/download/ecasound-2.9.3.tar.gz"
|
|
sha256 "468bec44566571043c655c808ddeb49ae4f660e49ab0072970589fd5a493f6d4"
|
|
license "GPL-2.0-or-later"
|
|
|
|
livecheck do
|
|
url "https://ecasound.seul.org/ecasound/download.php"
|
|
regex(/href=.*?ecasound[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 arm64_ventura: "0e52338802663453eb4ed6cd44967b7b2baf80b5cc133a4ae42c36f6e4208fed"
|
|
sha256 arm64_monterey: "73ca5b440adf4626dea12d21da27ecc13d76829efee851e8160dedb78709023d"
|
|
sha256 arm64_big_sur: "3032ed920ff4b40250c2c1efcd19a591e0df1b2714159aed9fd6ea4db094af4c"
|
|
sha256 ventura: "ee2fba8822efd205930d9b0329d54d2175eb14043d19aeea77130acc193dece7"
|
|
sha256 monterey: "34a6f3f1ac115bd659329799ee74b5d3a04fdf5a2bb5c8b99d6786c5a81d1283"
|
|
sha256 big_sur: "d3a693686266e5570afbd54ecaede7930145c6a69461e7839c97857b373c63f6"
|
|
sha256 catalina: "f6fede56fea73bdfd32cebd514448b50dec47542ff7d76342f950a61160a9fff"
|
|
sha256 mojave: "38869046308b12e2d722f1bcb5e9a7085ffab93448e0490b161a6d18fc2fbd09"
|
|
sha256 high_sierra: "9dd2864d7b5a66bf3a7fc674b64a11d3cb1abeaf9fc4c65dd8898a2724c1a5a8"
|
|
sha256 x86_64_linux: "6c81d3065ae81f06d5c338aa6d892be6916c1215c5cb6c6cfd57f60d2249dd2e"
|
|
end
|
|
|
|
depends_on "jack"
|
|
depends_on "libsamplerate"
|
|
depends_on "libsndfile"
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--enable-rubyecasound=no
|
|
--enable-sys-readline=no
|
|
]
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
fixture = test_fixtures("test.wav")
|
|
system bin/"ecasound", "-i", "resample,auto,#{fixture}", "-o", testpath/"test.cdr"
|
|
assert_predicate testpath/"test.cdr", :exist?
|
|
end
|
|
end
|