# -*- 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 2015.4.14 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). homepage http://pypi.python.org/pypi/${realname} master_sites http://pypi.python.org/packages/source/[string index ${realname} 0]/${realname}/ distname ${realname}-${version} checksums rmd160 a431bddfcb21349198b34587bf15272d18176670 \ sha256 b966f618423e12b202f53652a57ea28b9d95861882f93658dcbd7d899603aa85 python.versions 27 34 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}] " }