# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 91410 2012-04-01 03:36:55Z ryandesign@macports.org $

PortSystem          1.0

name                bowtie
version             0.12.7
categories          science biology
platforms           darwin
maintainers         gmail.com:haroldpimentel
license             Artistic

description         an ultrafast, memory-efficient short read aligner

long_description    Bowtie is ${description}. It aligns short DNA sequences \
                    (reads) to the human genome at a rate of over 25 million \
                    35-bp reads per hour. Bowtie indexes the genome with a \
                    Burrows-Wheeler index to keep its memory footprint small: \
                    typically about 2.2 GB for the human genome (2.9 GB for \
                    paired-end).

homepage            http://bowtie-bio.sourceforge.net/
master_sites        sourceforge:project/bowtie-bio/${name}/${version}
use_zip             yes
extract.suffix      -src${extract.suffix}

checksums           sha1        0eb752db072a2da6fc6dac55d2ab825422e994ce \
                    rmd160      7b2210d4526c4818936b729b0e68f4c13a101fc6

depends_build       bin:md5sum:md5sha1sum

use_configure       no

variant universal {}

build.target        allall
build.args          CC=${configure.cc} CXX=${configure.cxx} \
                    EXTRA_FLAGS="[get_canonical_archflags]"

destroot {
    xinstall -W ${worksrcpath} \
        bowtie \
        bowtie-debug \
        bowtie-build \
        bowtie-build-debug \
        bowtie-inspect \
        bowtie-inspect-debug \
        ${destroot}${prefix}/bin
    
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        MANUAL \
        NEWS \
        TUTORIAL \
        VERSION \
        MANUAL.markdown \
        ${destroot}${prefix}/share/doc/${name}
}
