mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 15:20:07 +02:00
Add recipe for gdata python client
This commit is contained in:
61
dev-python/gdata/gdata-2.0.18.recipe
Normal file
61
dev-python/gdata/gdata-2.0.18.recipe
Normal file
@@ -0,0 +1,61 @@
|
||||
SUMMARY="Python client library for Google data APIs"
|
||||
DESCRIPTION="
|
||||
The Google Data APIs (Google Data) provide a simple protocol \
|
||||
for reading and writing data on the web. Though it is possible \
|
||||
to use these services with a simple HTTP client, this library \
|
||||
provides helpful tools to streamline your code and keep up with \
|
||||
server-side changes.
|
||||
"
|
||||
HOMEPAGE="
|
||||
https://github.com/google/gdata-python-client
|
||||
http://code.google.com/p/gdata-python-client/
|
||||
http://pypi.python.org/pypi/gdata
|
||||
"
|
||||
SRC_URI="https://pypi.python.org/packages/source/g/gdata/gdata-2.0.18.tar.gz"
|
||||
CHECKSUM_SHA256="56e7d22de819c22b13ceb0fe1869729b4287f89ebbd4bb55380d7bcf61a1fdb6"
|
||||
LICENSE="Apache v2"
|
||||
COPYRIGHT="2006-2014 Google Inc."
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
|
||||
#SOURCE_DIR="PyYAML-$portVersion"
|
||||
|
||||
PROVIDES="
|
||||
gdata = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python
|
||||
"
|
||||
|
||||
#TODO: eventually depend on http://pyyaml.org/wiki/LibYAML
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
cmd:sed
|
||||
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 \
|
||||
--prefix=$prefix
|
||||
}
|
||||
Reference in New Issue
Block a user