Add recipe for python package watchdog

This commit is contained in:
Chirayu Desai
2014-12-07 18:10:43 +00:00
parent 7c0988c52e
commit db3e615d60

View File

@@ -0,0 +1,58 @@
SUMMARY="Filesystem events monitoring"
DESCRIPTION="Python API and shell utilities to monitor file system events."
HOMEPAGE="https://pypi.python.org/pypi/watchdog"
SRC_URI="https://pypi.python.org/packages/source/w/watchdog/watchdog-0.8.2.tar.gz"
CHECKSUM_SHA256="33a9ab3ce2e6b1aca4d2a50752231668d69bdba4ab096d9742195ccfbef1e023"
LICENSE="Apache v2"
COPYRIGHT="
2011 Yesudeep Mangalapilly
2012 Google, Inc.
"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SOURCE_DIR="watchdog-$portVersion"
PROVIDES="
python_watchdog = $portVersion
cmd:watchmedo
"
REQUIRES="
haiku >= $haikuVersion
cmd:python
python_argh
python_pathtools
python_pyyaml
"
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
}