# -*- 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 75423 2011-01-25 00:04:30Z ryandesign@macports.org $

PortSystem              1.0

name                    samtools
version                 0.1.12a
categories              science
platforms               darwin
maintainers             gmail.com:haroldpimentel openmaintainer
license                 MIT

description             Tools for alignments in the SAM format

long_description        SAM (Sequence Alignment/Map) Tools provide various \
                        utilities for manipulating alignments in the SAM \
                        format, including sorting, merging, indexing and \
                        generating alignments in a per-position format.

homepage                http://samtools.sourceforge.net/
master_sites            sourceforge

checksums               sha1    d517cd189aa714251a0e43cb83dea3ae0f29bffa \
                        rmd160  e2732e61b216bc2d8e6a1c81aa91c34f296cef29

use_bzip2               yes

depends_lib             port:zlib

use_configure           no

destroot {
    xinstall -m 755 ${worksrcpath}/samtools ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/libbam.a ${destroot}${prefix}/lib
    xinstall -d ${destroot}${prefix}/include/bam
    eval xinstall -m 644 [glob ${worksrcpath}/*.h] ${destroot}${prefix}/include/bam
    
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING ChangeLog NEWS \
        ${destroot}${prefix}/share/doc/${name}
}
