mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
79
dev-python/lxml/lxml-4.2.1.recipe
Normal file
79
dev-python/lxml/lxml-4.2.1.recipe
Normal file
@@ -0,0 +1,79 @@
|
||||
SUMMARY="A Pythonic binding for the libxml2 and libxslt libraries"
|
||||
DESCRIPTION="The lxml XML toolkit is unique in that it combines the speed \
|
||||
and XML feature completeness of the libxml2 and libxslt libraries with the \
|
||||
simplicity of a native Python API, mostly compatible but superior to the \
|
||||
well-known ElementTree API."
|
||||
HOMEPAGE="http://lxml.de/
|
||||
https://pypi.python.org/pypi/lxml/"
|
||||
COPYRIGHT="2003-2010 Gustavo Niemeyer
|
||||
2003 Shuttleworth Foundation
|
||||
2004 Infrae"
|
||||
LICENSE="BSD (3-clause)
|
||||
GNU GPL v2
|
||||
PSF-2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://lxml.de/files/lxml-$portVersion.tgz"
|
||||
CHECKSUM_SHA256="e2629cdbcad82b83922a3488937632a4983ecc0fed3e5cfbf430d069382eeb9b"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libxml2
|
||||
devel:libxslt
|
||||
devel:libz
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
"
|
||||
PYTHON_PACKAGES=(python python3)
|
||||
PYTHON_VERSIONS=(2.7 3.6)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
lib:libxml2\n\
|
||||
lib:libxslt\n\
|
||||
lib:libz\n\
|
||||
cmd:python$pythonVersion\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
REPLACES_python="
|
||||
python_lxml
|
||||
"
|
||||
|
||||
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 setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user