From 969c17e85db5fd771b32184e97ee03b8f2e65817 Mon Sep 17 00:00:00 2001 From: extrowerk <5569059+extrowerk@users.noreply.github.com> Date: Thu, 6 Feb 2020 14:08:36 +0100 Subject: [PATCH] AiorpcX: new recipe (#4682) --- dev-python/aiorpcx/aiorpcx-0.18.4.recipe | 61 ++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 dev-python/aiorpcx/aiorpcx-0.18.4.recipe diff --git a/dev-python/aiorpcx/aiorpcx-0.18.4.recipe b/dev-python/aiorpcx/aiorpcx-0.18.4.recipe new file mode 100644 index 000000000..ef07ff7fd --- /dev/null +++ b/dev-python/aiorpcx/aiorpcx-0.18.4.recipe @@ -0,0 +1,61 @@ +SUMMARY="Generic async RPC implementation, including JSON-RPC" +DESCRIPTION="A generic asyncio library implementation of RPC suitable for an \ +application that is a client, server or both." +HOMEPAGE="https://github.com/kyuupichan/aiorpcX/" +COPYRIGHT="2018 Neil Booth" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/kyuupichan/aiorpcX/archive/$portVersion.tar.gz" +CHECKSUM_SHA256="cfce9d4a6af83d6be8619b2268e57bb21db0a0b36ac29226db580b448c286498" +SOURCE_DIR="aiorpcX-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + $portName = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " + +PYTHON_PACKAGES=(python36 python3) +PYTHON_VERSIONS=(3.6 3.7) +for i in "${!PYTHON_PACKAGES[@]}"; do +pythonPackage=${PYTHON_PACKAGES[i]} +pythonVersion=${PYTHON_VERSIONS[$i]} +eval "PROVIDES_${pythonPackage}=\"\ + ${portName}_$pythonPackage = $portVersion\ + \"; \ +REQUIRES_$pythonPackage=\"\ + haiku\n\ + cmd:python$pythonVersion\ + \"" +BUILD_REQUIRES="$BUILD_REQUIRES + setuptools_$pythonPackage" +BUILD_PREREQUIRES="$BUILD_PREREQUIRES + cmd:python$pythonVersion" +done + +INSTALL() +{ + for i in "${!PYTHON_PACKAGES[@]}"; do + pythonPackage=${PYTHON_PACKAGES[i]} + pythonVersion=${PYTHON_VERSIONS[$i]} + + python=python$pythonVersion + installLocation=$prefix/lib/$python/vendor-packages/ + export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation + rm -rf build + $python setup.py build install \ + --root=/ --prefix=$prefix + + packageEntries $pythonPackage \ + $prefix/lib/python* + done +} +