2020-02-22 09:22:53 +00:00
|
|
|
class Biosig < Formula
|
|
|
|
desc "Tools for biomedical signal processing and data conversion"
|
|
|
|
homepage "https://biosig.sourceforge.io"
|
2020-03-04 09:10:06 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/biosig/BioSig%20for%20C_C%2B%2B/src/biosig4c%2B%2B-2.0.1.src.tar.gz"
|
|
|
|
sha256 "b72ff4b67db5491dbe0b795d9328f454cd6ad3d4ac163ce99e12bf5002ff2791"
|
2020-03-07 03:12:30 +00:00
|
|
|
revision 1
|
2020-02-22 09:22:53 +00:00
|
|
|
|
2020-02-22 09:40:33 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2020-03-07 05:14:08 +00:00
|
|
|
sha256 "657d638596e9b430fcd3b94e55c8a4f7fb510363df89951fa24037274512837f" => :catalina
|
|
|
|
sha256 "1872fde2c383eb64a607afe5110666b78cfdee48478a07c9a25fff3c82d3401f" => :mojave
|
|
|
|
sha256 "bb9a88cfbaed06fd3202330cfde11d144687800e99f6f9165f9cdde7b91c66fe" => :high_sierra
|
2020-02-22 09:40:33 +00:00
|
|
|
end
|
|
|
|
|
2020-02-22 09:22:53 +00:00
|
|
|
depends_on "gawk" => :build
|
|
|
|
depends_on "gnu-sed" => :build
|
|
|
|
depends_on "gnu-tar" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "dcmtk"
|
|
|
|
depends_on "libb64"
|
|
|
|
depends_on "suite-sparse"
|
|
|
|
depends_on "tinyxml"
|
|
|
|
|
|
|
|
resource "test" do
|
|
|
|
url "https://pub.ist.ac.at/~schloegl/download/TEST_44x86_e1.GDF"
|
|
|
|
sha256 "75df4a79b8d3d785942cbfd125ce45de49c3e7fa2cd19adb70caf8c4e30e13f0"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}"
|
2020-03-04 09:10:06 +00:00
|
|
|
ENV.deparallelize
|
2020-02-22 09:22:53 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "usage: save2gdf [OPTIONS] SOURCE DEST", shell_output("#{bin}/save2gdf -h").strip
|
|
|
|
assert_match "mV\t4274\t0x10b2\t0.001\tV", shell_output("#{bin}/physicalunits mV").strip
|
|
|
|
assert_match "biosig_fhir provides fhir binary template for biosignal data", shell_output("#{bin}/biosig_fhir 2>&1").strip
|
|
|
|
testpath.install resource("test")
|
|
|
|
assert_match "NumberOfChannels", shell_output("#{bin}/save2gdf -json TEST_44x86_e1.GDF").strip
|
|
|
|
assert_match "NumberOfChannels", shell_output("#{bin}/biosig_fhir TEST_44x86_e1.GDF").strip
|
|
|
|
end
|
|
|
|
end
|