Files
haikuports/dev-python/cssselect/cssselect-0.9.1.recipe
Humdinger 064b69cead De-lint recipes.
*	avrdude
	SUMMARY must have at least 3 words

*	bebook
	SUMMARY must have at least 3 words
	Re-ordered blocks

*	bzflag
	SUMMARY must have at least 3 words
	Re-ordered blocks

*	c_ares
	SUMMARY must start with capital letter
	Re-ordered blocks

*	cmake
	SUMMARY must have at least 3 words
	Re-ordered blocks

*	command_not_found
	SUMMARY must have at least 3 words
	Added BUILD_PREREQUIRES
	Re-ordered blocks

*	confuse
	SUMMARY must start with capital letter
	Re-ordered blocks

*	cream
	SUMMARY must start with capital letter
	Re-ordered blocks

*	croscorefonts
	SUMMARY must have at least 3 words
	Re-ordered blocks

*	cssselect
	SUMMARY must start with capital letter
	Re-ordered blocks

*	dcron
	SUMMARY must start with capital letter
	Re-ordered blocks

*	eggchess
	SUMMARY must have at least 3 words
	Re-ordered blocks
2015-08-08 08:16:04 +02:00

49 lines
1.3 KiB
Bash

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"
COPYRIGHT="2007-2012 Ian Bicking and contributors"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/c/cssselect/cssselect-0.9.1.tar.gz"
CHECKSUM_SHA256="0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682"
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
}