# -*- 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
# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0
PortGroup           github 1.0

github.setup        aaronsw html2text 8ddc844b0304
name                py-html2text
version             3.200.4

categories-append   textproc
platforms           darwin
license             GPL-3+
supported_archs     noarch
maintainers         sean openmaintainer

description         html2text is a Python script that converts a page of HTML into text
long_description    html2text is a Python script that converts a page of HTML into clean, \
                    easy-to-read plain ASCII text. Better yet, that ASCII also happens to \
                    be valid Markdown (a text-to-HTML format).

checksums           rmd160  f13d328001f499eecb075112220f1bdf0e723755 \
                    sha256  c3ead259341fd9b28f425fbc1a5a115d0e19e002cd09152a038bec38f0420e32

python.versions     26 27 31 32 33

if {${name} ne ${subport}} {

    depends_lib-append  port:py${python.version}-setuptools

    depends_run-append  port:py-html2text_select

    select.group        py-html2text
    select.file         ${filespath}/py${python.version}-html2text

    livecheck.type  none

    notes "
To make the Python ${python.branch} version of py-html2text the one that is run\
when you execute the commands without a version suffix, e.g. 'html2text', run:

port select --set ${select.group} [file tail ${select.file}]
"
}
