Created
January 15, 2016 12:46
-
-
Save bede/daf0a895ac40e9d2612b to your computer and use it in GitHub Desktop.
spades.rb candidate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Spades < Formula | |
desc "SPAdes: de novo genome assembly" | |
homepage "http://bioinf.spbau.ru/spades/" | |
# tag "bioinformatics" | |
# doi "10.1089/cmb.2012.0021" | |
url "http://spades.bioinf.spbau.ru/release3.6.2/SPAdes-3.6.2.tar.gz" | |
sha256 "20897e2707623ee1033d3c88fefc42771fa4bbaafaf0f95642991d83b361eb5f" | |
depends_on "cmake" => :build | |
def install | |
mkdir "src/build" do | |
system "cmake", "..", *std_cmake_args | |
system "make", "install" | |
end | |
# Fix the audit error "Non-executables were installed to bin" | |
inreplace bin/"spades_init.py" do |s| | |
s.sub! /^/, "#!/usr/bin/env python\n" | |
end | |
end | |
test do | |
system "spades.py", "--test" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment