mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 11:10:07 +02:00
add recipe for beautifulsoup
somehow weboob doesn't find it though, maybe it wants an older one.
This commit is contained in:
67
dev-python/beautifulsoup/beautifulsoup-4.4.1.recipe
Normal file
67
dev-python/beautifulsoup/beautifulsoup-4.4.1.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user