Files
haikuports/dev-python/pathtools/pathtools-0.1.2.recipe

51 lines
1.2 KiB
Bash

SUMMARY="HTTP library for human beings"
DESCRIPTION="
Requests is an Apache2 Licensed HTTP library, written in Python, \
for human beings."
HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/requests"
COPYRIGHT="2010 Yesudeep Mangalapilly"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/p/pathtools/pathtools-0.1.2.tar.gz"
CHECKSUM_SHA256="7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"
SOURCE_DIR="pathtools-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
pathtools = $portVersion
"
REQUIRES="
haiku
cmd:python
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python/bin/python
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
}