Files
haikuports/dev-python/pyasn1/pyasn1-0.4.3.recipe
Adrien Destugues 3376b6e020 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.
2018-07-11 14:12:22 +02:00

63 lines
1.5 KiB
Bash

SUMMARY="Pure-Python implementation of ASN.1 types and codecs"
DESCRIPTION="Pure-Python implementation of ASN.1 types and DER/BER/CER codecs \
(X.208)"
HOMEPAGE="https://pypi.org/project/pyasn1"
COPYRIGHT="2007-2018 Ilya Etingof "
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/0d/33/3466a3210321a02040e3ab2cd1ffc6f44664301a5d650a7e44be1dc341f2/pyasn1-$portVersion.tar.gz"
SOURCE_DIR="pyasn1-$portVersion"
CHECKSUM_SHA256="fb81622d8f3509f0026b0683fe90fea27be7284d3826a5f2edf97f69151ab0fc"
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
}