Files
haikuports/dev-python/beautifulsoup/beautifulsoup-4.4.1.recipe

58 lines
1.6 KiB
Bash

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/"
COPYRIGHT="2004-2015 Leonard Richardson
2006-2013 James Graham and other contributors"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-4.4.1.tar.gz"
CHECKSUM_SHA256="87d4013d0625d4789a4f56b8d79a04d5ce6db1152bb65f1d39744f7709a366b4"
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
}