Add recipe for poezio (curses xmpp client)

This has been pending on my laptop for a few years, as I work on it
under the contributor's supervision atvarious free software meetups and
events.
This commit is contained in:
Adrien Destugues
2018-07-11 14:07:17 +02:00
parent ef34f7ddb9
commit 3376b6e020
7 changed files with 390 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
SUMMARY="Collection of ASN.1 modules in form of pyasn1 classes"
DESCRIPTION="A collection of ASN.1 modules expressed in form of pyasn1 \
classes. Includes protocols PDUs definition (SNMP, LDAP etc.) and various \
data structures (X.509, PKCS etc.)."
HOMEPAGE="https://pypi.org/project/pyasn1-modules/"
COPYRIGHT="2011-2018 Ilya Etingof "
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/37/33/74ebdc52be534e683dc91faf263931bc00ae05c6073909fde53999088541/pyasn1-modules-$portVersion.tar.gz"
SOURCE_DIR="pyasn1-modules-$portVersion"
CHECKSUM_SHA256="a0cf3e1842e7c60fde97cb22d275eb6f9524f5c5250489e292529de841417547"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python3)
PYTHON_VERSIONS=(3.6)
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
}