forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gaemr.rb
31 lines (26 loc) · 980 Bytes
/
gaemr.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
require "formula"
class Gaemr < Formula
homepage "http://www.broadinstitute.org/software/gaemr/"
url "http://www.broadinstitute.org/software/gaemr/wp-content/uploads/2012/12/GAEMR-1.0.1.tar.gz"
sha1 "3747204b177eb32bfc2a0adc239d920320a2ff09"
def install
libexec.install Dir["*"]
bin.install_symlink "../libexec/bin/GAEMR.py"
end
def caveats; <<-EOS.undent
After install GAEMR, you must do these 3 things:
1. Amend your UNIX PATH environmental variable to point to your
installation of the GAEMR/bin directory:
export PATH=#{libexec}/bin:$PATH
2. Amend your UNIX PYTHONPATH environmental variable to point to
your installation of the GAEMR directory:
export PYTHONPATH=#{libexec}:$PYTHONPATH
3. Change the path variables in
#{libexec}/gaemr/PlatformConstant.py
to reflect your installation for the various bioinformatics tools.
EOS
end
test do
system "#{bin}/GAEMR.py --help"
end
end