SUMMARY="Convert HTML to Markdown-formatted text" 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="https://github.com/html2text/html2text.py https://github.com/Alir3z4/html2text https://pypi.python.org/pypi/html2text" COPYRIGHT="2004-2008 Aaron Swartz" LICENSE="GNU GPL v3" REVISION="1" SOURCE_URI="https://github.com/Alir3z4/html2text/archive/$portVersion.tar.gz" SOURCE_DIR="html2text-$portVersion" CHECKSUM_SHA256="aeffe2b403ddf242f43aba6b91b77791a489b32e6e8fa108f7963d11cb85c862" ARCHITECTURES="any" PROVIDES=" $portName = $portVersion cmd:html2text " REQUIRES=" haiku cmd:python2.7 " BUILD_REQUIRES=" haiku_devel setuptools_python " BUILD_PREREQUIRES=" cmd:python2.7 " INSTALL() { pythonVersion=2.7 python=python$pythonVersion installLocation=$prefix/lib/$python/vendor-packages/ export PYTHONPATH=$installLocation:$PYTHONPATH mkdir -p $installLocation rm -rf build $python setup.py build install \ --root=/ --prefix=$prefix }