Files
haikuports/dev-python/feedparser/feedparser-5.2.1.recipe
2016-02-26 10:33:51 -05:00

57 lines
1.2 KiB
Bash

SUMMARY="Parse RSS and Atom feeds in Python"
DESCRIPTION="
Parse RSS and Atom feeds in Python. 2000 unit tests. Open source."
HOMEPAGE="
https://github.com/kurtmckee/feedparser
https://pypi.python.org/pypi/feedparser
"
COPYRIGHT="
2010-2015 Kurt McKee
2002-2008 Mark Pilgrim
"
LICENSE="
BSD (2-clause)
Python
"
REVISION="1"
SOURCE_URI="https://github.com/kurtmckee/feedparser/archive/5.2.1.tar.gz"
CHECKSUM_SHA256="09367f95e58b9c5f70da70061d3e7f397ed8ec5d3c970e231ef011ff62de462f"
ARCHITECTURES="?x86 x86_gcc2 ?x86_64"
PROVIDES="
feedparser = $portVersion
"
REQUIRES="
haiku
cmd:python
#python_setuptools
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python 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)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
python setup.py install \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}