forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamos.rb
35 lines (30 loc) · 1.17 KB
/
amos.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
require 'formula'
class Amos < Formula
homepage 'http://sourceforge.net/apps/mediawiki/amos/index.php?title=AMOS'
url 'http://sourceforge.net/projects/amos/files/amos/3.1.0/amos-3.1.0.tar.gz'
sha1 '28e799e37713594ba7147d300ecae6574beb14a4'
depends_on 'blat' => :optional # for minimus2-blat
depends_on 'boost' => :recommended # for Bambus 2
depends_on 'mummer' => :recommended # for minimus2
depends_on 'qt' => [:optional, '--with-qt3support'] # for AMOS GUIs
depends_on 'Statistics::Descriptive' => [:perl, :recommended]
def install
ENV.deparallelize
system "./configure", "--prefix=#{prefix}",
"--with-Boost-dir=#{Formula.factory('boost').opt_prefix}",
"--with-qmake-qt4=#{Formula.factory('qt').opt_prefix}/bin/qmake",
"BLAT=#{Formula.factory('blat').opt_prefix}/bin/blat",
"DELTAFILTER=#{Formula.factory('mummer').opt_prefix}/libexec/delta-filter",
"SHOWCOORDS=#{Formula.factory('mummer').opt_prefix}/libexec/show-coords"
system "make install"
end
def caveats; <<-EOS.undent
The Perl modules have been installed in
#{lib}/AMOS
#{lib}/TIGR
EOS
end
def test
system "#{bin}/bank-transact -h"
end
end