Files
haikuports/dev-util/gertty/gertty-1.6.0.recipe

90 lines
2.3 KiB
Bash

SUMMARY="A console-based interface to the Gerrit Code Review system"
DESCRIPTION="Gertty is a console-based interface to the Gerrit Code Review system.
As compared to the web interface, the main advantages are:
* Workflow -- the interface is designed to support a workflow similar to reading network news or \
mail. In particular, it is designed to deal with a large number of review requests across a \
large number of projects.
* Offline Use -- Gertty syncs information about changes in subscribed projects to a local \
database and local git repos. All review operations are performed against that database and then \
synced back to Gerrit.
* Speed -- user actions modify locally cached content and need not wait for server interaction.
* Convenience -- because Gertty downloads all changes to local git repos, a single command \
instructs it to checkout a change into that repo for detailed examination or testing of larger \
changes."
HOMEPAGE="https://pypi.org/project/gertty/"
COPYRIGHT="2022 The TTY Group"
LICENSE="Apache v2"
REVISION="9"
SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="1c3593d2e6ce53bd84b27d6ac92df4a86d8923afd18b4f4f8e2c979f8a6277df"
PATCHES="gertty-$portVersion.patchset"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
pythonVersion=3.10
pythonPackage=python${pythonVersion//.}
PROVIDES="
$portName = $portVersion
cmd:gertty = $portVersion
"
REQUIRES="
haiku
cmd:python$pythonVersion
alembic_py_$pythonPackage
dateutil_$pythonPackage
gitpython_$pythonPackage
pbr_$pythonPackage
ply_$pythonPackage
pyyaml_$pythonPackage
requests_$pythonPackage
sqlalchemy_$pythonPackage
urwid_$pythonPackage
voluptuous_$pythonPackage
"
BUILD_REQUIRES+="
pbr_$pythonPackage
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
# gertty was built as a regular python package instead of a stand-alone util before.
REPLACES="
gertty_python39
gertty_python310
"
BUILD()
{
python$pythonVersion setup.py build
}
INSTALL()
{
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
python$pythonVersion setup.py install \
--root=/ --prefix=$prefix --skip-build
}