forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ray.rb
28 lines (23 loc) · 753 Bytes
/
ray.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
require 'formula'
class Ray < Formula
homepage 'http://denovoassembler.sourceforge.net'
url 'http://downloads.sourceforge.net/project/denovoassembler/Ray-v2.1.0.tar.bz2'
sha1 '4c09f2731445852857af53b65aa47e444792eeb0'
# The head does not build right now. Can you help us?
# head 'https://github.com/sebhtml/ray.git'
depends_on MPIDependency.new(:cxx)
fails_with :llvm do
build 2336
cause '"___gxx_personality_v0" ... ld: symbol(s) not found for architecture x86_64'
end
def install
system "make", "PREFIX=#{prefix}"
system "make install"
# The binary 'Ray' is installed in the prefix, but we want it in bin:
bin.install 'Ray'
rm prefix/'Ray'
end
test do
system bin/'Ray', '--version'
end
end