name = 'pplacer'
version = '1.1.alpha16'

homepage = 'http://matsen.fhcrc.org/pplacer/'
description = """Pplacer places query sequences on a fixed reference phylogenetic tree to maximize phylogenetic
 likelihood or posterior probability according to a reference alignment. Pplacer is designed to be fast, to give
 useful information about uncertainty, and to offer advanced visualization and downstream analysis."""

toolchain = {'name': 'ictce', 'version': '5.5.0'}

source_urls = [
    'https://github.com/matsen/pplacer/archive/',
    'https://github.com/matsen/pplacer-opam-repository/archive/',
]
sources = [
    'v%(version)s.tar.gz',
    'ba5e766.tar.gz',  # pplacer-opam-repository (20151002)
]

patches = ['pplacer-%(version)s_fix-sqlite3-req-pkg.patch']

ocaml = 'OCaml'
ocamlver = '4.01.0'
versionsuffix = '-%s-%s' % (ocaml, ocamlver)
dependencies = [
    (ocaml, ocamlver),
    ('zlib', '1.2.7'),  # for CamlZIP OCaml package
    ('GSL', '1.16'),  # for GSL-OCaml package
    ('SQLite', '3.8.6'),  # for SQLite3-OCaml package
]
builddependencies = [
    ('M4', '1.4.17'),
]

# parallel build tends to break
parallel = 1

moduleclass = 'bio'
