forked from necromant2005/homebrew-boneyard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pagan.rb
38 lines (30 loc) · 1.09 KB
/
pagan.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
class Pagan < Formula
homepage "http://wasabiapp.org/software/pagan/"
# doi "10.1093/bioinformatics/bts198"
# tag "bioinformatics"
url "http://wasabiapp.org/download/pagan/pagan.src.20140814.tgz"
version "0.56"
sha1 "56e90fffcc715f1230d56babdaaaab0a2e9c9073"
head "https://code.google.com/p/pagan-msa/", :using => :git
depends_on "boost"
depends_on "exonerate" => :recommended
depends_on "mafft" => :recommended
depends_on "raxml" => :recommended
def install
cd "src" do
# Remove the explicit search of /usr/include
inreplace "Makefile", "-I/usr/include ", ""
# Fix error ld: library not found for -lboost_thread
inreplace "Makefile", "-lboost_thread", "-lboost_thread-mt"
# Fix undefined symbol boost::program_options::validators::check_first_occurrence
inreplace "Makefile", "-Wl,-rpath,", ""
system "make", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}", "LINK=#{ENV.cxx}"
bin.install "pagan"
end
doc.install "readme.txt", "VERSION_HISTORY"
prefix.install "examples"
end
test do
system "#{bin}/pagan", "--version"
end
end