# -*- 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$ PortSystem 1.0 PortGroup python 1.0 PortGroup select 1.0 set realname html2text name py-${realname} version 2016.5.29 categories-append textproc platforms darwin license GPL-3+ supported_archs noarch maintainers nomaintainer 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). homepage http://pypi.python.org/pypi/${realname} master_sites pypi:[string index ${realname} 0]/${realname}/ distname ${realname}-${version} checksums rmd160 81019a1566f56ef75cea78009938b32cfc35a6df \ sha256 98aa9e93724afb5ecd9445df9800d0690a3f910726b0c577009277024aa840c6 python.versions 27 34 35 if {${name} eq ${subport}} { livecheck.type regex livecheck.regex [format "%s-%s" ${realname} {(\d+(\.\d+)*)}] livecheck.url http://pypi.python.org/pypi/${realname}/ } else { 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}] " }