From 202040fb154ec9268e2e73d9e0037a2891295bf7 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Sun, 7 Dec 2014 19:49:17 +0000 Subject: [PATCH] Add recipe for python package argh --- dev-python/argh/python_argh-0.26.1.recipe | 55 +++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 dev-python/argh/python_argh-0.26.1.recipe diff --git a/dev-python/argh/python_argh-0.26.1.recipe b/dev-python/argh/python_argh-0.26.1.recipe new file mode 100644 index 000000000..7bde69c3b --- /dev/null +++ b/dev-python/argh/python_argh-0.26.1.recipe @@ -0,0 +1,55 @@ +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 +}