mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 13:20:08 +02:00
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
SUMMARY="parses CSS3 Selectors and translates them to XPath 1.0"
|
|
DESCRIPTION="
|
|
cssselect parses CSS3 Selectors and translate them to XPath 1.0 \
|
|
expressions. Such expressions can be used in lxml or another XPath \
|
|
engine to find the matching elements in an XML or HTML document.
|
|
"
|
|
HOMEPAGE="
|
|
https://pythonhosted.org/cssselect/
|
|
https://pypi.python.org/pypi/cssselect
|
|
"
|
|
SRC_URI="https://pypi.python.org/packages/source/c/cssselect/cssselect-0.9.1.tar.gz"
|
|
CHECKSUM_SHA256="0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682"
|
|
LICENSE="BSD (3-clause)"
|
|
COPYRIGHT="2007-2012 Ian Bicking and contributors"
|
|
REVISION="1"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
|
|
PROVIDES="
|
|
cssselect = $portVersion
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku
|
|
cmd:python
|
|
"
|
|
|
|
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
|
|
}
|