From b35cc46c599c43b0acdfaea0deb5f1dee171a316 Mon Sep 17 00:00:00 2001 From: OscarL Date: Thu, 13 Mar 2025 02:29:15 -0300 Subject: [PATCH] cryptography_vectors: drop outdated and unused recipe. (#11929) Only useful/needed to run tests for the "cryptography" package (and that recipe never had TESTS(), AFAICS). If TESTS() was ever added to the cryptography recipe, we could just instruct the tester/packager to `pip install cryptography_vectors`. --- .../cryptography_vectors-2.8.recipe | 78 ------------------- 1 file changed, 78 deletions(-) delete mode 100644 dev-python/cryptography-vectors/cryptography_vectors-2.8.recipe diff --git a/dev-python/cryptography-vectors/cryptography_vectors-2.8.recipe b/dev-python/cryptography-vectors/cryptography_vectors-2.8.recipe deleted file mode 100644 index 6bf2ffae3..000000000 --- a/dev-python/cryptography-vectors/cryptography_vectors-2.8.recipe +++ /dev/null @@ -1,78 +0,0 @@ -SUMMARY="Test vectors for the cryptography package" -DESCRIPTION="cryptography-vectors is a special Python module which is actually \ -just a collection of data files. Its only purpose is to provide packagers the \ -data files required to test the \"cryptography\" Python module. \ -Normal users will therefore never need to install this one." -HOMEPAGE="https://pypi.org/project/cryptography-vectors/ - https://github.com/pyca/cryptography" -COPYRIGHT="2013-2019 The cryptography developers" -LICENSE="Apache v2 - BSD (3-clause)" -REVISION="2" -SOURCE_URI="https://pypi.io/packages/source/c/cryptography_vectors/cryptography_vectors-$portVersion.tar.gz" -CHECKSUM_SHA256="6cd32174c56a3eca72f64af43c1daacaae758cfa5ff9d280dfcf818fa11ef116" - -ARCHITECTURES="any" - -PROVIDES=" - cryptography_vectors = $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 - cmd:python$pythonVersion - \"" - BUILD_REQUIRES+=" - setuptools_$pythonPackage - " - BUILD_PREREQUIRES+=" - cmd:python$pythonVersion - " -done - - -INSTALL() -{ - licensesDir=$dataDir/licenses/cryptography_vectors - - 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" - - rm -rf build - mkdir -p "$installLocation" - - $python setup.py build install \ - --root=/ --prefix="$prefix" - - install -m 755 -d "$licensesDir" - install -m 644 -t "$licensesDir" LICENSE* - rm "$licensesDir"/LICENSE.APACHE - ln -s "`finddir B_SYSTEM_DATA_DIRECTORY`/licenses/Apache v2" \ - "$licensesDir"/LICENSE.APACHE - - packageEntries $pythonPackage \ - "$dataDir" \ - "$prefix"/lib/$python - done -}