# -*- 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
PortGroup           perl5 1.0

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         eval 2.2.8
revision            4
# see RPM/eval.spec for licensing
license             GPL-2+
categories          perl biology
maintainers         cse.wustl.edu:rpz
description         Eval is a flexible tool for analyzing the performance of gene-structure prediction programs.
long_description    {*}${description} It provides summaries and graphical distributions for many statistics, \
                    describing any set of annotations, regardless of their source. It also compares \
                    sets of predictions to standard annotations and to one another.

homepage            http://mblab.wustl.edu
master_sites        http://mblab.wustl.edu/software/download/

checksums           rmd160  2f1572e4d9996760b48284fc5f2a589c56008a5d \
                    sha256  5cce1df4a08ab5fa5d81e572c876ed2bd02041f5ac3cea73d3f7eee87c7c1d9c \
                    size    592357

platforms           any
supported_archs     noarch

if {${perl5.major} != ""} {
    use_configure   no

    build {}
    test.run        no

    destroot {
        set installvendorlib [perl5.extract_config installvendorlib]
        xinstall -d ${destroot}${installvendorlib}
        xinstall -d ${destroot}${perl5.bindir}
        xinstall -m 0644 -W ${worksrcpath} Eval.pm GTF.pm ${destroot}${installvendorlib}
        xinstall -m 0755 -W ${worksrcpath} combine_eval_reports.pl eval.pl \
            evaluate_gtf.pl filter_badlist.pl filter_gtfs.pl get_distribution.pl \
            get_general_stats.pl get_overlap_stats.pl gff3_to_gtf.pl graph_gtfs.pl \
            make_intron_lenght_vs_performance_graph.pl validate_gtf.pl \
            validate_splice_sites.pl ${destroot}${perl5.bindir}
    }
}

livecheck.type  none
# master_sites seems to be broken (SSL certificate problem: unable to get local issuer certificate)
# livecheck.type      regex
# livecheck.url       ${master_sites}
# livecheck.regex     "eval-(\\d+(?:\\.\\d+)*)${extract.suffix}"
