-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstimfit.rb
70 lines (60 loc) · 2.11 KB
/
stimfit.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
class Stimfit < Formula
desc "Fast and simple program for viewing and analyzing electrophyiological data"
homepage "https://stimfit.org"
url "https://github.com/neurodroid/stimfit/archive/refs/tags/v0.16.4.tar.gz"
version "0.16.4"
sha256 "9d7e8b9ca3ab10990230b17d8a47ac2bd25d32c7d501fac1e1768980c548195e"
license "GPL-3.0-or-later"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "swig" => :build
# depends_on "matplotlib" => :build
depends_on "biosig"
depends_on "fftw"
depends_on "hdf5"
depends_on "libx11"
# depends_on "numpy"
# depends_on "python-matplotlib"
# depends_on "python"
# depends_on "wxpython"
depends_on "tinyxml"
depends_on "wxwidgets"
# patch :DATA
def install
ENV.deparallelize
system "./autogen.sh && autoconf"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--disable-python",
"--with-biosig",
"--with-pslope"
system "make", "WXCONF=wx-config", "-f", "Makefile.static"
bin.install "stimfit"
end
def uninstall
rm "#{bin}/stimfit"
end
def caveats
<<~EOS
This version of StimFit comes without python/wxpython support.
Accordingly, some features that require python are not available.
EOS
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test stimfit`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "#{bin}/stimfit"
end
end
__END__