mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
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://pypi.python.org/packages/source/h/html2text/html2text-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="32e5e49eb520335bae200a00e3cc981f1ade558930068e1bb2a6e3fb1504f951"
|
|
SOURCE_DIR="html2text-$portVersion"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
|
|
PROVIDES="
|
|
python_html2text = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
cmd:python2
|
|
#python_setuptools
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
python_setuptools
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:python2
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
# GENERIC: all python_setuptools-based installs need this
|
|
export PATH="$portPackageLinksDir/cmd~python2/bin:$PATH"
|
|
pythonVersion=$(python2 --version 2>&1 | sed 's/Python //' | head -c3)
|
|
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
|
export PYTHONPATH=$installLocation:$PYTHONPATH
|
|
mkdir -p $installLocation
|
|
|
|
python2 setup.py install \
|
|
--single-version-externally-managed \
|
|
--root=/ --prefix=$prefix
|
|
}
|