homebrew-core/Formula/fastx_toolkit.rb
Lance Parsons 03471ad6c0 New formula: fastx_toolkit
The FASTX-Toolkit is a collection of command line tools for Short-Reads
FASTA/FASTQ files preprocessing that are well suited for processing High
Throughput Sequencing data

Closes Homebrew/homebrew#9697.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-21 21:36:09 -05:00

32 lines
764 B
Ruby

require 'formula'
class FastxToolkit < Formula
homepage 'http://hannonlab.cshl.edu/fastx_toolkit/'
url 'http://hannonlab.cshl.edu/fastx_toolkit/fastx_toolkit-0.0.13.tar.bz2'
md5 '6d233ff4ae3d52c457d447179f073a56'
depends_on 'pkg-config' => :build
depends_on 'libgtextutils'
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
def test
fixture = <<-EOS.undent
>MY-ID
AAAAAGGGGG
CCCCCTTTTT
AGCTN
EOS
expect = <<-EOS.undent
>MY-ID
AAAAAGGGGGCCCCCTTTTTAGCTN
EOS
actual = `echo "#{fixture}" | #{bin}/fasta_formatter`
actual == expect
end
end