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

name                py-FlexGet
version             1.2.183
categories-append   www
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         FlexGet is a multipurpose automation tool for \
                    content like torrents, nzbs, podcasts, comics, etc.
long_description    FlexGet is able to handle different kinds of \
                    sources like RSS-feeds, html pages and even csv \
                    files. There are even some plugins for sites that \
                    do not provide any kind of useful feeds.
homepage            https://flexget.com/

master_sites        pypi:F/FlexGet/
distname            FlexGet-${version}
checksums           md5     256f5536d5de5121a4495e93e9c0d35c \
                    sha256  c2c6bd11ca3daae93544df3152955f24799540c615733dce0a4812073090e5d2

python.versions     27

if {$subport ne $name} {
    depends_build   port:py${python.version}-paver

    depends_run     port:py${python.version}-PyRSS2Gen \
                    port:py${python.version}-beautifulsoup \
                    port:py${python.version}-feedparser \
                    port:py${python.version}-html5lib \
                    port:py${python.version}-progressbar \
                    port:py${python.version}-pygooglechart \
                    port:py${python.version}-pynzb \
                    port:py${python.version}-sqlalchemy \
                    port:py${python.version}-yaml

    build.cmd       paver-${python.branch}
    destroot.cmd    paver-${python.branch}

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${docdir}
    }

    test.run        yes
}