diff --git a/dev-python/feedparser/feedparser-5.2.1.recipe b/dev-python/feedparser/feedparser-5.2.1.recipe new file mode 100644 index 000000000..da1d871c9 --- /dev/null +++ b/dev-python/feedparser/feedparser-5.2.1.recipe @@ -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 +}