# -*- 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-beautifulsoup
license             BSD
version             3.2.2
categories-append   textproc
platforms           {darwin any}
maintainers         nomaintainer
supported_archs     noarch

description         Python HTML/XML parser
long_description    Beautiful Soup is a Python HTML/XML parser designed for \
                    quick turnaround projects like screen-scraping.

homepage            https://www.crummy.com/software/BeautifulSoup/
master_sites        https://www.crummy.com/software/BeautifulSoup/download/3.x/
distname            BeautifulSoup-${version}
checksums           rmd160  32fbe7c22c640a483888a7384f1929da5aea82d3 \
                    sha256  d8f266e2bff852a5542ff91a02b6b3596b3fb225d34f09eb9cd6095b90b6c0d9 \
                    size    32704

python.versions     27

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    post-destroot   {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} \
            PKG-INFO ${destroot}${docdir}
    }

    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.regex BeautifulSoup-(\[0-9.\]+)${extract.suffix}
}
