From 144fe6055b569e390d6b3dc334be9bf9e52a1f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 9 Feb 2016 14:35:18 +0100 Subject: [PATCH] add recipe for beautifulsoup somehow weboob doesn't find it though, maybe it wants an older one. --- .../beautifulsoup/beautifulsoup-4.4.1.recipe | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 dev-python/beautifulsoup/beautifulsoup-4.4.1.recipe diff --git a/dev-python/beautifulsoup/beautifulsoup-4.4.1.recipe b/dev-python/beautifulsoup/beautifulsoup-4.4.1.recipe new file mode 100644 index 000000000..014559fad --- /dev/null +++ b/dev-python/beautifulsoup/beautifulsoup-4.4.1.recipe @@ -0,0 +1,67 @@ +SUMMARY="Python library for iterating, searching, and modifying an HTML/XML parse tree" +DESCRIPTION=" + Beautiful Soup is a Python HTML/XML parser designed for quick + turnaround projects like screen-scraping. + Two features make it powerful: + it won't choke if you give it bad markup and it provides + a few simple methods and Pythonic idioms for navigating and + searching a parse tree: a toolkit for dissecting a document and + extracting what you need +" +HOMEPAGE=" + https://bugs.launchpad.net/beautifulsoup/ + https://pypi.python.org/pypi/beautifulsoup4 + http://www.crummy.com/software/BeautifulSoup/bs4/ + " +SOURCE_URI="https://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-4.4.1.tar.gz" +CHECKSUM_SHA256="87d4013d0625d4789a4f56b8d79a04d5ce6db1152bb65f1d39744f7709a366b4" +LICENSE=" + MIT + " +COPYRIGHT=" + 2004-2015 Leonard Richardson + 2006-2013 James Graham and other contributors + " +REVISION="1" + +SOURCE_DIR="beautifulsoup4-$portVersion" + +ARCHITECTURES="?x86 x86_gcc2 ?x86_64" + +PROVIDES=" + beautifulsoup = $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 +}