html2text: bump version.

keep 2019.8.11 for python 2.7.
This commit is contained in:
Jerome Duval
2019-10-22 20:42:10 +02:00
parent 2ec9e527b6
commit a178a46a77
2 changed files with 53 additions and 12 deletions

View File

@@ -0,0 +1,46 @@
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
}