mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
beautifulsoup4, bump version (#8789)
This commit is contained in:
94
dev-python/beautifulsoup4/beautifulsoup4-4.12.2.recipe
Normal file
94
dev-python/beautifulsoup4/beautifulsoup4-4.12.2.recipe
Normal file
@@ -0,0 +1,94 @@
|
||||
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
|
||||
https://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.org/packages/source/b/beautifulsoup4/beautifulsoup4-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="492bbc69dca35d12daac71c4db1bfff0c876c00ef4a2ffacce226d4638eb72da"
|
||||
SOURCE_DIR="beautifulsoup4-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
eval "PROVIDES_$pythonPackage=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_REQUIRES+="
|
||||
build_$pythonPackage
|
||||
installer_$pythonPackage
|
||||
setuptools_$pythonPackage
|
||||
wheel_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
editables_$pythonPackage
|
||||
hatchling_$pythonPackage
|
||||
pathspec_$pythonPackage
|
||||
pluggy_$pythonPackage
|
||||
trove_classifiers_$pythonPackage
|
||||
"
|
||||
done
|
||||
|
||||
TEST_REQUIRES="
|
||||
html5lib_python39
|
||||
lxml_python39
|
||||
soupsieve_python39
|
||||
cmd:pytest
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
|
||||
$python -m build --wheel --no-isolation
|
||||
$python -m installer -p $prefix dist/*.whl
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
pytest -v
|
||||
}
|
||||
Reference in New Issue
Block a user