forked from Ensembl/homebrew-ensembl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gerp.rb
64 lines (58 loc) · 1.73 KB
/
gerp.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
# Copyright [2016] EMBL-European Bioinformatics Institute
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class Gerp < Formula
desc 'Identification of constrained elements'
homepage "http://mendel.stanford.edu/SidowLab/downloads/gerp"
url "http://mendel.stanford.edu/SidowLab/downloads/gerp/GERPv2.1b_20080211.tar.gz"
sha256 "0053c47e4ace5ede83959d70ddbffad94e81ccbe6392ac3a4a389e0700e90ce0"
patch :DATA
def install
system "make"
bin.install 'gerpcol', 'gerpelem'
end
test do
system "#{bin}/gerpcol"
end
end
__END__
diff --git a/etree.cc b/etree.cc
index dc2b708..98c8cfc 100644
--- a/etree.cc
+++ b/etree.cc
@@ -25,6 +25,7 @@
#include <iostream>
#include <fstream>
#include <string>
+#include <cstdlib>
ETree::ETree(string filename) {
ifstream ifs(filename.c_str());
diff --git a/gerpcol.cc b/gerpcol.cc
index 6513d97..b833cef 100644
--- a/gerpcol.cc
+++ b/gerpcol.cc
@@ -25,6 +25,7 @@
#include <string>
#include <map>
#include <cmath>
+#include <cstdlib>
#include "etree.h"
#include "emodel.h"
diff --git a/gerpelem.cc b/gerpelem.cc
index 6f67c9b..e3f54ac 100644
--- a/gerpelem.cc
+++ b/gerpelem.cc
@@ -27,6 +27,7 @@
#include <ctime>
#include <algorithm>
#include <cmath>
+#include <cstring>
#include "Mseq.h"
#include "MIter.h"