mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
Add recipe for python package pathtools
This commit is contained in:
56
dev-python/pathtools/python_pathtools-0.1.2.recipe
Normal file
56
dev-python/pathtools/python_pathtools-0.1.2.recipe
Normal file
@@ -0,0 +1,56 @@
|
||||
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
|
||||
"
|
||||
SRC_URI="https://pypi.python.org/packages/source/p/pathtools/pathtools-0.1.2.tar.gz"
|
||||
CHECKSUM_SHA256="7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="2010 Yesudeep Mangalapilly"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
|
||||
SOURCE_DIR="pathtools-$portVersion"
|
||||
|
||||
PROVIDES="
|
||||
python_pathtools = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
cmd:python
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user