mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 15:20:07 +02:00
add recipe for feedparser
One more dependency for weboob.
This commit is contained in:
59
dev-python/feedparser/feedparser-5.2.1.recipe
Normal file
59
dev-python/feedparser/feedparser-5.2.1.recipe
Normal file
@@ -0,0 +1,59 @@
|
||||
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
|
||||
"
|
||||
SOURCE_URI="https://github.com/kurtmckee/feedparser/archive/5.2.1.tar.gz"
|
||||
CHECKSUM_SHA256="09367f95e58b9c5f70da70061d3e7f397ed8ec5d3c970e231ef011ff62de462f"
|
||||
LICENSE="
|
||||
BSD (2-clause)
|
||||
Python
|
||||
"
|
||||
COPYRIGHT="
|
||||
2010-2015 Kurt McKee
|
||||
2002-2008 Mark Pilgrim
|
||||
"
|
||||
REVISION="1"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user