diff --git a/dev-python/cryptography/cryptography-2.8.recipe b/dev-python/cryptography/cryptography-2.8.recipe deleted file mode 100644 index b3d4e787f..000000000 --- a/dev-python/cryptography/cryptography-2.8.recipe +++ /dev/null @@ -1,148 +0,0 @@ -SUMMARY="A Python module providing cryptographic recipes and primitives" -DESCRIPTION="cryptography is a module designed to expose cryptographic \ -primitives and recipes to Python developers. \ -It includes both high level recipes and low level interfaces to common \ -cryptographic algorithms such as symmetric ciphers, message digests, and key \ -derivation functions." -HOMEPAGE="https://cryptography.io/" -COPYRIGHT="2013-2018 The cryptography developers" -LICENSE="Apache v2 - BSD (3-clause)" -REVISION="2" -SOURCE_URI="https://pypi.io/packages/source/c/cryptography/cryptography-$portVersion.tar.gz" -CHECKSUM_SHA256="3cda1f0ed8747339bbdf71b9f38ca74c7b592f24f65cdb3ab3765e4b02871651" - -ARCHITECTURES="all !x86_gcc2" -SECONDARY_ARCHITECTURES="x86" - -PROVIDES=" - cryptography$secondaryArchSuffix = $portVersion - " -REQUIRES=" - haiku$secondaryArchSuffix - " - -BUILD_REQUIRES=" - haiku${secondaryArchSuffix}_devel - devel:libcrypto$secondaryArchSuffix - devel:libssl$secondaryArchSuffix - " -BUILD_PREREQUIRES=" - cmd:gcc$secondaryArchSuffix - cmd:pkg_config$secondaryArchSuffix - " - -PYTHON_PACKAGES=() -PYTHON_VERSIONS=() -PYTHON_LIBSUFFIXES=() -# We don't have python2 for secondaryArch -if [ -z "$secondaryArchSuffix" ]; then - PYTHON_PACKAGES+=(python) - PYTHON_VERSIONS+=(2.7) - PYTHON_LIBSUFFIXES+=("") - BUILD_REQUIRES+=" - setuptools_python - asn1crypto_python - cffi_python - idna_python - pyasn1_python - six_python - " - BUILD_PREREQUIRES+=" - cmd:python2 - " -fi -# gcc2 does not support the flags passed by python3 -if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then - PYTHON_PACKAGES+=(python3) - PYTHON_VERSIONS+=(3.7) - PYTHON_LIBSUFFIXES+=(m) - BUILD_REQUIRES+=" - setuptools_python3 - asn1crypto_python3 - cffi${secondaryArchSuffix}_python3 - idna_python3 - pyasn1_python3 - six_python3 - " - BUILD_PREREQUIRES+=" - cmd:python3 - " -fi -for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - pythonLibSuffix=${PYTHON_LIBSUFFIXES[$i]} - - eval "PROVIDES_$pythonPackage=\" - ${portName}_$pythonPackage = $portVersion - \"" - eval "REQUIRES_$pythonPackage=\" - haiku$secondaryArchSuffix - asn1crypto_$pythonPackage - cffi_$pythonPackage - idna_$pythonPackage - pyasn1_$pythonPackage - six_$pythonPackage - lib:libcrypto$secondaryArchSuffix - lib:libpython$pythonVersion$pythonLibSuffix$secondaryArchSuffix - lib:libssl$secondaryArchSuffix - \"" -done -if [ "$targetArchitecture" = x86_gcc2 -a -n "$secondaryArchSuffix" ]; then - PROVIDES_python3+=" - cryptography_python3 = $portVersion - " -fi - -BUILD() -{ - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - - rm -rf "$sourceDir"-$pythonPackage - cp -a "$sourceDir" "$sourceDir"-$pythonPackage - cd "$sourceDir"-$pythonPackage - - python=python$pythonVersion - $python setup.py build - done -} - -INSTALL() -{ - myLicensesDir=$dataDir/licenses/packages/c/cryptography - - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - - cd "$sourceDir"-$pythonPackage - - python=python$pythonVersion - installLocation=$prefix/lib/$python/vendor-packages/ - export PYTHONPATH=$installLocation - mkdir -p "$installLocation" - $python setup.py install \ - --optimize=1 \ - --root=/ --prefix="$prefix" - - install -m 755 -d "$myLicensesDir" - install -m 644 -t "$myLicensesDir" LICENSE* - rm "$myLicensesDir"/LICENSE.APACHE - ln -s "`finddir B_SYSTEM_DATA_DIRECTORY`/licenses/Apache v2" \ - "$myLicensesDir"/LICENSE.APACHE - - packageEntries $pythonPackage \ - "$dataDir" \ - "$prefix"/lib/$python - done - - install -m 755 -d "$myLicensesDir" "$docDir" - install -m 644 -t "$myLicensesDir" LICENSE* - rm "$myLicensesDir"/LICENSE.APACHE - ln -s "`finddir B_SYSTEM_DATA_DIRECTORY`/licenses/Apache v2" \ - "$myLicensesDir"/LICENSE.APACHE - install -m 644 -t "$docDir" README.rst -} diff --git a/dev-python/cryptography/cryptography-2.9.2.recipe b/dev-python/cryptography/cryptography-2.9.2.recipe new file mode 100644 index 000000000..2323b7693 --- /dev/null +++ b/dev-python/cryptography/cryptography-2.9.2.recipe @@ -0,0 +1,82 @@ +SUMMARY="A Python module providing cryptographic recipes and primitives" +DESCRIPTION="cryptography is a module designed to expose cryptographic \ +primitives and recipes to Python developers. \ +It includes both high level recipes and low level interfaces to common \ +cryptographic algorithms such as symmetric ciphers, message digests, and key \ +derivation functions." +HOMEPAGE="https://cryptography.io/" +COPYRIGHT="2013-2020 The cryptography developers" +LICENSE="Apache v2 + BSD (3-clause)" +REVISION="1" +SOURCE_URI="https://pypi.io/packages/source/c/cryptography/cryptography-$portVersion.tar.gz" +CHECKSUM_SHA256="70f8f4f7bb2ac9f340655cbac89d68c527af5bb4387522a8413e841e3e6628c9" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + cryptography$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libcrypto$secondaryArchSuffix + devel:libffi$secondaryArchSuffix + devel:libssl$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:pkg_config$secondaryArchSuffix + " + +PYTHON_PACKAGES=(python3 python38 python39) +PYTHON_VERSIONS=(3.7 3.8 3.9) +PYTHON_LIBSUFFIXES+=(m) +for i in "${!PYTHON_PACKAGES[@]}"; do +pythonPackage=${PYTHON_PACKAGES[i]} +pythonVersion=${PYTHON_VERSIONS[$i]} +pythonLibSuffix=${PYTHON_LIBSUFFIXES[$i]} +eval "PROVIDES_$pythonPackage=\" + ${portName}_$pythonPackage = $portVersion + \"" +eval "REQUIRES_$pythonPackage=\" + haiku$secondaryArchSuffix + asn1crypto_$pythonPackage + cffi${secondaryArchSuffix}_$pythonPackage + idna_$pythonPackage + pyasn1_$pythonPackage + six_$pythonPackage + lib:libcrypto$secondaryArchSuffix + lib:libpython$pythonVersion$pythonLibSuffix$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + \"" +BUILD_REQUIRES="$BUILD_REQUIRES + setuptools_$pythonPackage + wheel_$pythonPackage + pip_$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 + mkdir -p "$installLocation" + $python setup.py build install \ + --optimize=1 \ + --root=/ --prefix="$prefix" + + packageEntries $pythonPackage \ + "$prefix"/lib/$python + done +}