32 lines
903 B
Ruby
32 lines
903 B
Ruby
|
class Fastme < Formula
|
||
|
desc "Accurate and fast distance-based phylogeny inference program"
|
||
|
homepage "http://www.atgc-montpellier.fr/fastme/"
|
||
|
url "https://gite.lirmm.fr/atgc/FastME/raw/v2.1.6/tarball/fastme-2.1.6.tar.gz"
|
||
|
sha256 "4945c151e15acffd64820c5e1a4c4ed57ab9fada7f3fe84e3423c5155546b1d0"
|
||
|
|
||
|
depends_on "gcc"
|
||
|
|
||
|
fails_with :clang # no OpenMP support
|
||
|
|
||
|
def install
|
||
|
system "./configure", "--disable-debug",
|
||
|
"--disable-dependency-tracking",
|
||
|
"--disable-silent-rules",
|
||
|
"--prefix=#{prefix}"
|
||
|
system "make", "install"
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
(testpath/"test.dist").write <<~EOS
|
||
|
4
|
||
|
A 0.0 1.0 2.0 4.0
|
||
|
B 1.0 0.0 3.0 5.0
|
||
|
C 2.0 3.0 0.0 6.0
|
||
|
D 4.0 5.0 6.0 0.0
|
||
|
EOS
|
||
|
|
||
|
system "#{bin}/fastme", "-i", "test.dist"
|
||
|
assert_predicate testpath/"test.dist_fastme_tree.nwk", :exist?
|
||
|
end
|
||
|
end
|