python_html2text: bump version.

This commit is contained in:
Jerome Duval
2016-04-14 22:37:54 +00:00
parent a09b71f069
commit 4986ec1f30

View File

@@ -9,8 +9,8 @@ HOMEPAGE="https://github.com/html2text/html2text.py
COPYRIGHT="2004-2008 Aaron Swartz"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/h/html2text/html2text-2016.1.8.tar.gz"
CHECKSUM_SHA256="088046f9b126761ff7e3380064d4792279766abaa5722d0dd765d011cf0bb079"
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"
@@ -20,7 +20,7 @@ PROVIDES="
"
REQUIRES="
haiku
cmd:python
cmd:python2
#python_setuptools
"
@@ -29,24 +29,24 @@ BUILD_REQUIRES="
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python
cmd:python2
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python setup.py build
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
export PATH="$portPackageLinksDir/cmd~python/bin:$PATH"
pythonVersion=$(python --version 2>&1 | sed 's/Python //' | head -c3)
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
python setup.py install \
python2 setup.py install \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}