forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatb.rb
35 lines (29 loc) · 967 Bytes
/
gatb.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
class Gatb < Formula
homepage "https://gatb.inria.fr/"
# doi "10.1093/bioinformatics/btu406"
# tag "bioinformatics"
url "http://gatb-core.gforge.inria.fr/versions/src/gatb-core-1.0.7-Source.tar.gz"
version "1.0.7"
sha256 "790803a7a2819566bc89ee24598f9e8c4e114d7d65dc5f87d1d5b8c319f78876"
bottle do
sha256 "2d34597f4d793a15bad4d280df11cec2a9a818cf87d20f600107e00cb6ce573f" => :yosemite
sha256 "a9a8ae6f10923cc1ff228dfa8b12b16ae854a77a0433c0bb5421f749d25a6db8" => :mavericks
end
depends_on "cmake" => :build
def install
mkdir "build" do
# Fix the error: 'hdf5/hdf5.h' file not found
args = std_cmake_args
args.delete "-DCMAKE_BUILD_TYPE=Release"
system "cmake", "..", *args
system "make", "install"
# Remove conflicts with hdf5
rm bin/"h5dump"
rm lib/"libhdf5.a"
rm_r include/"hdf5"
end
end
test do
assert_match "graph", shell_output("#{bin}/dbginfo", 1)
end
end