From cb963e693ee497296cd0de4ede4bb2aeff1f7726 Mon Sep 17 00:00:00 2001 From: Ben Konosky Date: Tue, 5 Dec 2017 12:57:58 -0800 Subject: [PATCH] inspectrum 0.2 (new formula) Closes #21366. Signed-off-by: FX Coudert --- Formula/inspectrum.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/inspectrum.rb diff --git a/Formula/inspectrum.rb b/Formula/inspectrum.rb new file mode 100644 index 0000000000..258179c5e9 --- /dev/null +++ b/Formula/inspectrum.rb @@ -0,0 +1,22 @@ +class Inspectrum < Formula + desc "Offline radio signal analyser" + homepage "https://github.com/miek/inspectrum" + url "https://github.com/miek/inspectrum/archive/v0.2.tar.gz" + sha256 "50b7db9b86208f414c387700a358eb58364094f3e8a4985f586f4f815645898a" + head "https://github.com/miek/inspectrum.git" + + depends_on "cmake" => :build + depends_on "pkg-config" => :build + depends_on "fftw" + depends_on "liquid-dsp" + depends_on "qt" + + def install + system "cmake", ".", *std_cmake_args + system "make", "install" + end + + test do + assert_match "-r, --rate Set sample rate.", shell_output("#{bin}/inspectrum -h").strip + end +end