mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
* python3.8: bulk removal of now obsolete "_python38" packages. Done via scripting. No functional change intended or expected. Some manual tweaks will follow. * python3.8: further manual tweaks after bulk-3.8-removal. Unlike the previous commit with automated changes, I've tested builds for *these* recipes in beta4 64 bits.
70 lines
1.8 KiB
Bash
70 lines
1.8 KiB
Bash
SUMMARY="A Python wrapper around the OpenSSL library"
|
|
DESCRIPTION="pyOpenSSL is a high-level wrapper around a subset of the OpenSSL \
|
|
library.
|
|
Note: The Python Cryptographic Authority strongly suggests the use of the \
|
|
Python module called "cryptography" where possible instead of this one. \
|
|
Developers using pyOpenSSL for anything other than making a TLS connection \
|
|
should move to cryptography and drop the pyOpenSSL dependency."
|
|
HOMEPAGE="https://github.com/pyca/pyopenssl
|
|
https://pyopenssl.org/"
|
|
COPYRIGHT="2008-2022 The pyOpenSSL developers"
|
|
LICENSE="Apache v2
|
|
BSD (3-clause)"
|
|
REVISION="5"
|
|
SOURCE_URI="https://github.com/pyca/pyopenssl/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4e92f6c2f08a8d1f0d9695335037a3d50ef8f58cd326514b89104acb9abb2838"
|
|
SOURCE_FILENAME="pyopenssl-$portVersion.tar.gz"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
|
|
PYTHON_PACKAGES=(python39 python310)
|
|
PYTHON_VERSIONS=(3.9 3.10)
|
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
|
pythonPackage=${PYTHON_PACKAGES[i]}
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
|
|
eval "PROVIDES_$pythonPackage=\"
|
|
${portName}_$pythonPackage = $portVersion
|
|
\""
|
|
eval "REQUIRES_$pythonPackage=\"
|
|
haiku
|
|
cryptography_$pythonPackage
|
|
\""
|
|
BUILD_REQUIRES+="
|
|
setuptools_$pythonPackage
|
|
"
|
|
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
|
|
mkdir -p "$installLocation"
|
|
$python setup.py build install \
|
|
--optimize=1 \
|
|
--root=/ --prefix="$prefix"
|
|
|
|
packageEntries $pythonPackage \
|
|
"$prefix"/lib/$python
|
|
done
|
|
}
|