# -*- 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

PortSystem          1.0

name                prc
version             1.5.6
categories          math science
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             GPL-2+

description         program for aligning and scoring two profile hidden \
                    Markov models

long_description    PRC is a stand-alone program for aligning and scoring two \
                    profile hidden Markov models. This can be used to detect \
                    remote relationships between profiles more effectively \
                    than by doing simple profile-sequence comparisons. \
                    PRC takes into account all transition and emission \
                    probabilities in both hidden Markov models. \
                    PRC can read SAM, HMMER, PSI-BLAST and FASTA files.

homepage            https://supfam.mrc-lmb.cam.ac.uk/PRC/
master_sites        ${homepage}programs/PRC-${version}

extract.suffix      .tgz
distfiles           ${name}-${version}-src${extract.suffix}

checksums           rmd160  1a79a72cf7329a6cb4433d2cf67c4ce123f1b605 \
                    sha256  2ad9dcd0621a7262b5754426a62cd630dfbf14b04481fde116fa169d89249394 \
                    size    121380

patchfiles          patch-configure.diff \
                    patch-Makefile.in.diff

destroot {
    xinstall -W ${worksrcpath} \
        convert_to_prc \
        merge_aligns.pl \
        prc \
        ${destroot}${prefix}/bin
    
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -W ${worksrcpath} -m 0644 \
        COPYING \
        LICENSE \
        README \
        ${destroot}${docdir}
    
    xinstall -d ${destroot}${prefix}/share/examples
    copy ${worksrcpath}/example ${destroot}${prefix}/share/examples/${name}
}

livecheck.type      regex
livecheck.url       ${homepage}programs/
livecheck.regex     PRC-(\[0-9.\]+)/
