SUMMARY="An unobtrusive argparse wrapper with natural syntax" DESCRIPTION="Building a command-line interface? \ Found yourself uttering "argh!" while struggling with the API of argparse? \ Don't like the complexity but need the power? Argh is a smart wrapper for argparse. Argparse is a very powerful tool; \ Argh just makes it easy to use." HOMEPAGE="https://pypi.python.org/pypi/argh" SRC_URI="https://pypi.python.org/packages/source/a/argh/argh-0.26.1.tar.gz" CHECKSUM_SHA256="06a7442cb9130fb8806fe336000fcf20edf1f2f8ad205e7b62cec118505510db" LICENSE="GNU LGPL v3" COPYRIGHT="2010—2014 Andrey Mikhaylenko and contributors" REVISION="1" ARCHITECTURES="x86 x86_gcc2 x86_64" SOURCE_DIR="argh-$portVersion" PROVIDES=" python_argh = $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 }