mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 13:20:08 +02:00
html2text: bump version.
keep 2019.8.11 for python 2.7.
This commit is contained in:
46
dev-python/html2text/html2text_python-2019.8.11.recipe
Normal file
46
dev-python/html2text/html2text_python-2019.8.11.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user