mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 05:40:07 +02:00
Add recipe for python package argh
This commit is contained in:
55
dev-python/argh/python_argh-0.26.1.recipe
Normal file
55
dev-python/argh/python_argh-0.26.1.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user